Revert "Removed the display of cumulative likes"
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 Jul 2019 13:40:44 +0000 (15:40 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 15 Jul 2019 13:40:44 +0000 (15:40 +0200)
This reverts commit bf6a58ff20fa822c1203f47b5a0eed3e9e00fca7.

com.woltlab.wcf/templates/boxArticleList.tpl

index da599cd704b76a63f83fbbfd81a1c08e456f6f98..c639d38c59caaea6481733314bc358869f1d997f 100644 (file)
                                                                {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)}
+                                                                       <span class="reputationCounter {if $boxArticle->cumulativeLikes > 0}positive{elseif $boxArticle->cumulativeLikes < 0}negative{else}neutral{/if}">{if $boxArticle->cumulativeLikes > 0}+{elseif $boxArticle->cumulativeLikes == 0}±{/if}{#$boxArticle->cumulativeLikes}</span>
+                                                               {/if}
                                                        {/if}
                                                </small>
                                        </div>