From: Marcel Werk Date: Sun, 28 Mar 2021 11:02:52 +0000 (+0200) Subject: Hide comment counter when comments are disabled X-Git-Tag: 5.3.6~42 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6abd2194722c6c2f789e4c8bb498ad89f1219c2f;p=GitHub%2FWoltLab%2FWCF.git Hide comment counter when comments are disabled --- diff --git a/com.woltlab.wcf/templates/articleListItems.tpl b/com.woltlab.wcf/templates/articleListItems.tpl index cb2b593b0b..ae5f39bab5 100644 --- a/com.woltlab.wcf/templates/articleListItems.tpl +++ b/com.woltlab.wcf/templates/articleListItems.tpl @@ -61,13 +61,15 @@ {include file='__topReaction' cachedReactions=$article->cachedReactions render='short'} {/if} -
- - - {$article->getDiscussionProvider()->getDiscussionCount()} - -
- + {if $article->getDiscussionProvider()->getDiscussionCountPhrase()}{* empty phrase indicates that comments are disabled *} +
+ + + {$article->getDiscussionProvider()->getDiscussionCount()} + +
+ {/if} + {event name='contentItemMetaIcons'}