Added missing title links in dashboard boxes
authorMarcel Werk <burntime@woltlab.com>
Mon, 16 Feb 2015 15:10:42 +0000 (16:10 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 16 Feb 2015 15:10:42 +0000 (16:10 +0100)
wcfsetup/install/files/lib/system/dashboard/box/MostActiveMembersDashboardBox.class.php
wcfsetup/install/files/lib/system/dashboard/box/MostLikedMembersDashboardBox.class.php
wcfsetup/install/files/lib/system/dashboard/box/NewestMembersDashboardBox.class.php
wcfsetup/install/files/lib/system/dashboard/box/RecentActivitySidebarDashboardBox.class.php

index b578e2e02c96e4ac08c88835df834ce94d208674..1f15bce54e0d54eebd0e13cb7971fd8075817f97 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\dashboard\box\DashboardBox;
 use wcf\data\user\UserProfileList;
 use wcf\page\IPage;
 use wcf\system\cache\builder\MostActiveMembersCacheBuilder;
+use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
 
 /**
@@ -48,6 +49,9 @@ class MostActiveMembersDashboardBox extends AbstractSidebarDashboardBox {
        protected function render() {
                if ($this->userProfileList == null) return '';
                
+               if (MODULE_MEMBERS_LIST) {
+                       $this->titleLink = LinkHandler::getInstance()->getLink('MembersList', array(), 'sortField=activityPoints&sortOrder=DESC');
+               }
                WCF::getTPL()->assign(array(
                        'mostActiveMembers' => $this->userProfileList
                ));
index dc60f3d816c922ce1caf86a379cb36e898fdd309..2ff98063529054c451538101d0f0619f4f196d1e 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\dashboard\box\DashboardBox;
 use wcf\data\user\UserProfileList;
 use wcf\page\IPage;
 use wcf\system\cache\builder\MostLikedMembersCacheBuilder;
+use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
 
 /**
@@ -48,6 +49,9 @@ class MostLikedMembersDashboardBox extends AbstractSidebarDashboardBox {
        protected function render() {
                if ($this->userProfileList == null) return '';
                
+               if (MODULE_MEMBERS_LIST) {
+                       $this->titleLink = LinkHandler::getInstance()->getLink('MembersList', array(), 'sortField=likesReceived&sortOrder=DESC');
+               }
                WCF::getTPL()->assign(array(
                        'mostLikedMembers' => $this->userProfileList
                ));
index 267f1bd8c3fb82b0a016acc7c3a289ffea97d620..6783795113c5b56d9d735317c60b07fa281ecab1 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\dashboard\box\DashboardBox;
 use wcf\data\user\UserProfileList;
 use wcf\page\IPage;
 use wcf\system\cache\builder\NewestMembersCacheBuilder;
+use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
 
 /**
@@ -48,6 +49,9 @@ class NewestMembersDashboardBox extends AbstractSidebarDashboardBox {
        protected function render() {
                if ($this->userProfileList == null) return '';
                
+               if (MODULE_MEMBERS_LIST) {
+                       $this->titleLink = LinkHandler::getInstance()->getLink('MembersList', array(), 'sortField=registrationDate&sortOrder=DESC');
+               }
                WCF::getTPL()->assign(array(
                        'newestMembers' => $this->userProfileList
                ));
index 3ea83431989b47566eecdc5eff6fb88b5aa70431..bbfab86dcfe3803bae3c40d90d3f9543b7237087 100644 (file)
@@ -4,6 +4,7 @@ use wcf\data\dashboard\box\DashboardBox;
 use wcf\data\user\activity\event\ViewableUserActivityEventList;
 use wcf\page\IPage;
 use wcf\system\user\activity\event\UserActivityEventHandler;
+use wcf\system\request\LinkHandler;
 use wcf\system\WCF;
 
 /**
@@ -44,6 +45,7 @@ class RecentActivitySidebarDashboardBox extends AbstractSidebarDashboardBox {
         */
        protected function render() {
                if (count($this->eventList)) {
+                       $this->titleLink = LinkHandler::getInstance()->getLink('RecentActivityList');
                        WCF::getTPL()->assign(array(
                                'eventList' => $this->eventList
                        ));