From 9add51c1d3bd9ec2d793564912694cf0525f6775 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 23 Dec 2022 10:34:53 +0100 Subject: [PATCH] release 1.0 --- CHANGELOG.md | 4 ++++ _admin.php | 8 ++++---- _define.php | 2 +- dcstore.xml | 4 ++-- locales/fr/main.lang.php | 34 ++++++++++++++++++++++++++++++++++ 5 files changed, 45 insertions(+), 7 deletions(-) create mode 100644 locales/fr/main.lang.php diff --git a/CHANGELOG.md b/CHANGELOG.md index a8de477..e90cc81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ dev - [ ] literal rank of writer depending of num of com +1.0 - 2022.12.23 +- use dotclear methods for widgets +- fix permissions + 0.10 - 2022.11.20 - fix compatibility with Dotclear 2.24 (required) diff --git a/_admin.php b/_admin.php index 4ecb208..e3e7d96 100644 --- a/_admin.php +++ b/_admin.php @@ -19,11 +19,11 @@ require __DIR__ . '/_widgets.php'; # Dashboard item and user preference dcCore::app()->addBehavior( 'adminDashboardItemsV2', - ['topWriterAdmin', 'adminDashboardItems'] + ['topWriterAdmin', 'adminDashboardItemsV2'] ); dcCore::app()->addBehavior( 'adminDashboardOptionsFormV2', - ['topWriterAdmin', 'adminDashboardOptionsForm'] + ['topWriterAdmin', 'adminDashboardOptionsFormV2'] ); dcCore::app()->addBehavior( 'adminAfterDashboardOptionsUpdate', @@ -37,7 +37,7 @@ dcCore::app()->addBehavior( */ class topWriterAdmin { - public static function adminDashboardItems($__dashboard_items) + public static function adminDashboardItemsV2($__dashboard_items) { $pref = self::setDefaultPref(); @@ -80,7 +80,7 @@ class topWriterAdmin } } - public static function adminDashboardOptionsForm() + public static function adminDashboardOptionsFormV2() { $pref = self::setDefaultPref(); diff --git a/_define.php b/_define.php index 20c9c35..8cf2154 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'Top writer', 'Ranking of the most prolific writers and/or commentators', 'Jean-Christian Denis, Pierre Van Glabeke', - '0.10', + '1.0', [ 'requires' => [['core', '2.24']], 'permissions' => dcCore::app()->auth->makePermissions([ diff --git a/dcstore.xml b/dcstore.xml index 828809a..f65e75d 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Top writer - 0.10 + 1.0 Jean-Christian Denis, Pierre Van Glabeke Ranking of the most prolific writers and/or commentators - https://github.com/JcDenis/topWriter/releases/download/v0.10/plugin-topWriter.zip + https://github.com/JcDenis/topWriter/releases/download/v1.0/plugin-topWriter.zip 2.24 http://plugins.dotaddict.org/dc2/details/topWriter http://forum.dotclear.org/viewtopic.php?pid=333002#p333002 diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php new file mode 100644 index 0000000..100054f --- /dev/null +++ b/locales/fr/main.lang.php @@ -0,0 +1,34 @@ +