]> git.mxchange.org Git - friendica.git/blobdiff - include/identity.php
Merge develop into 3011_hcard_vcard
[friendica.git] / include / identity.php
index 7bd2d2cbc8d530a22815081f015a7c1b0bf36234..e412c68c961c4f2085bbfb7e100ac20aa7c3f9dc 100644 (file)
@@ -725,6 +725,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' => 'k',
+                       );
+               }
 
                $arr = array('is_owner' => $is_owner, 'nickname' => $nickname, 'tab' => (($tab) ? $tab : false), 'tabs' => $tabs);
                call_hooks('profile_tabs', $arr);