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 {
|
||||
|
|
|
@ -53,8 +53,6 @@ function frio_init(App $a)
|
|||
global $frio;
|
||||
$frio = 'view/theme/frio';
|
||||
|
||||
// disable the events module link in the profile tab
|
||||
$a->setThemeInfoValue('events_in_profile', false);
|
||||
$a->setThemeInfoValue('videowidth', 622);
|
||||
|
||||
Renderer::setActiveTemplateEngine('smarty3');
|
||||
|
|
|
@ -42,8 +42,6 @@ use Friendica\Util\Strings;
|
|||
|
||||
function vier_init(App $a)
|
||||
{
|
||||
$a->setThemeInfoValue('events_in_profile', false);
|
||||
|
||||
Renderer::setActiveTemplateEngine('smarty3');
|
||||
|
||||
$args = DI::args();
|
||||
|
|
Loading…
Reference in a new issue