<meta itemprop="dateModified" content="{@$article->time|date:'c'}">
</li>
- <li itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
- <span class="icon icon16 fa-comments"></span>
- <span>{lang}wcf.article.articleComments{/lang}</span>
- <meta itemprop="interactionType" content="http://schema.org/CommentAction">
- <meta itemprop="userInteractionCount" content="{@$article->comments}">
- </li>
+ {if $article->enableComments}
+ <li itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
+ <span class="icon icon16 fa-comments"></span>
+ <span>{lang}wcf.article.articleComments{/lang}</span>
+ <meta itemprop="interactionType" content="http://schema.org/CommentAction">
+ <meta itemprop="userInteractionCount" content="{@$article->comments}">
+ </li>
+ {/if}
<li>
<span class="icon icon16 fa-eye"></span>
{@$article->time|time}
</li>
- <li>
- <span class="icon icon16 fa-comments"></span>
- {lang}wcf.article.articleComments{/lang}
- </li>
+ {if $article->enableComments}
+ <li>
+ <span class="icon icon16 fa-comments"></span>
+ {lang}wcf.article.articleComments{/lang}
+ </li>
+ {/if}
{if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike')}
<li class="wcfLikeCounter{if $article->cumulativeLikes > 0} likeCounterLiked{elseif $article->cumulativeLikes < 0}likeCounterDisliked{/if}">