]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/groupaction.php
Remove missing twittersettings page from subscriptions helper
[quix0rs-gnu-social.git] / lib / groupaction.php
index 3e3cc45b304d4aa4d6f7a1d89d054231266a9356..a5e62a2a5a523f3e3ea456bd4a833a4fcc0931ef 100644 (file)
@@ -41,7 +41,6 @@ define('MEMBERS_PER_SECTION', 27);
  * @author   Zach Copley <zach@status.net>
  * @license  http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link     http://status.net/
- *
  */
 class GroupAction extends Action
 {
@@ -93,7 +92,7 @@ class GroupAction extends Action
         $this->group = User_group::staticGet('id', $local->group_id);
 
         if (!$this->group) {
-                // TRANS: Client error displayed if no local group with a given name was found requesting group page.
+            // TRANS: Client error displayed if no local group with a given name was found requesting group page.
             $this->clientError(_('No such group.'), 404);
             return false;
         }
@@ -118,9 +117,13 @@ class GroupAction extends Action
             $this->showPending();
             $this->showBlocked();
         }
+
         $this->showAdmins();
-        $cloud = new GroupTagCloudSection($this, $this->group);
-        $cloud->show();
+
+        if (!common_config('performance', 'high')) {
+            $cloud = new GroupTagCloudSection($this, $this->group);
+            $cloud->show();
+        }
     }
 
     /**
@@ -140,18 +143,17 @@ class GroupAction extends Action
                                          'class' => 'section'));
 
         if (Event::handle('StartShowGroupMembersMiniList', array($this))) {
-             
-            // TRANS: Header for mini list of group members on a group page (h2).
             $this->elementStart('h2');
 
             $this->element('a', array('href' => common_local_url('groupmembers', array('nickname' =>
                                                                                        $this->group->nickname))),
+                           // TRANS: Header for mini list of group members on a group page (h2).
                            _('Members'));
 
             $this->text(' ');
 
             $this->text($this->group->getMemberCount());
-            
+
             $this->elementEnd('h2');
 
             $gmml = new GroupMembersMiniList($member, $this);
@@ -176,7 +178,6 @@ class GroupAction extends Action
         $this->elementEnd('div');
     }
 
-
     function showPending()
     {
         if ($this->group->join_policy != User_group::JOIN_POLICY_MODERATE) {
@@ -199,17 +200,18 @@ class GroupAction extends Action
                                          'class' => 'section'));
 
         if (Event::handle('StartShowGroupPendingMiniList', array($this))) {
-             
+
             $this->elementStart('h2');
 
             $this->element('a', array('href' => common_local_url('groupqueue', array('nickname' =>
                                                                                      $this->group->nickname))),
+                           // TRANS: Header for mini list of users with a pending membership request on a group page (h2).
                            _('Pending'));
 
             $this->text(' ');
 
             $this->text($pending);
-            
+
             $this->elementEnd('h2');
 
             $gmml = new ProfileMiniList($request, $this);
@@ -233,17 +235,18 @@ class GroupAction extends Action
                                          'class' => 'section'));
 
         if (Event::handle('StartShowGroupBlockedMiniList', array($this))) {
-             
+
             $this->elementStart('h2');
 
             $this->element('a', array('href' => common_local_url('blockedfromgroup', array('nickname' =>
                                                                                            $this->group->nickname))),
+                           // TRANS: Header for mini list of users that are blocked in a group page (h2).
                            _('Blocked'));
 
             $this->text(' ');
 
             $this->text($this->group->getBlockedCount());
-            
+
             $this->elementEnd('h2');
 
             $gmml = new GroupBlockedMiniList($blocked, $this);
@@ -279,7 +282,6 @@ class GroupAction extends Action
         $adminSection->show();
     }
 
-
     function noticeFormOptions()
     {
         $options = parent::noticeFormOptions();
@@ -376,4 +378,3 @@ class ThreadingGroupNoticeStream extends ThreadingNoticeStream
         parent::__construct(new GroupNoticeStream($group, $profile));
     }
 }
-