From 6abd2194722c6c2f789e4c8bb498ad89f1219c2f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 28 Mar 2021 13:02:52 +0200 Subject: [PATCH] Hide comment counter when comments are disabled --- com.woltlab.wcf/templates/articleListItems.tpl | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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'} -- 2.20.1