mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
group select on network page
This commit is contained in:
parent
fc8379b108
commit
52a2c7eb46
2 changed files with 44 additions and 6 deletions
|
@ -121,7 +121,7 @@ function group_get_members($gid) {
|
|||
|
||||
|
||||
|
||||
function group_side() {
|
||||
function group_side($every="contacts",$each="group") {
|
||||
|
||||
if(! local_user())
|
||||
return;
|
||||
|
@ -136,7 +136,7 @@ $o .= <<< EOT
|
|||
|
||||
<div id="sidebar-group-list">
|
||||
<ul id="sidebar-group-ul">
|
||||
<li class="sidebar-group-li" ><a href="contacts">Everybody</a></li>
|
||||
<li class="sidebar-group-li" ><a href="$every">Everybody</a></li>
|
||||
|
||||
EOT;
|
||||
|
||||
|
@ -145,7 +145,7 @@ EOT;
|
|||
);
|
||||
if(count($r)) {
|
||||
foreach($r as $rr)
|
||||
$o .= " <li class=\"sidebar-group-li\"><a href=\"group/{$rr['id']}\">{$rr['name']}</a></li>\r\n";
|
||||
$o .= " <li class=\"sidebar-group-li\"><a href=\"$each/{$rr['id']}\">{$rr['name']}</a></li>\r\n";
|
||||
}
|
||||
$o .= " </ul>\r\n </div>\r\n</div>";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue