Fixed invalid html code
authorMarcel Werk <burntime@woltlab.com>
Mon, 23 Jan 2017 15:45:31 +0000 (16:45 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 23 Jan 2017 15:45:31 +0000 (16:45 +0100)
com.woltlab.wcf/templates/article.tpl

index e897d783c124e8e1e1ce4797113497d780f6d011..b7f1c9344e6f16e17a371237b92c449ad44c178f 100644 (file)
 {include file='header'}
 
 {if $articleContent->getImage() && $articleContent->getImage()->hasThumbnail('large')}
-       <section class="section">
-               <figure class="articleImage" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
+       <div class="section" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
+               <figure class="articleImage">
                        <div class="articleImageWrapper">{@$articleContent->getImage()->getThumbnailTag('large')}</div>
                        {if $articleContent->getImage()->caption}
                                <figcaption itemprop="description">{$articleContent->getImage()->caption}</figcaption>
                        {/if}
-                       <meta itemprop="url" content="{$articleContent->getImage()->getThumbnailLink('large')}">
-                       <meta itemprop="width" content="{@$articleContent->getImage()->getThumbnailWidth('large')}">
-                       <meta itemprop="height" content="{@$articleContent->getImage()->getThumbnailHeight('large')}">
                </figure>
-       </section>
+               <meta itemprop="url" content="{$articleContent->getImage()->getThumbnailLink('large')}">
+               <meta itemprop="width" content="{@$articleContent->getImage()->getThumbnailWidth('large')}">
+               <meta itemprop="height" content="{@$articleContent->getImage()->getThumbnailHeight('large')}">
+       </div>
 {/if}
 
-<section class="section articleContent"
+<div class="section articleContent"
          data-object-id="{@$article->articleID}"
          data-object-type="com.woltlab.wcf.likeableArticle"
          data-like-liked="{if $articleLikeData[$article->articleID]|isset}{@$articleLikeData[$article->articleID]->liked}{/if}"
                        <ul class="articleLikeButtons buttonGroup"></ul>
                </div>
        </div>
-</section>
+</div>
 
 {if ENABLE_SHARE_BUTTONS}
        <section class="section jsOnly">