From 3d37f531a5463f2a4ce0a02a1e6840bb7bce30b5 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 11 Mar 2011 00:15:58 +0100 Subject: [PATCH] Fixed select for displaying events --- root/portal/modules/portal_calendar.php | 6 +++--- .../prosilver/template/portal/modules/calendar_side.html | 2 ++ .../subsilver2/template/portal/modules/calendar_side.html | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/root/portal/modules/portal_calendar.php b/root/portal/modules/portal_calendar.php index c6341c7b..1a98ec26 100644 --- a/root/portal/modules/portal_calendar.php +++ b/root/portal/modules/portal_calendar.php @@ -137,7 +137,6 @@ class portal_calendar_module $next_month = '>>'; $template->assign_vars(array( - 'S_DISPLAY_MINICAL' => true, 'S_SUNDAY_FIRST' => ($config['board3_sunday_first_' . $module_id]) ? true : false, 'L_MINI_CAL_MONTH' => (($config['board3_long_month_' . $module_id]) ? $user->lang['mini_cal']['long_month'][$this->day[0][1]] : $user->lang['mini_cal']['month'][$this->day[0][1]]) . " " . $this->day[0][2], 'L_MINI_CAL_SUN' => '' . $user->lang['mini_cal']['day'][1] . '', @@ -148,8 +147,9 @@ class portal_calendar_module 'L_MINI_CAL_FRI' => $user->lang['mini_cal']['day'][6], 'L_MINI_CAL_SAT' => $user->lang['mini_cal']['day'][7], 'U_PREV_MONTH' => $prev_month, - 'U_NEXT_MONTH' => $next_month) - ); + 'U_NEXT_MONTH' => $next_month, + 'S_DISPLAY_EVENTS' => ($config['board3_display_events_' . $module_id]) ? true : false, + )); /* * Let's start displaying the events diff --git a/root/styles/prosilver/template/portal/modules/calendar_side.html b/root/styles/prosilver/template/portal/modules/calendar_side.html index 2c81ea07..71991742 100644 --- a/root/styles/prosilver/template/portal/modules/calendar_side.html +++ b/root/styles/prosilver/template/portal/modules/calendar_side.html @@ -28,6 +28,7 @@ +
+ {$LR_BLOCK_F_L}{$LR_BLOCK_F_R} \ No newline at end of file diff --git a/root/styles/subsilver2/template/portal/modules/calendar_side.html b/root/styles/subsilver2/template/portal/modules/calendar_side.html index fd0e60c2..3d0f45f7 100644 --- a/root/styles/subsilver2/template/portal/modules/calendar_side.html +++ b/root/styles/subsilver2/template/portal/modules/calendar_side.html @@ -33,12 +33,12 @@ - + - + @@ -61,7 +61,7 @@
{L_CURRENT_EVENTS}:{L_CURRENT_EVENTS}:
- + @@ -83,6 +83,6 @@ - +
{L_UPCOMING_EVENTS}:{L_UPCOMING_EVENTS}:
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R} \ No newline at end of file