From: Marcel Werk Date: Wed, 28 Sep 2016 09:34:45 +0000 (+0200) Subject: Hide comment counter if comments are disabled X-Git-Tag: 3.0.0_Beta_2~95 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73136cd37de62eac71da2f002b297e87b50eaa95;p=GitHub%2FWoltLab%2FWCF.git Hide comment counter if comments are disabled --- diff --git a/com.woltlab.wcf/templates/article.tpl b/com.woltlab.wcf/templates/article.tpl index d62a8d8154..1ee8b7d21b 100644 --- a/com.woltlab.wcf/templates/article.tpl +++ b/com.woltlab.wcf/templates/article.tpl @@ -25,12 +25,14 @@ -
  • - - {lang}wcf.article.articleComments{/lang} - - -
  • + {if $article->enableComments} +
  • + + {lang}wcf.article.articleComments{/lang} + + +
  • + {/if}
  • diff --git a/com.woltlab.wcf/templates/articleListItems.tpl b/com.woltlab.wcf/templates/articleListItems.tpl index e8d4ee5e50..242e623770 100644 --- a/com.woltlab.wcf/templates/articleListItems.tpl +++ b/com.woltlab.wcf/templates/articleListItems.tpl @@ -16,10 +16,12 @@ {@$article->time|time}
  • -
  • - - {lang}wcf.article.articleComments{/lang} -
  • + {if $article->enableComments} +
  • + + {lang}wcf.article.articleComments{/lang} +
  • + {/if} {if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike')}