]> git.mxchange.org Git - friendica.git/blobdiff - mod/group.php
suggestion notifications
[friendica.git] / mod / group.php
index fd54b0effdb61e212dffd0a87d003d9fdcdb4c27..ca163902ca685d127ca4163eaaf11123428980c6 100644 (file)
@@ -7,7 +7,7 @@ function validate_members(&$item) {
 function group_init(&$a) {
        if(local_user()) {
                require_once('include/group.php');
-               $a->page['aside'] = group_side();
+               $a->page['aside'] = group_side('contacts','group',false,(($a->argc > 1) ? intval($a->argv[1]) : 0));
        }
 }
 
@@ -176,8 +176,8 @@ function group_content(&$a) {
        if($change) 
                $o = '';
 
-       $o .= '<div id="group-members">';
        $o .= '<h3>' . t('Members') . '</h3>';
+       $o .= '<div id="group-members">';
        $textmode = (($switchtotext && (count($members) > $switchtotext)) ? true : false);
        foreach($members as $member) {
                if($member['url']) {
@@ -190,9 +190,10 @@ function group_content(&$a) {
 
        $o .= '</div><div id="group-members-end"></div>';
        $o .= '<hr id="group-separator" />';
+       
+       $o .= '<h3>' . t('All Contacts') . '</h3>';
        $o .= '<div id="group-all-contacts">';
 
-               $o .= '<h3>' . t('All Contacts') . '</h3>';
                $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `blocked` = 0 and `pending` = 0 and `self` = 0 ORDER BY `name` ASC",
                        intval(local_user())
                );