mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Remove unused theme info value "events_in_profile"
All public events (event if they are ownded by other users) are visible
This commit is contained in:
parent
2baa56d478
commit
0d53c69610
5 changed files with 4 additions and 16 deletions
|
@ -69,7 +69,6 @@ class App
|
|||
private $theme_info = [
|
||||
'videowidth' => 425,
|
||||
'videoheight' => 350,
|
||||
'events_in_profile' => true
|
||||
];
|
||||
|
||||
private $user_id = 0;
|
||||
|
|
|
@ -79,7 +79,7 @@ class BaseProfile extends BaseModule
|
|||
];
|
||||
|
||||
// the calendar link for the full-featured events calendar
|
||||
if ($is_owner && $a->getThemeInfoValue('events_in_profile')) {
|
||||
if ($is_owner) {
|
||||
$tabs[] = [
|
||||
'label' => DI::l10n()->t('Calendar'),
|
||||
'url' => DI::baseUrl() . '/calendar',
|
||||
|
@ -90,7 +90,7 @@ class BaseProfile extends BaseModule
|
|||
];
|
||||
// if the user is not the owner of the calendar we only show a calendar
|
||||
// with the public events of the calendar owner
|
||||
} elseif (!$is_owner) {
|
||||
} else {
|
||||
$tabs[] = [
|
||||
'label' => DI::l10n()->t('Calendar'),
|
||||
'url' => DI::baseUrl() . '/calendar/show/' . $nickname,
|
||||
|
|
|
@ -85,16 +85,9 @@ class Show extends BaseModule
|
|||
$tabs = '';
|
||||
|
||||
if (empty($this->parameters['nickname'])) {
|
||||
if ($this->app->getThemeInfoValue('events_in_profile')) {
|
||||
Nav::setSelected('home');
|
||||
} else {
|
||||
Nav::setSelected('calendar');
|
||||
}
|
||||
Nav::setSelected('home');
|
||||
|
||||
// tabs
|
||||
if ($this->app->getThemeInfoValue('events_in_profile')) {
|
||||
$tabs = BaseProfile::getTabsHTML($this->app, 'calendar', true, $this->app->getLoggedInUserNickname(), false);
|
||||
}
|
||||
$tabs = BaseProfile::getTabsHTML($this->app, 'calendar', true, $this->app->getLoggedInUserNickname(), false);
|
||||
|
||||
$this->page['aside'] .= Widget\CalendarExport::getHTML($this->session->getLocalUserId());
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue