From 06ccf7bf1ef2dc128bb58d46c7694a2f0f063e46 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 13 Aug 2023 18:09:20 +0200 Subject: [PATCH] release 2023.08.13 --- CHANGELOG.md | 163 +++++++++++++++++++++++---------------- README.md | 38 +++++---- _define.php | 8 +- dcstore.xml | 8 +- src/BackendBehaviors.php | 2 +- 5 files changed, 122 insertions(+), 97 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1666080..2d2654f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,87 +1,114 @@ -2023.07.30 -- require Dotclear 2.27 -- require PHP 7.4+ -- update to Dotclear 2.27-dev +postExpired 2023.08.13 +=========================================================== +* Require Dotclear 2.27 +* Require PHP 7.4 +* Move third party repository +* Use Dotclear style for CHANGELOG -2023.05.21 -- require dotclear 2.26 -- fix sidebar menu toggle -- add ability to change password +postExpired 2023.07.30 +=========================================================== +* require Dotclear 2.27 +* require PHP 7.4+ +* update to Dotclear 2.27-dev -2023.05.13 -- require dotclear 2.26 -- fix sql statement -- fix backend js -- cleanup for dotclear 2.26 stable +postExpired 2023.05.21 +=========================================================== +* require dotclear 2.26 +* fix sidebar menu toggle +* add ability to change password -2023.04.23 -- require dotclear 2.26 -- use latest dotclear namespace -- use sql statement -- fix nullsafe warnings -- add some inline code doc +postExpired 2023.05.13 +=========================================================== +* require dotclear 2.26 +* fix sql statement +* fix backend js +* cleanup for dotclear 2.26 stable -2023.03.21 -- require dotclear 2.25 -- use namespace -- use DateTimeZone +postExpired 2023.04.23 +=========================================================== +* require dotclear 2.26 +* use latest dotclear namespace +* use sql statement +* fix nullsafe warnings +* add some inline code doc -2022.12.25 -- use SVG icon -- use constants for database tables names -- use abstract plugin id -- fix install (unsed for now) +postExpired 2023.03.21 +=========================================================== +* require dotclear 2.25 +* use namespace +* use DateTimeZone -2022.11.20 -- fix compatibility with Dotclear 2.24 (required) -- fix wrong timezone on admin vs public expired date +postExpired 2022.12.25 +=========================================================== +* use SVG icon +* use constants for database tables names +* use abstract plugin id +* fix install (unsed for now) -2022.04.27 -- require Dotclear 2.21.3 -- fix browser date picker +postExpired 2022.11.20 +=========================================================== +* fix compatibility with Dotclear 2.24 (required) +* fix wrong timezone on admin vs public expired date -2021.08.20 -- fix metadata call +postExpired 2022.04.27 +=========================================================== +* require Dotclear 2.21.3 +* fix browser date picker -2021.08.19 -- update license and fix PSR2 coding style +postExpired 2021.08.20 +=========================================================== +* fix metadata call -2013.11.13 -- Fixed wrong field name for category +postExpired 2021.08.19 +=========================================================== +* update license and fix PSR2 coding style -2013.11.03 -- Switch to Dotclear 2.6 -- Use new posts actions -- Save all options in one meta -- Limit plugin to contentadmin +postExpired 2013.11.13 +=========================================================== +* Fixed wrong field name for category -2013.06.30 -- Fixed post_type and posts_actions +postExpired 2013.11.03 +=========================================================== +* Switch to Dotclear 2.6 +* Use new posts actions +* Save all options in one meta +* Limit plugin to contentadmin -0.5 - 2010-08-17 -- Added compatibility with plugins 'pages' and 'muppet' +postExpired 2013.06.30 +=========================================================== +* Fixed post_type and posts_actions -0.4 - 2010-08-03 -- Added actions (comments, trackbacks) (closes #525) -- Speed up public part (less sql resquests) -- Fixed typo +postExpired 0.5 - 2010-08-17 +=========================================================== +* Added compatibility with plugins 'pages' and 'muppet' -0.3.1 - 2010-06-21 -- Fixed user rights -- Fixed (again) PHP 5.3 compatibility -- Fixed typo +postExpired 0.4 - 2010-08-03 +=========================================================== +* Added actions (comments, trackbacks) (closes #525) +* Speed up public part (less sql resquests) +* Fixed typo -0.3 - 2010-06-08 -- Switched to DC 2.2 (settings,meta) +postExpired 0.3.1 - 2010-06-21 +=========================================================== +* Fixed user rights +* Fixed (again) PHP 5.3 compatibility +* Fixed typo -0.2.1 - 2010-05-28 -- Fixed DC 2.1.7 settings bugs +postExpired 0.3 - 2010-06-08 +=========================================================== +* Switched to DC 2.2 (settings,meta) -0.2 - 2010-04-14 -- Added actions choice (status,category,selected) -- Added template block and value -- Added behaviors to open choices -- Enhanced db resquest on public side +postExpired 0.2.1 - 2010-05-28 +=========================================================== +* Fixed DC 2.1.7 settings bugs -0.1 - 2010-04-10 -- First lab release \ No newline at end of file +postExpired 0.2 - 2010-04-14 +=========================================================== +* Added actions choice (status,category,selected) +* Added template block and value +* Added behaviors to open choices +* Enhanced db resquest on public side + +postExpired 0.1 - 2010-04-10 +=========================================================== +* First lab release \ No newline at end of file diff --git a/README.md b/README.md index ca82639..2135dcc 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # README -[![Release](https://img.shields.io/github/v/release/JcDenis/postExpired)](https://github.com/JcDenis/postExpired/releases) -[![Date](https://img.shields.io/github/release-date/JcDenis/postExpired)](https://github.com/JcDenis/postExpired/releases) -[![Issues](https://img.shields.io/github/issues/JcDenis/postExpired)](https://github.com/JcDenis/postExpired/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-blue.svg)](https://fr.dotclear.org/download) -[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/postExpired) -[![License](https://img.shields.io/github/license/JcDenis/postExpired)](https://github.com/JcDenis/postExpired/blob/master/LICENSE) +[![Release](https://img.shields.io/badge/release-2023.08.13-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/postExpired/releases) +[![Date](https://img.shields.io/badge/date-2023.08.13-c44d58.svg)](https://git.dotclear.watch/JcDenis/postExpired/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/postExpired) +[![License](https://img.shields.io/github/license/JcDenis/postExpired)](https://git.dotclear.watch/JcDenis/postExpired/blob/master/LICENSE) ## WHAT IS POSTEXPIRED ? @@ -17,15 +16,15 @@ to change some options of a post at a given time. ## REQUIREMENTS - postExpired requires: +_postExpired_ requires: - * contentadmin permissions - * Dotclear 2.27 - * PHP 7.4+ +* contentadmin permissions +* Dotclear 2.27 +* PHP 7.4+ ## USAGE -First install postExpired, manualy from a zip package or from +First install _postExpired_, manualy from a zip package or from Dotaddict repository. (See Dotclear's documentation to know how do this) When you edit a post you have a new sidebar menu called "Expired date" @@ -35,19 +34,18 @@ You can also add or remove expired date to multiple post from posts actions page. This plugins also supports standard "pages". Notes: - - * Only one expired date per post is supported - * Expired dates are checked from public home page and feed page +* Only one expired date per post is supported +* Expired dates are checked from public home page and feed page ## LINKS - * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) - * Source & contribution : [GitHub Page](https://github.com/JcDenis/postExpired) - * Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/postExpired) - * Discuss & help : [Dotclear Forum](https://forum.dotclear.org/viewtopic.php?id=42305) +* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) +* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/postExpired) or [GitHub Page](https://github.com/JcDenis/postExpired) +* Packages & details: [Gitea Page](https://git.dotclear.watch/JcDenis/postExpired/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/postExpired) +* Discuss & help : [Dotclear Forum](https://forum.dotclear.org/viewtopic.php?id=42305) ## CONTRIBUTORS - * Jean-Christian Denis +* Jean-Christian Denis - 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 0ffcd67..53a2480 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'Expired entries', 'Change entries options at a given date', 'Jean-Christian Denis and Contributors', - '2023.07.30', + '2023.08.13', [ 'requires' => [['core', '2.27']], 'permissions' => dcCore::app()->auth->makePermissions([ @@ -26,8 +26,8 @@ $this->registerModule( 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', + '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 b946b7f..93e7ca2 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,12 +2,12 @@ Expired entries - 2023.07.30 + 2023.08.13 Jean-Christian Denis and Contributors Change entries options at a given date - https://github.com/JcDenis/postExpired/releases/download/v2023.07.30/plugin-postExpired.zip + https://git.dotclear.watch/JcDenis/postExpired/releases/download/v2023.08.13/plugin-postExpired.zip 2.27 - https://plugins.dotaddict.org/dc2/details/postExpired - https://github.com/JcDenis/postExpired + https://git.dotclear.watch/JcDenis/postExpired/src/branch/master/README.md + https://git.dotclear.watch/JcDenis/postExpired/issues diff --git a/src/BackendBehaviors.php b/src/BackendBehaviors.php index 3eadf5b..5be5df0 100644 --- a/src/BackendBehaviors.php +++ b/src/BackendBehaviors.php @@ -176,7 +176,7 @@ class BackendBehaviors Notices::addSuccessNotice(__('Expired date added.')); $pa->redirect(true); - // Display form + // Display form } else { // Get records to know post type $posts = $pa->getRS();