From 45e84abd9fe1baa9b79e8eae96cbd49890e18fce Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 15 Aug 2023 20:30:05 +0200 Subject: [PATCH] release 2023.08.15 --- CHANGELOG.md | 156 +++++++++++++++++++++++++++++---------------------- README.md | 31 +++++----- _define.php | 16 +++--- dcstore.xml | 10 ++-- 4 files changed, 116 insertions(+), 97 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dde7d3a..95eaf96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,82 +1,102 @@ -todo: -- cleanup plugin importExport features +postWidgetText 2023.08.15 +=========================================================== +* Require Dotclear 2.27 +* Require PHP 8.1 +* Fix pgsql support +* Upgrade to Dotclear 2.27 stable +* Move third party repository +* Use Dotclear style for CHANGELOG -2023.05.13 -- require dotclear 2.26 -- require PHP 8.0+ -- use define php_min -- fix post editor +postWidgetText 2023.05.13 +=========================================================== +* require dotclear 2.26 +* require PHP 8.0+ +* use define php_min +* fix post editor -2023.04.26 -- require dotclear 2.26 -- require PHP 8.0+ -- use namespace -- use sql statement -- add use columns preference -- add list filters -- add plugin Uninstaller features (no direct actions) -- various fixes +postWidgetText 2023.04.26 +=========================================================== +* require dotclear 2.26 +* require PHP 8.0+ +* use namespace +* use sql statement +* add use columns preference +* add list filters +* add plugin Uninstaller features (no direct actions) +* various fixes -2022.12.23 -- use SVG icon -- use constant for table name -- use abstract plugin id and settings ns -- use short settings id -- use new addBehaviors -- fix autoload -- fix permissions -- fix install -- fix phpstan errors +postWidgetText 2022.12.23 +=========================================================== +* use SVG icon +* use constant for table name +* use abstract plugin id and settings ns +* use short settings id +* use new addBehaviors +* fix autoload +* fix permissions +* fix install +* fix phpstan errors -2022.11.20 -- fix compatibility with Dotclear 2.24 (required) +postWidgetText 2022.11.20 +=========================================================== +* fix compatibility with Dotclear 2.24 (required) -2021.11.06 -- fix error on empty record on widget -- update to PS12 +postWidgetText 2021.11.06 +=========================================================== +* fix error on empty record on widget +* update to PS12 -2021.10.30 -- clean up code -- update license -- update translations -- check Dotclear 2.19 -- check php7.3+, php8.0 -- complete readme file -- fix widget rendering -- fix combo name -- fix javascript -- add user pref for posts list filters (dc 2.20) -- move config to blog pref +postWidgetText 2021.10.30 +=========================================================== +* clean up code +* update license +* update translations +* check Dotclear 2.19 +* check php7.3+, php8.0 +* complete readme file +* fix widget rendering +* fix combo name +* fix javascript +* add user pref for posts list filters (dc 2.20) +* move config to blog pref -2013.11.21 -- Switch to Dotclear 2.6 and clean up code -- Change icons -- Add dashboard icon +postWidgetText 2013.11.21 +=========================================================== +* Switch to Dotclear 2.6 and clean up code +* Change icons +* Add dashboard icon -2011.06.10 -- Fixed export bug (thks @noe) -- (c) 2011 +postWidgetText 2011.06.10 +=========================================================== +* Fixed export bug (thks @noe) +* (c) 2011 -2011.04.11 -- Changed version numbering -- Fixed Dotclear 2.2.3 chage on plugin page (thks @tomek) -- Fixed call to $core->blog on prepend +postWidgetText 2011.04.11 +=========================================================== +* Changed version numbering +* Fixed Dotclear 2.2.3 chage on plugin page (thks @tomek) +* Fixed call to $core->blog on prepend -0.6.1 - 2010.11.12 -- Fixed install on nightly build +postWidgetText 0.6.1 - 2010.11.12 +=========================================================== +* Fixed install on nightly build -0.6 - 2010-06-08 -- Switched to DC 2.2 +postWidgetText 0.6 - 2010-06-08 +=========================================================== +* Switched to DC 2.2 -0.5 - 2010.04.07 -- Rewrited and cleaned extension -- Changed table +postWidgetText 0.5 - 2010.04.07 +=========================================================== +* Rewrited and cleaned extension +* Changed table -0.4 - 2009.08.23 -- Added behaviors -- Added custom widget title -- Added "plugin page'' support +postWidgetText 0.4 - 2009.08.23 +=========================================================== +* Added behaviors +* Added custom widget title +* Added "plugin page'' support -0.3 -- Fixed php 5.3 compatibility -- Fixed typo in export function \ No newline at end of file +postWidgetText 0.3 +=========================================================== +* Fixed php 5.3 compatibility +* Fixed typo in export function \ No newline at end of file diff --git a/README.md b/README.md index 17704c2..b5fbfe5 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # README -[![Release](https://img.shields.io/github/v/release/JcDenis/postWidgetText)](https://github.com/JcDenis/postWidgetText/releases) -[![Date](https://img.shields.io/github/release-date/JcDenis/postWidgetText)](https://github.com/JcDenis/postWidgetText/releases) -[![Issues](https://img.shields.io/github/issues/JcDenis/postWidgetText)](https://github.com/JcDenis/postWidgetText/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/postWidgetText) -[![License](https://img.shields.io/github/license/JcDenis/postWidgetText)](https://github.com/JcDenis/postWidgetText/blob/master/LICENSE) +[![Release](https://img.shields.io/badge/release-2023.08.15-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/postWidgetText/releases) +[![Date](https://img.shields.io/badge/date-2023.08.15-c44d58.svg)](https://git.dotclear.watch/JcDenis/postWidgetText/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/postWidgetText) +[![License](https://img.shields.io/github/license/JcDenis/postWidgetText)](https://git.dotclear.watch/JcDenis/postWidgetText/blob/master/LICENSE) ## WHAT IS POSTWIDGETTEXT ? @@ -16,12 +15,12 @@ Add a widget related to an entry with custom titles and content. ## REQUIREMENTS - _postWidgetText_ requires: +_postWidgetText_ requires: - * permissions to manage widgets - * permissions to manage entries - * Dotclear 2.26 - * PHP 8.0+ +* permissions to manage widgets +* permissions to manage entries +* Dotclear 2.27 +* PHP 8.0+ Note this plugin add table called post_option to Dotclear database. @@ -37,12 +36,12 @@ Manage (delete) "widgets" from sidebar menu called "Post widget text". ## LINKS - * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) - * Source & contribution : [GitHub Page](https://github.com/JcDenis/postWidgetText) - * Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/postWidgetText) +* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) +* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/postWidgetText) or [GitHub Page](https://github.com/JcDenis/postWidgetText) +* Packages & details: [Gitea Page](https://git.dotclear.watch/JcDenis/postWidgetText/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/postWidgetText) ## CONTRIBUTORS - * Jean-Christian Denis +* Jean-Christian Denis (author) - 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 c84fdc8..9205f30 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,22 +18,22 @@ $this->registerModule( 'Post widget text', 'Add a widget with a text related to an entry', 'Jean-Christian Denis and Contributors', - '2023.05.13', + '2023.08.15', [ 'requires' => [ ['php', '8.0'], - ['core', '2.26'], + ['core', '2.27'], ], 'permissions' => dcCore::app()->auth->makePermissions([ dcCore::app()->auth::PERMISSION_USAGE, dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]), - 'type' => 'plugin', - 'support' => 'https://github.com/JcDenis/' . basename(__DIR__), - 'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__), - 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', - 'settings' => [ + 'settings' => [ 'blog' => '#params.pwt_params', ], + 'type' => 'plugin', + '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 99e5596..6ea10db 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,12 +2,12 @@ Post widget text - 2023.05.13 + 2023.08.15 Jean-Christian Denis and Contributors Add a widget with a text related to an entry - https://github.com/JcDenis/postWidgetText/releases/download/v2023.05.13/plugin-postWidgetText.zip - 2.26 - https://plugins.dotaddict.org/dc2/details/postWidgetText - https://github.com/JcDenis/postWidgetText + https://git.dotclear.watch/JcDenis/postWidgetText/releases/download/v2023.08.15/plugin-postWidgetText.zip + 2.27 + https://git.dotclear.watch/JcDenis/postWidgetText/src/branch/master/README.md + https://git.dotclear.watch/JcDenis/postWidgetText/issues