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 @@ -
\ 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 @@ - - - - -- - | - -|
- |
- $event): ?>
-
-
-
-
-
-
-
-
- |
-
-