Skip to content

Commit

Permalink
Fix für #38
Browse files Browse the repository at this point in the history
  • Loading branch information
Kester Mielke committed Aug 18, 2020
1 parent 0f2236e commit 469e130
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 118 deletions.
38 changes: 37 additions & 1 deletion src/Resources/contao/dca/tl_calendar_events.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,49 @@
'{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
(
'{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']['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
Expand Down Expand Up @@ -1340,4 +1376,4 @@ public function listRegForms($a)
return $return;
}

}
}
66 changes: 0 additions & 66 deletions src/Resources/contao/templates/cal_timetable.xhtml

This file was deleted.

44 changes: 0 additions & 44 deletions src/Resources/contao/templates/cal_yearview.xhtml

This file was deleted.

7 changes: 0 additions & 7 deletions src/Resources/contao/templates/mod_fc_fullcalendar.xhtml

This file was deleted.

0 comments on commit 469e130

Please sign in to comment.