'; // Now print out all the holidays. $alternate = false; foreach ($context['holidays'] as $holiday) { echo ' '; $alternate = !$alternate; } echo '
', $txt['current_holidays'], '
', $txt[139], ': ', $context['page_index'], '
', $txt['holidays_title'], ' ', $txt[317], '
', $holiday['title'], ' ', $holiday['date'], '
', $txt['holidays_add'], '
'; } // Editing or adding holidays. function template_edit_holiday() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // Start with javascript for getting the calendar dates right. echo ' '; // Show a form for all the holiday information. echo '
', $context['page_title'], '
', $txt['holidays_title_label'], ':
', $txt['calendar10'], '   ', $txt['calendar9'], '    ', $txt['calendar11'], ' 
'; if ($context['is_new']) echo ' '; else echo ' '; echo '
'; } // Calendar settings. function template_modify_settings() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
'; if ($context['can_change_permissions']) { echo ' '; } echo '
', $txt['calendar_settings'], '
:
', $txt['groups_calendar_view'], ': '; theme_inline_permissions('calendar_view'); echo '
', $txt['groups_calendar_post'], ': '; theme_inline_permissions('calendar_post'); echo '
', $txt['groups_calendar_edit_own'], ': '; theme_inline_permissions('calendar_edit_own'); echo '
', $txt['groups_calendar_edit_any'], ': '; theme_inline_permissions('calendar_edit_any'); echo '

:
:

', $txt['setting_cal_days_for_index'], ':
', $txt['setting_cal_showholidays'], ':
', $txt['setting_cal_showbdays'], ':
', $txt['setting_cal_showevents'], ':

', $txt['setting_cal_defaultboard'], ':
:
:

', $txt['setting_cal_minyear'], ':
', $txt['setting_cal_maxyear'], ':

', $txt['setting_cal_bdaycolor'], ':
', $txt['setting_cal_eventcolor'], ':
', $txt['setting_cal_holidaycolor'], ':

:
', $txt['setting_cal_maxspan'], ':
'; } ?>