From 19c4447e460532411c531be0be978cd37873d4ee Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 13 Aug 2023 01:08:53 +0200 Subject: [PATCH] release 2023.08.12 --- CHANGELOG.md | 92 ++++++++++++++++++++++++++++++++-------------------- README.md | 38 +++++++++++----------- _define.php | 12 +++---- dcstore.xml | 10 +++--- 4 files changed, 86 insertions(+), 66 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96a51ab..c2ba6a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,47 +1,67 @@ -2023.05.13 -- require dotclear 2.26 -- fix type hint and nullsafe warnings +lastBlogUpdate 2023.08.12 +=========================================================== +* Require Dotclear 2.27 +* Require PHP 7.4+ +* Upgrade to Dotclear 2.27 +* Move third party repository +* Use Dotclear style for CHANGELOG -2023.04.22 -- require dotclear 2.26 -- use latest helper namespace -- fix nullsafe warnings +lastBlogUpdate 2023.05.13 +=========================================================== +* require dotclear 2.26 +* fix type hint and nullsafe warnings -2023.03.2025 -- require dotclear 2.26 -- use namespace +lastBlogUpdate 2023.04.22 +=========================================================== +* require dotclear 2.26 +* use latest helper namespace +* fix nullsafe warnings -2022.11.20 -- fix compatibility with Dotclear 2.24 (required) +lastBlogUpdate 2023.03.2025 +=========================================================== +* require dotclear 2.26 +* use namespace -2021.08.27 -- cleanup (PSR2, short array, ...) -- enhance widget style -- update license +lastBlogUpdate 2022.11.20 +=========================================================== +* fix compatibility with Dotclear 2.24 (required) -2015.04.22 - Pierre Van Glabeke -- modif url support -- suppression icône +lastBlogUpdate 2021.08.27 +=========================================================== +* cleanup (PSR2, short array, ...) +* enhance widget style +* update license -2015.01.29 - Pierre Van Glabeke -- ajout option hors ligne widget -- modif code pour affichage widget (compatibilité currywurst) -- modifs locales +lastBlogUpdate 2015.04.22 - Pierre Van Glabeke +=========================================================== +* modif url support +* suppression icône -2013.11.12 -- Tiny clean up and add options to widgets +lastBlogUpdate 2015.01.29 - Pierre Van Glabeke +=========================================================== +* ajout option hors ligne widget +* modif code pour affichage widget (compatibilité currywurst) +* modifs locales -2013.06.30 -- Used new 'homeonly' style for widgets +lastBlogUpdate 2013.11.12 +=========================================================== +* Tiny clean up and add options to widgets -0.5 - 2010-06-05 -- Switched to DC 2.2 +lastBlogUpdate 2013.06.30 +=========================================================== +* Used new 'homeonly' style for widgets -0.4 -- Added media update -- Moved public function to _public.php -- Fixed some l10n +lastBlogUpdate 0.5 - 2010-06-05 +=========================================================== +* Switched to DC 2.2 -0.3 -- Fixed php 5.3 compatibility -- Fixed wrong timezone \ No newline at end of file +lastBlogUpdate 0.4 +=========================================================== +* Added media update +* Moved public function to _public.php +* Fixed some l10n + +lastBlogUpdate 0.3 +=========================================================== +* Fixed php 5.3 compatibility +* Fixed wrong timezone \ No newline at end of file diff --git a/README.md b/README.md index b4ea5d5..bfc414a 100644 --- a/README.md +++ b/README.md @@ -1,43 +1,43 @@ # README -[![Release](https://img.shields.io/github/v/release/JcDenis/lastBlogUpdate)](https://github.com/JcDenis/lastBlogUpdate/releases) -[![Date](https://img.shields.io/github/release-date/JcDenis/lastBlogUpdate)](https://github.com/JcDenis/lastBlogUpdate/releases) -[![Issues](https://img.shields.io/github/issues/JcDenis/lastBlogUpdate)](https://github.com/JcDenis/lastBlogUpdate/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download) -[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/lastBlogUpdate) -[![License](https://img.shields.io/github/license/JcDenis/lastBlogUpdate)](https://github.com/JcDenis/lastBlogUpdate/blob/master/LICENSE) +[![Release](https://img.shields.io/badge/release-2023.08.12-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/lastBlogUpdate/releases) +[![Date](https://img.shields.io/badge/date-2023.08.12-c44d58.svg)](https://git.dotclear.watch/JcDenis/lastBlogUpdate/releases) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-137bbb.svg)](https://fr.dotclear.org/download) +[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/lastBlogUpdate) +[![License](https://img.shields.io/github/license/JcDenis/lastBlogUpdate)](https://git.dotclear.watch/JcDenis/lastBlogUpdate/blob/master/LICENSE) ## WHAT IS LASTBLOGUPDATE ? -**last blog update** is a plugin for the open-source +_last blog update_ is a plugin for the open-source web publishing software called Dotclear. Simply show visitors last update of posts, comments, etc of your blog. ## REQUIREMENTS - **lastBlogUpdate** requires: +_lastBlogUpdate_ requires: - * permissions to manage widgets - * Dotclear 2.26 +* permissions to manage widgets +* Dotclear 2.27 +* PHP 7.4+ ## USAGE -First install **lastBlogUpdate**, manualy from a zip package or from +First install _lastBlogUpdate_, manualy from a zip package or from Dotaddict repository. (See Dotclear's documentation to know how do this) -Add and configure **Last blog update** from widgets manager. +Add and configure _Last blog update_ from widgets manager. ## LINKS - * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) - * Source & contribution : [GitHub Page](https://github.com/JcDenis/lastBlogUpdate) - * Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/lastBlogUpdate) - * Discuss and help : [Dotclear Forum](ttp://forum.dotclear.org/viewtopic.php?pid=332950#p332950) +* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) +* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/lastBlogUpdate) or [GitHub Page](https://github.com/JcDenis/lastBlogUpdate) +* Packages & details : [Gitea Page](https://git.dotclear.watch/JcDenis/lastBlogUpdate/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/lastBlogUpdate) +* Discuss and help : [Dotclear Forum](ttp://forum.dotclear.org/viewtopic.php?pid=332950#p332950) ## CONTRIBUTORS - * Jean-Christian Denis - * Pierre Van Glabeke +* Jean-Christian Denis +* Pierre Van Glabeke - You are welcome to contribute to this code. \ No newline at end of file +You are welcome to contribute to this code. diff --git a/_define.php b/_define.php index c8b7c2c..cfdfd0f 100644 --- a/_define.php +++ b/_define.php @@ -10,7 +10,7 @@ * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ -if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { +if (!defined('DC_RC_PATH')) { return null; } @@ -18,16 +18,16 @@ $this->registerModule( 'Last blog update', 'Show the dates of last updates of your blog in a widget', 'Jean-Christian Denis, Pierre Van Glabeke', - '2023.05.13', + '2023.08.12', [ - 'requires' => [['core', '2.26']], + 'requires' => [['core', '2.27']], 'permissions' => dcCore::app()->auth->makePermissions([ dcCore::app()->auth::PERMISSION_USAGE, dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]), 'type' => 'plugin', - 'support' => 'http://forum.dotclear.org/viewtopic.php?pid=332950#p332950', - 'details' => 'http://plugins.dotaddict.org/dc2/details/lastBlogUpdate', - 'repository' => 'https://raw.githubusercontent.com/JcDenis/lastBlogUpdate/master/dcstore.xml', + 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues', + 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md', + 'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml', ] ); diff --git a/dcstore.xml b/dcstore.xml index 2503db4..438311c 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,12 +2,12 @@ Last blog update - 2023.05.13 + 2023.08.12 Jean-Christian Denis, Pierre Van Glabeke Show the dates of last updates of your blog in a widget - https://github.com/JcDenis/lastBlogUpdate/releases/download/v2023.05.13/plugin-lastBlogUpdate.zip - 2.26 - http://plugins.dotaddict.org/dc2/details/lastBlogUpdate - http://forum.dotclear.org/viewtopic.php?pid=332950#p332950 + https://git.dotclear.watch/JcDenis/lastBlogUpdate/releases/download/v2023.08.12/plugin-lastBlogUpdate.zip + 2.27 + https://git.dotclear.watch/JcDenis/lastBlogUpdate/src/branch/master/README.md + https://git.dotclear.watch/JcDenis/lastBlogUpdate/issues