diff options
author | Friendika <info@friendika.com> | 2011-04-12 18:22:58 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-12 18:22:58 -0700 |
commit | f04e2e70447e433bdc6acb2094fd988a995d1c08 (patch) | |
tree | b461766e1772ffcce4427549380404eb867de491 | |
parent | 5654ce926ca012acd9f725c8c7d6e32609a17646 (diff) | |
download | volse-hubzilla-f04e2e70447e433bdc6acb2094fd988a995d1c08.tar.gz volse-hubzilla-f04e2e70447e433bdc6acb2094fd988a995d1c08.tar.bz2 volse-hubzilla-f04e2e70447e433bdc6acb2094fd988a995d1c08.zip |
edit group links on network page
-rw-r--r-- | images/spencil.gif | bin | 0 -> 497 bytes | |||
-rw-r--r-- | include/group.php | 4 | ||||
-rw-r--r-- | mod/network.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/images/spencil.gif b/images/spencil.gif Binary files differnew file mode 100644 index 000000000..0a2551ac0 --- /dev/null +++ b/images/spencil.gif diff --git a/include/group.php b/include/group.php index 5001cf53e..065c2241f 100644 --- a/include/group.php +++ b/include/group.php @@ -135,7 +135,7 @@ function group_public_members($gid) { -function group_side($every="contacts",$each="group") { +function group_side($every="contacts",$each="group",$edit = false) { $o = ''; @@ -165,7 +165,7 @@ EOT; ); if(count($r)) { foreach($r as $rr) - $o .= " <li class=\"sidebar-group-li\"><a href=\"$each/{$rr['id']}\">{$rr['name']}</a></li>\r\n"; + $o .= ' <li class="sidebar-group-li">' . (($edit) ? "<a href=\"group/{$rr['id']}\" title=\"" . t('Edit') . "\" ><img src=\"images/spencil.gif\" alt=\"" . t('Edit') . "\"></a> " : "") . "<a href=\"$each/{$rr['id']}\">{$rr['name']}</a></li>\r\n"; } $o .= " </ul>\r\n </div>\r\n</div>"; diff --git a/mod/network.php b/mod/network.php index 35b6a299b..f0a071cbf 100644 --- a/mod/network.php +++ b/mod/network.php @@ -21,7 +21,7 @@ function network_init(&$a) { $a->page['aside'] .= '</div>'; - $a->page['aside'] .= group_side('network','network'); + $a->page['aside'] .= group_side('network','network',true); } |