From 4b07801c08035b23e0ddf484d379b501a4950349 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 15 Jul 2019 15:40:44 +0200 Subject: [PATCH] Revert "Removed the display of cumulative likes" This reverts commit bf6a58ff20fa822c1203f47b5a0eed3e9e00fca7. --- com.woltlab.wcf/templates/boxArticleList.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/com.woltlab.wcf/templates/boxArticleList.tpl b/com.woltlab.wcf/templates/boxArticleList.tpl index da599cd704..c639d38c59 100644 --- a/com.woltlab.wcf/templates/boxArticleList.tpl +++ b/com.woltlab.wcf/templates/boxArticleList.tpl @@ -14,6 +14,10 @@ {lang article=$boxArticle}wcf.article.articleViews{/lang} {elseif $boxSortField == 'comments'} {$boxArticle->getDiscussionProvider()->getDiscussionCountPhrase()} + {elseif $boxSortField == 'cumulativeLikes'} + {if MODULE_LIKE && $__wcf->getSession()->getPermission('user.like.canViewLike') && ($boxArticle->likes || $boxArticle->dislikes)} + {if $boxArticle->cumulativeLikes > 0}+{elseif $boxArticle->cumulativeLikes == 0}±{/if}{#$boxArticle->cumulativeLikes} + {/if} {/if} -- 2.20.1