mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:10:11 +00:00
make viewcontacts part of the profile tab
This commit is contained in:
parent
f45a8f1a03
commit
45c2a4868e
2 changed files with 32 additions and 2 deletions
|
@ -700,6 +700,16 @@ if(! function_exists('profile_tabs')){
|
|||
);
|
||||
}
|
||||
|
||||
if ((! $is_owner) && ((count($a->profile)) || (! $a->profile['hide-friends']))) {
|
||||
$tabs[] = array(
|
||||
'label' => t('Contacts'),
|
||||
'url' => $a->get_baseurl() . '/viewcontacts/' . $nickname,
|
||||
'sel' => ((!isset($tab)&&$a->argv[0]=='viewcontacts')?'active':''),
|
||||
'title' => t('Contacts'),
|
||||
'id' => 'viewcontacts-tab',
|
||||
'accesskey' => 's',
|
||||
);
|
||||
}
|
||||
|
||||
$arr = array('is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => (($tab) ? $tab : false), 'tabs' => $tabs);
|
||||
call_hooks('profile_tabs', $arr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue