private $theme_info = [
'videowidth' => 425,
'videoheight' => 350,
- 'events_in_profile' => true
];
private $user_id = 0;
];
// 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',
];
// 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,
$tabs = '';
if (empty($this->parameters['nickname'])) {
- if ($this->app->getThemeInfoValue('events_in_profile')) {
- Nav::setSelected('home');
- } else {
- Nav::setSelected('calendar');
- }
-
- // tabs
- if ($this->app->getThemeInfoValue('events_in_profile')) {
- $tabs = BaseProfile::getTabsHTML($this->app, 'calendar', true, $this->app->getLoggedInUserNickname(), false);
- }
+ Nav::setSelected('home');
+
+ $tabs = BaseProfile::getTabsHTML($this->app, 'calendar', true, $this->app->getLoggedInUserNickname(), false);
$this->page['aside'] .= Widget\CalendarExport::getHTML($this->session->getLocalUserId());
} else {
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');
function vier_init(App $a)
{
- $a->setThemeInfoValue('events_in_profile', false);
-
Renderer::setActiveTemplateEngine('smarty3');
$args = DI::args();