X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBaseProfile.php;h=3937fa07d2ee2b2da5b801882caeec47b3c708d0;hb=e7384288766f342da98b7d0ada082db516501ac6;hp=be38a958377b93c93e09dd17595063b70d41e5d7;hpb=2c56d2f3360c08e312e5c167261af8e5d4b87af4;p=friendica.git diff --git a/src/Module/BaseProfile.php b/src/Module/BaseProfile.php index be38a95837..3937fa07d2 100644 --- a/src/Module/BaseProfile.php +++ b/src/Module/BaseProfile.php @@ -1,6 +1,6 @@ user['nickname']; - } - $baseProfileUrl = DI::baseUrl() . '/profile/' . $nickname; $tabs = [ @@ -73,17 +69,17 @@ class BaseProfile extends BaseModule 'accesskey' => 'h', ], [ - 'label' => DI::l10n()->t('Videos'), - 'url' => DI::baseUrl() . '/videos/' . $nickname, - 'sel' => $current == 'videos' ? 'active' : '', - 'title' => DI::l10n()->t('Videos'), - 'id' => 'video-tab', - 'accesskey' => 'v', + 'label' => DI::l10n()->t('Media'), + 'url' => $baseProfileUrl . '/media', + 'sel' => $current == 'media' ? 'active' : '', + 'title' => DI::l10n()->t('Media'), + 'id' => 'media-tab', + 'accesskey' => 'd', ], ]; // the calendar link for the full featured events calendar - if ($is_owner && $a->theme_events_in_profile) { + if ($is_owner && $a->getThemeInfoValue('events_in_profile')) { $tabs[] = [ 'label' => DI::l10n()->t('Events'), 'url' => DI::baseUrl() . '/events', @@ -114,9 +110,17 @@ class BaseProfile extends BaseModule 'id' => 'notes-tab', 'accesskey' => 't', ]; + $tabs[] = [ + 'label' => DI::l10n()->t('Scheduled Posts'), + 'url' => $baseProfileUrl . '/schedule', + 'sel' => $current == 'schedule' ? 'active' : '', + 'title' => DI::l10n()->t('Posts that are scheduled for publishing'), + 'id' => 'schedule-tab', + 'accesskey' => 'o', + ]; } - if (empty($a->profile['hide-friends'])) { + if (!$hide_friends) { $tabs[] = [ 'label' => DI::l10n()->t('Contacts'), 'url' => $baseProfileUrl . '/contacts',