From 469e1308879f3a7be183bd5c2f2afe96063f96f5 Mon Sep 17 00:00:00 2001 From: Kester Mielke Date: Tue, 18 Aug 2020 16:21:26 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20f=C3=BCr=20#38?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../contao/dca/tl_calendar_events.php | 38 ++++++++++- .../contao/templates/cal_timetable.xhtml | 66 ------------------- .../contao/templates/cal_yearview.xhtml | 44 ------------- .../templates/mod_fc_fullcalendar.xhtml | 7 -- 4 files changed, 37 insertions(+), 118 deletions(-) delete mode 100644 src/Resources/contao/templates/cal_timetable.xhtml delete mode 100644 src/Resources/contao/templates/cal_yearview.xhtml delete mode 100644 src/Resources/contao/templates/mod_fc_fullcalendar.xhtml 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): ?> - - - -
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(); ?>