edit group links on network page
This commit is contained in:
parent
5654ce926c
commit
f04e2e7044
BIN
images/spencil.gif
Normal file
BIN
images/spencil.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 497 B |
|
@ -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 = '';
|
$o = '';
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ EOT;
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
foreach($r as $rr)
|
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>";
|
$o .= " </ul>\r\n </div>\r\n</div>";
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ function network_init(&$a) {
|
||||||
|
|
||||||
$a->page['aside'] .= '</div>';
|
$a->page['aside'] .= '</div>';
|
||||||
|
|
||||||
$a->page['aside'] .= group_side('network','network');
|
$a->page['aside'] .= group_side('network','network',true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue