mirror of
https://github.com/friendica/friendica
synced 2025-04-26 07:50:15 +00:00
Create new page_tabs template
- Replace explicit tabs in profile contacts page with new template
This commit is contained in:
parent
f5ea07c731
commit
383ddb10ed
8 changed files with 57 additions and 49 deletions
|
@ -61,6 +61,8 @@ class Contacts extends Module\BaseProfile
|
|||
|
||||
$o = self::getTabsHTML($a, 'contacts', $is_owner, $nickname);
|
||||
|
||||
$tabs = self::getContactFilterTabs('profile/' . $nickname, $type, Session::isAuthenticated() && $a->profile['uid'] != local_user());
|
||||
|
||||
$condition = [
|
||||
'uid' => $a->profile['uid'],
|
||||
'blocked' => false,
|
||||
|
@ -113,15 +115,8 @@ class Contacts extends Module\BaseProfile
|
|||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$title' => $title,
|
||||
'$desc' => $desc,
|
||||
'$nickname' => $nickname,
|
||||
'$type' => $type,
|
||||
'$displayCommonTab' => Session::isAuthenticated() && $a->profile['uid'] != local_user(),
|
||||
'$tabs' => $tabs,
|
||||
|
||||
'$all_label' => DI::l10n()->t('All contacts'),
|
||||
'$followers_label' => DI::l10n()->t('Followers'),
|
||||
'$following_label' => DI::l10n()->t('Following'),
|
||||
'$mutuals_label' => DI::l10n()->t('Mutual friends'),
|
||||
'$common_label' => DI::l10n()->t('Common'),
|
||||
'$noresult_label' => DI::l10n()->t('No contacts.'),
|
||||
|
||||
'$contacts' => $contacts,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue