diff --git a/src/Resources/contao/dca/tl_calendar_events.php b/src/Resources/contao/dca/tl_calendar_events.php index aac5dd7..290c68f 100644 --- a/src/Resources/contao/dca/tl_calendar_events.php +++ b/src/Resources/contao/dca/tl_calendar_events.php @@ -36,6 +36,24 @@ '{location_legend},location_name,location_str,location_plz,location_ort;{contact_legend},location_link,location_contact,location_mail;{regform_legend},useRegistration;{recurring_legend},recurring;{recurring_legend_ext},recurringExt;{repeatFixedDates_legend},repeatFixedDates;{exception_legend},useExceptions;', $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['default'] ); + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['article'] = str_replace + ( + '{recurring_legend},recurring;', + '{location_legend},location_name,location_str,location_plz,location_ort;{contact_legend},location_link,location_contact,location_mail;{regform_legend},useRegistration;{recurring_legend},recurring;{recurring_legend_ext},recurringExt;{repeatFixedDates_legend},repeatFixedDates;{exception_legend},useExceptions;', + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['article'] + ); + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['internal'] = str_replace + ( + '{recurring_legend},recurring;', + '{location_legend},location_name,location_str,location_plz,location_ort;{contact_legend},location_link,location_contact,location_mail;{regform_legend},useRegistration;{recurring_legend},recurring;{recurring_legend_ext},recurringExt;{repeatFixedDates_legend},repeatFixedDates;{exception_legend},useExceptions;', + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['internal'] + ); + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['external'] = str_replace + ( + '{recurring_legend},recurring;', + '{location_legend},location_name,location_str,location_plz,location_ort;{contact_legend},location_link,location_contact,location_mail;{regform_legend},useRegistration;{recurring_legend},recurring;{recurring_legend_ext},recurringExt;{repeatFixedDates_legend},repeatFixedDates;{exception_legend},useExceptions;', + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['external'] + ); } else { $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['default'] = str_replace ( @@ -43,6 +61,24 @@ '{location_legend},location_name,location_str,location_plz,location_ort;{contact_legend},location_link,location_contact,location_mail;{recurring_legend},recurring;{recurring_legend_ext},recurringExt;{repeatFixedDates_legend},repeatFixedDates;{exception_legend},useExceptions;', $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['default'] ); + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['article'] = str_replace + ( + '{recurring_legend},recurring;', + '{location_legend},location_name,location_str,location_plz,location_ort;{contact_legend},location_link,location_contact,location_mail;{recurring_legend},recurring;{recurring_legend_ext},recurringExt;{repeatFixedDates_legend},repeatFixedDates;{exception_legend},useExceptions;', + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['article'] + ); + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['internal'] = str_replace + ( + '{recurring_legend},recurring;', + '{location_legend},location_name,location_str,location_plz,location_ort;{contact_legend},location_link,location_contact,location_mail;{recurring_legend},recurring;{recurring_legend_ext},recurringExt;{repeatFixedDates_legend},repeatFixedDates;{exception_legend},useExceptions;', + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['internal'] + ); + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['external'] = str_replace + ( + '{recurring_legend},recurring;', + '{location_legend},location_name,location_str,location_plz,location_ort;{contact_legend},location_link,location_contact,location_mail;{recurring_legend},recurring;{recurring_legend_ext},recurringExt;{repeatFixedDates_legend},repeatFixedDates;{exception_legend},useExceptions;', + $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['external'] + ); } // change the default palettes @@ -1340,4 +1376,4 @@ public function listRegForms($a) return $return; } -} \ No newline at end of file +} diff --git a/src/Resources/contao/templates/cal_timetable.xhtml b/src/Resources/contao/templates/cal_timetable.xhtml deleted file mode 100644 index e3d34ef..0000000 --- a/src/Resources/contao/templates/cal_timetable.xhtml +++ /dev/null @@ -1,66 +0,0 @@ -
- - use_navigation): ?> -
- linkCurrent): ?> - - - -
current; ?>
- -
- - -
- - - cal_times): ?> - - - weekday as $i => $day): ?> - - - - - - cal_times): ?> - - - weekday as $i => $day): ?> - - - - -
Zeit -
-
-
- times as $i => $time): ?> -
- -
-
-
- $event): ?> - -
-
- > -
-
- -
- -
-
- - - -
-
- - -
-
-
-
\ No newline at end of file diff --git a/src/Resources/contao/templates/cal_yearview.xhtml b/src/Resources/contao/templates/cal_yearview.xhtml deleted file mode 100644 index daa14f3..0000000 --- a/src/Resources/contao/templates/cal_yearview.xhtml +++ /dev/null @@ -1,44 +0,0 @@ - -
- linkCurrent): ?> -
currLink; ?>
- - -
current; ?>
- -
- - - - - months as $i => $day): ?> - - - - -yeardays as $d => $days): ?> - - $day): ?> - - - - - - -
-
-
- $event): ?> - -
-
- -
-
- - -
- diff --git a/src/Resources/contao/templates/mod_fc_fullcalendar.xhtml b/src/Resources/contao/templates/mod_fc_fullcalendar.xhtml deleted file mode 100644 index 50f1bb8..0000000 --- a/src/Resources/contao/templates/mod_fc_fullcalendar.xhtml +++ /dev/null @@ -1,7 +0,0 @@ -extend('block_unsearchable'); ?> - -block('content'); ?> - -fullcalendar ?> - -endblock(); ?>