Add Module\Profile\Common class

- Add Common tab in profile contacts templates
- Add routing to new module
This commit is contained in:
Hypolite Petovan 2020-08-04 23:03:54 -04:00
parent 1723903219
commit 71db6ab613
5 changed files with 123 additions and 0 deletions

View file

@ -115,11 +115,13 @@ class Contacts extends Module\BaseProfile
'$desc' => $desc,
'$nickname' => $nickname,
'$type' => $type,
'$displayCommonTab' => Session::isAuthenticated() && $a->profile['uid'] != local_user(),
'$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,