From 529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 24 Aug 2021 15:38:16 +0200 Subject: Update --- Neutron-trunk/widgets/calendar/feature.json | 15 ++++ Neutron-trunk/widgets/calendar/source.php | 124 ++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 Neutron-trunk/widgets/calendar/feature.json create mode 100644 Neutron-trunk/widgets/calendar/source.php (limited to 'Neutron-trunk/widgets/calendar') diff --git a/Neutron-trunk/widgets/calendar/feature.json b/Neutron-trunk/widgets/calendar/feature.json new file mode 100644 index 0000000..efe8702 --- /dev/null +++ b/Neutron-trunk/widgets/calendar/feature.json @@ -0,0 +1,15 @@ +{ + "name": { + "en": "Upcoming Events", + "fr": "Prochains événements" + }, + "description": { + "en": "Shows the upcoming calendar events in a widget", + "fr": "Affiche les prochains événements du calendrier dans un widget" + }, + + "config": "/cms-special/admin/calendar", + "class": "MpcmsFeatureCalendar", + + "cache": true +} \ No newline at end of file diff --git a/Neutron-trunk/widgets/calendar/source.php b/Neutron-trunk/widgets/calendar/source.php new file mode 100644 index 0000000..dd644a9 --- /dev/null +++ b/Neutron-trunk/widgets/calendar/source.php @@ -0,0 +1,124 @@ +
{$lang["widgets"]["calendar"]["nothing"]}
"); + } + } else { + echo("{$lang["widgets"]["calendar"]["corrupt"]}"); + } + if ($_RENDERER === "Neutron Titanium") { + echo("{$lang["widgets"]["calendar"]["more"]}"); + } else { + echo("{$lang["widgets"]["calendar"]["more"]}"); + } + } +} -- cgit