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/.htaccess | 4 + Neutron-trunk/widgets/calendar/feature.json | 15 ++++ Neutron-trunk/widgets/calendar/source.php | 124 ++++++++++++++++++++++++++++ Neutron-trunk/widgets/clock/feature.json | 15 ++++ Neutron-trunk/widgets/clock/source.php | 96 +++++++++++++++++++++ Neutron-trunk/widgets/views/feature.json | 15 ++++ Neutron-trunk/widgets/views/source.php | 25 ++++++ 7 files changed, 294 insertions(+) create mode 100644 Neutron-trunk/widgets/.htaccess create mode 100644 Neutron-trunk/widgets/calendar/feature.json create mode 100644 Neutron-trunk/widgets/calendar/source.php create mode 100644 Neutron-trunk/widgets/clock/feature.json create mode 100644 Neutron-trunk/widgets/clock/source.php create mode 100644 Neutron-trunk/widgets/views/feature.json create mode 100644 Neutron-trunk/widgets/views/source.php (limited to 'Neutron-trunk/widgets') diff --git a/Neutron-trunk/widgets/.htaccess b/Neutron-trunk/widgets/.htaccess new file mode 100644 index 0000000..bc839cb --- /dev/null +++ b/Neutron-trunk/widgets/.htaccess @@ -0,0 +1,4 @@ +ErrorDocument 401 /cms-special/error/?id=401&description=Accès%20refusé +ErrorDocument 403 /cms-special/error/?id=403&description=Accès%20interdit +ErrorDocument 404 /cms-special/error/?id=404&description=Ressource%20introuvable +ErrorDocument 500 /cms-special/error/?id=500&description=Erreur%20interne \ No newline at end of file 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"]}"); + } + } +} diff --git a/Neutron-trunk/widgets/clock/feature.json b/Neutron-trunk/widgets/clock/feature.json new file mode 100644 index 0000000..70db617 --- /dev/null +++ b/Neutron-trunk/widgets/clock/feature.json @@ -0,0 +1,15 @@ +{ + "name": { + "en": "Clock", + "fr": "Horloge" + }, + "description": { + "en": "Shows the current time in a widget", + "fr": "Affiche un widget contenant l'heure" + }, + + "config": null, + "class": null, + + "cache": true +} \ No newline at end of file diff --git a/Neutron-trunk/widgets/clock/source.php b/Neutron-trunk/widgets/clock/source.php new file mode 100644 index 0000000..04c3939 --- /dev/null +++ b/Neutron-trunk/widgets/clock/source.php @@ -0,0 +1,96 @@ +
+

00:00:00

????? ??? ??????? ????
+
+ \ No newline at end of file diff --git a/Neutron-trunk/widgets/views/feature.json b/Neutron-trunk/widgets/views/feature.json new file mode 100644 index 0000000..a7b3cb7 --- /dev/null +++ b/Neutron-trunk/widgets/views/feature.json @@ -0,0 +1,15 @@ +{ + "name": { + "en": "Views Count", + "fr": "Compteur de visites" + }, + "description": { + "en": "Shows the number of today's site visits in a widget", + "fr": "Affiche un widget avec le nombre de vues du jour" + }, + + "config": null, + "class": null, + + "cache": false +} \ No newline at end of file diff --git a/Neutron-trunk/widgets/views/source.php b/Neutron-trunk/widgets/views/source.php new file mode 100644 index 0000000..399e616 --- /dev/null +++ b/Neutron-trunk/widgets/views/source.php @@ -0,0 +1,25 @@ +
+

+
\ No newline at end of file -- cgit