diff --git a/CHANGELOG.md b/CHANGELOG.md index 5252795..345e4c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,21 +1,35 @@ -1.3 - 2023.05.13 +emailOptionnel 1.4 - 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 +* Use plugin ID as settings ID (breaking change) + +emailOptionnel 1.3 - 2023.05.13 +=========================================================== * require dotclear 2.26 * some cleaning for dc2.26 stable -1.2 - 2023.04.23 +emailOptionnel 1.2 - 2023.04.23 +=========================================================== * require dotclear 2.26 * use latest dotclear namespace * fix nullsafe warnings -1.1 - 2023.03.26 +emailOptionnel 1.1 - 2023.03.26 +=========================================================== * require Dotclear 2.26 * use namespace -1.0 - 2022.12.15 +emailOptionnel 1.0 - 2022.12.15 +=========================================================== * update to dotclear 2.24 * use anonymous function for behaviors -0.5.0 - 2020.03.28 - Gvx +emailOptionnel 0.5.0 - 2020.03.28 - Gvx +=========================================================== * Suppression de l'attribut "required" sur le champ "c_mail" * Correction pour une adresse mail valide "invalid@invalid" par "invalid@invalid.fr" * Pré-requis dotclear V2.11 mini diff --git a/README.md b/README.md index 2acc1ab..2a2cc65 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # README -[![Release](https://img.shields.io/github/v/release/JcDenis/emailOptionnel)](https://github.com/JcDenis/emailOptionnel/releases) -[![Date](https://img.shields.io/github/release-date/JcDenis/emailOptionnel)](https://github.com/JcDenis/emailOptionnel/releases) -[![Issues](https://img.shields.io/github/issues/JcDenis/emailOptionnel)](https://github.com/JcDenis/emailOptionnel/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/emailOptionnel) -[![License](https://img.shields.io/github/license/JcDenis/emailOptionnel)](https://github.com/JcDenis/emailOptionnel/blob/master/LICENSE) +[![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/emailOptionnel/releases) +[![Date](https://img.shields.io/badge/date-2023.08.12-c44d58.svg)](https://git.dotclear.watch/JcDenis/emailOptionnel/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/emailOptionnel) +[![License](https://img.shields.io/github/license/JcDenis/emailOptionnel)](https://git.dotclear.watch/JcDenis/emailOptionnel/blob/master/LICENSE) ## WHAT IS EMAILOPTIONNEL ? @@ -16,10 +15,11 @@ Allow visitors to publish comments without fill in their email. ## REQUIREMENTS - _emailOptionnel_ requires: +_emailOptionnel_ requires: - * admin permissions to set up plugin - * Dotclear 2.26 +* admin permissions to set up plugin +* Dotclear 2.27 +* PHP 7.4+ ## USAGE @@ -30,16 +30,16 @@ Go to ''blog preference'' => fieldset ''plugin preference'', fill in form. ## LINKS - * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) - * Source & contribution : [GitHub Page](https://github.com/JcDenis/enhancePostContent) - * Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/enhancePostContent) - * Discuss and help : [Dotclear Forum](http://forum.dotclear.org/viewtopic.php?pid=332948#p332948) +* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) +* Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/emailOptionnel) or [GitHub Page](https://github.com/JcDenis/enhancePostContent) +* Packages & details : [Gitea Page](https://git.dotclear.watch/JcDenis/emailOptionnel/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/enhancePostContent) +* Discuss and help : [Dotclear Forum](http://forum.dotclear.org/viewtopic.php?pid=332948#p332948) ## CONTRIBUTORS - * Oleksandr Syenchuk (author) - * Gvx - * Pierre Van Glabeke - * Jean-Christian Denis +* Oleksandr Syenchuk (author) +* Gvx +* Pierre Van Glabeke +* 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 4dc81aa..6e4d089 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,18 +18,18 @@ $this->registerModule( 'emailOptionnel', 'Make e-mail address optional in comments', 'Oleksandr Syenchuk, Pierre Van Glabeke, Gvx and Contributors', - '1.3', + '1.4', [ - 'requires' => [['core', '2.26']], + 'requires' => [['core', '2.27']], 'permissions' => dcCore::app()->auth->makePermissions([ dcCore::app()->auth::PERMISSION_ADMIN, ]), - 'type' => 'plugin', - 'support' => 'http://forum.dotclear.org/viewtopic.php?pid=332948#p332948', - 'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__), - 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', - 'settings' => [ - 'blog' => '#params.emailOptionnelParam', + 'settings' => [ + 'blog' => '#params.' . basename(__DIR__) . 'Param', ], + '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 dc70b65..9bcd167 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,12 +2,12 @@ emailOptionnel - 1.3 + 1.4 Oleksandr Syenchuk, Pierre Van Glabeke, Gvx and Contributors Make e-mail address optional in comments - https://github.com/JcDenis/emailOptionnel/releases/download/v1.3/plugin-emailOptionnel.zip - 2.26 - https://plugins.dotaddict.org/dc2/details/emailOptionnel - http://forum.dotclear.org/viewtopic.php?pid=332948#p332948 + https://git.dotclear.watch/JcDenis/emailOptionnel/releases/download/v1.4/plugin-emailOptionnel.zip + 2.27 + https://git.dotclear.watch/JcDenis/emailOptionnel/src/branch/master/README.md + https://git.dotclear.watch/JcDenis/emailOptionnel/issues