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
- 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
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

View File

@ -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.
You are welcome to contribute to this code.

View File

@ -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',
]
);

View File

@ -2,12 +2,12 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="postExpired">
<name>Expired entries</name>
<version>2023.07.30</version>
<version>2023.08.13</version>
<author>Jean-Christian Denis and Contributors</author>
<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:details>https://plugins.dotaddict.org/dc2/details/postExpired</da:details>
<da:support>https://github.com/JcDenis/postExpired</da:support>
<da:details>https://git.dotclear.watch/JcDenis/postExpired/src/branch/master/README.md</da:details>
<da:support>https://git.dotclear.watch/JcDenis/postExpired/issues</da:support>
</module>
</modules>

View File

@ -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();