release 2023.08.13

master v2023.08.12
Jean-Christian Paul Denis 2023-08-13 18:09:20 +02:00
parent fb9958fdcc
commit 06ccf7bf1e
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
5 changed files with 122 additions and 97 deletions

View File

@ -1,87 +1,114 @@
2023.07.30 postExpired 2023.08.13
- require Dotclear 2.27 ===========================================================
- require PHP 7.4+ * Require Dotclear 2.27
- update to Dotclear 2.27-dev * Require PHP 7.4
* Move third party repository
* Use Dotclear style for CHANGELOG
2023.05.21 postExpired 2023.07.30
- require dotclear 2.26 ===========================================================
- fix sidebar menu toggle * require Dotclear 2.27
- add ability to change password * require PHP 7.4+
* update to Dotclear 2.27-dev
2023.05.13 postExpired 2023.05.21
- require dotclear 2.26 ===========================================================
- fix sql statement * require dotclear 2.26
- fix backend js * fix sidebar menu toggle
- cleanup for dotclear 2.26 stable * add ability to change password
2023.04.23 postExpired 2023.05.13
- require dotclear 2.26 ===========================================================
- use latest dotclear namespace * require dotclear 2.26
- use sql statement * fix sql statement
- fix nullsafe warnings * fix backend js
- add some inline code doc * cleanup for dotclear 2.26 stable
2023.03.21 postExpired 2023.04.23
- require dotclear 2.25 ===========================================================
- use namespace * require dotclear 2.26
- use DateTimeZone * use latest dotclear namespace
* use sql statement
* fix nullsafe warnings
* add some inline code doc
2022.12.25 postExpired 2023.03.21
- use SVG icon ===========================================================
- use constants for database tables names * require dotclear 2.25
- use abstract plugin id * use namespace
- fix install (unsed for now) * use DateTimeZone
2022.11.20 postExpired 2022.12.25
- fix compatibility with Dotclear 2.24 (required) ===========================================================
- fix wrong timezone on admin vs public expired date * use SVG icon
* use constants for database tables names
* use abstract plugin id
* fix install (unsed for now)
2022.04.27 postExpired 2022.11.20
- require Dotclear 2.21.3 ===========================================================
- fix browser date picker * fix compatibility with Dotclear 2.24 (required)
* fix wrong timezone on admin vs public expired date
2021.08.20 postExpired 2022.04.27
- fix metadata call ===========================================================
* require Dotclear 2.21.3
* fix browser date picker
2021.08.19 postExpired 2021.08.20
- update license and fix PSR2 coding style ===========================================================
* fix metadata call
2013.11.13 postExpired 2021.08.19
- Fixed wrong field name for category ===========================================================
* update license and fix PSR2 coding style
2013.11.03 postExpired 2013.11.13
- Switch to Dotclear 2.6 ===========================================================
- Use new posts actions * Fixed wrong field name for category
- Save all options in one meta
- Limit plugin to contentadmin
2013.06.30 postExpired 2013.11.03
- Fixed post_type and posts_actions ===========================================================
* Switch to Dotclear 2.6
* Use new posts actions
* Save all options in one meta
* Limit plugin to contentadmin
0.5 - 2010-08-17 postExpired 2013.06.30
- Added compatibility with plugins 'pages' and 'muppet' ===========================================================
* Fixed post_type and posts_actions
0.4 - 2010-08-03 postExpired 0.5 - 2010-08-17
- Added actions (comments, trackbacks) (closes #525) ===========================================================
- Speed up public part (less sql resquests) * Added compatibility with plugins 'pages' and 'muppet'
- Fixed typo
0.3.1 - 2010-06-21 postExpired 0.4 - 2010-08-03
- Fixed user rights ===========================================================
- Fixed (again) PHP 5.3 compatibility * Added actions (comments, trackbacks) (closes #525)
- Fixed typo * Speed up public part (less sql resquests)
* Fixed typo
0.3 - 2010-06-08 postExpired 0.3.1 - 2010-06-21
- Switched to DC 2.2 (settings,meta) ===========================================================
* Fixed user rights
* Fixed (again) PHP 5.3 compatibility
* Fixed typo
0.2.1 - 2010-05-28 postExpired 0.3 - 2010-06-08
- Fixed DC 2.1.7 settings bugs ===========================================================
* Switched to DC 2.2 (settings,meta)
0.2 - 2010-04-14 postExpired 0.2.1 - 2010-05-28
- Added actions choice (status,category,selected) ===========================================================
- Added template block and value * Fixed DC 2.1.7 settings bugs
- Added behaviors to open choices
- Enhanced db resquest on public side
0.1 - 2010-04-10 postExpired 0.2 - 2010-04-14
- First lab release ===========================================================
* 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

View File

@ -1,11 +1,10 @@
# README # README
[![Release](https://img.shields.io/github/v/release/JcDenis/postExpired)](https://github.com/JcDenis/postExpired/releases) [![Release](https://img.shields.io/badge/release-2023.08.13-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/postExpired/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/postExpired)](https://github.com/JcDenis/postExpired/releases) [![Date](https://img.shields.io/badge/date-2023.08.13-c44d58.svg)](https://git.dotclear.watch/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-137bbb.svg)](https://fr.dotclear.org/download)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/postExpired)
[![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://git.dotclear.watch/JcDenis/postExpired/blob/master/LICENSE)
[![License](https://img.shields.io/github/license/JcDenis/postExpired)](https://github.com/JcDenis/postExpired/blob/master/LICENSE)
## WHAT IS POSTEXPIRED ? ## WHAT IS POSTEXPIRED ?
@ -17,15 +16,15 @@ to change some options of a post at a given time.
## REQUIREMENTS ## REQUIREMENTS
postExpired requires: _postExpired_ requires:
* contentadmin permissions * contentadmin permissions
* Dotclear 2.27 * Dotclear 2.27
* PHP 7.4+ * PHP 7.4+
## USAGE ## 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) 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" 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". posts actions page. This plugins also supports standard "pages".
Notes: Notes:
* Only one expired date per post is supported
* Only one expired date per post is supported * Expired dates are checked from public home page and feed page
* Expired dates are checked from public home page and feed page
## LINKS ## LINKS
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
* Source & contribution : [GitHub Page](https://github.com/JcDenis/postExpired) * Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/postExpired) or [GitHub Page](https://github.com/JcDenis/postExpired)
* Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/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) * Discuss & help : [Dotclear Forum](https://forum.dotclear.org/viewtopic.php?id=42305)
## CONTRIBUTORS ## CONTRIBUTORS
* Jean-Christian Denis * Jean-Christian Denis
You are welcome to contribute to this code. You are welcome to contribute to this code.

View File

@ -18,7 +18,7 @@ $this->registerModule(
'Expired entries', 'Expired entries',
'Change entries options at a given date', 'Change entries options at a given date',
'Jean-Christian Denis and Contributors', 'Jean-Christian Denis and Contributors',
'2023.07.30', '2023.08.13',
[ [
'requires' => [['core', '2.27']], 'requires' => [['core', '2.27']],
'permissions' => dcCore::app()->auth->makePermissions([ 'permissions' => dcCore::app()->auth->makePermissions([
@ -26,8 +26,8 @@ $this->registerModule(
dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, dcCore::app()->auth::PERMISSION_CONTENT_ADMIN,
]), ]),
'type' => 'plugin', 'type' => 'plugin',
'support' => 'https://github.com/JcDenis/' . basename(__DIR__), 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues',
'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__), 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md',
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', 'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml',
] ]
); );

View File

@ -2,12 +2,12 @@
<modules xmlns:da="http://dotaddict.org/da/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="postExpired"> <module id="postExpired">
<name>Expired entries</name> <name>Expired entries</name>
<version>2023.07.30</version> <version>2023.08.13</version>
<author>Jean-Christian Denis and Contributors</author> <author>Jean-Christian Denis and Contributors</author>
<desc>Change entries options at a given date</desc> <desc>Change entries options at a given date</desc>
<file>https://github.com/JcDenis/postExpired/releases/download/v2023.07.30/plugin-postExpired.zip</file> <file>https://git.dotclear.watch/JcDenis/postExpired/releases/download/v2023.08.13/plugin-postExpired.zip</file>
<da:dcmin>2.27</da:dcmin> <da:dcmin>2.27</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/postExpired</da:details> <da:details>https://git.dotclear.watch/JcDenis/postExpired/src/branch/master/README.md</da:details>
<da:support>https://github.com/JcDenis/postExpired</da:support> <da:support>https://git.dotclear.watch/JcDenis/postExpired/issues</da:support>
</module> </module>
</modules> </modules>

View File

@ -176,7 +176,7 @@ class BackendBehaviors
Notices::addSuccessNotice(__('Expired date added.')); Notices::addSuccessNotice(__('Expired date added.'));
$pa->redirect(true); $pa->redirect(true);
// Display form // Display form
} else { } else {
// Get records to know post type // Get records to know post type
$posts = $pa->getRS(); $posts = $pa->getRS();