From 956745ba0c7084ff371457432acce81338bcc04f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 11 Jul 2016 16:41:13 +0200 Subject: [PATCH] Microdata overhaul --- com.woltlab.wcf/templates/article.tpl | 71 ++++++++----------- com.woltlab.wcf/templates/breadcrumbs.tpl | 8 +-- com.woltlab.wcf/templates/commentList.tpl | 14 ++-- .../templates/commentResponseList.tpl | 14 ++-- com.woltlab.wcf/templates/headInclude.tpl | 1 - com.woltlab.wcf/templates/header.tpl | 4 +- com.woltlab.wcf/templates/messageSidebar.tpl | 11 +-- .../templates/pageHeaderSearch.tpl | 12 +++- .../install/files/acp/templates/header.tpl | 1 - .../install/files/style/ui/breadcrumb.scss | 2 +- 10 files changed, 69 insertions(+), 69 deletions(-) diff --git a/com.woltlab.wcf/templates/article.tpl b/com.woltlab.wcf/templates/article.tpl index b46be86c81..e17a55b627 100644 --- a/com.woltlab.wcf/templates/article.tpl +++ b/com.woltlab.wcf/templates/article.tpl @@ -1,27 +1,35 @@ {capture assign='pageTitle'}{$articleContent->title}{/capture} +{assign var='__mainItemScope' value='itemprop="mainEntity" itemscope itemtype="http://schema.org/Article"'} + {capture assign='contentHeader'}
-

{$articleContent->title}

+

{$articleContent->title}

+ + +
+ +
+ {* @TODO *} +
+
{hascontent} @@ -76,51 +92,20 @@ {/foreach} {/if} - - {/capture} {include file='header'} {if $articleContent->getImage()}
-
+
{@$articleContent->getImage()->getThumbnailTag('large')}
{if $articleContent->getImage()->caption} -
{$articleContent->getImage()->caption}
+
{$articleContent->getImage()->caption}
{/if} + + +
{/if} diff --git a/com.woltlab.wcf/templates/breadcrumbs.tpl b/com.woltlab.wcf/templates/breadcrumbs.tpl index 519840fc6a..bf5512a7ea 100644 --- a/com.woltlab.wcf/templates/breadcrumbs.tpl +++ b/com.woltlab.wcf/templates/breadcrumbs.tpl @@ -1,16 +1,16 @@ {if !$__microdata|isset}{assign var=__microdata value=true}{/if} {hascontent} {/hascontent} diff --git a/com.woltlab.wcf/templates/commentList.tpl b/com.woltlab.wcf/templates/commentList.tpl index a52cef6f3b..35693c18b3 100644 --- a/com.woltlab.wcf/templates/commentList.tpl +++ b/com.woltlab.wcf/templates/commentList.tpl @@ -10,21 +10,25 @@ {@$comment->getUserProfile()->getAvatar()->getImageTag(48)} {/if} -
+
+ +
-

+

-
{@$comment->getFormattedMessage()}
+
{@$comment->getFormattedMessage()}
- +