From b6e941b1c83dc8e1fec82fdb3496409c015d4f50 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 4 Dec 2022 15:58:10 +0100 Subject: [PATCH] release 1.4 --- CHANGELOG.md | 90 +++++----------------------------------------------- _define.php | 2 +- dcstore.xml | 4 +-- index.php | 22 ++++++------- 4 files changed, 22 insertions(+), 96 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a419ce6..a2f016c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,83 +1,9 @@ -dev -- [ ] enhance public template +1.4 - 2022.12.04 +- use dotclear breadcrumb, notice, redirection +- use constant for table name +- use constant for permissions +- add message on action +- update translation -1.1.0 - 2022.11.20 -- fix compatibility with Dotclear 2.24 (required) - -1.0.0 - 2021.11.06 -- fix javascript (and externalize them) -- fix modal -- fix page title -- fix permissions (dc2.20) -- fix various bugs and typo -- update translations (and remove .lang.php file) -- update readme (shields.io, links, ...) -- update public templates (using dotty and berlin) -- update ui (follow dc graphic design) -- add user pref on filters options (dc 2.20) - -0.9 - 2021.09.11 -- add user pref on table columns -- fix typo in admin menu - -0.8 - 2021.09.09 -- fix compatibility Dotclear v2.19 -- fix compatibility php7.3+, php8.0 -- fix license -- fix translation -- fix code style (near PSR2) -- fix widget options -- add option to show how many links use a category -- rewrite admin page (filter, sortable, breadcrumb, etc...) - -0.7 - 2013.11.03 -- Switch to Dotclear 2.6 -- Add dashboard icon -- Clean up code - -0.6.3 - 2010.11.12 -- Fixed install on nightly build - -0.6.2 - 2010.07.07 -- Fixed error on non-existing repository (tks Geraldine) - -0.6.1 - 2010.06.11 -- Removed rateIt behaviors (included in rateIt > 2.0) - -0.6 - 2010.06.06 -- Switched to DC 2.2 -- Fixed minor bugs -- Changed admin interface - -0.5.4 - 2010.03.06 -- Removed behavior when update only link_count - -0.5.3 - 2010.03.01 -- Fixed bug with null values -- Cleaned add and update functions - -0.5.1 - 2010.01.27 -- Fixed PostgreSQL compatibility on table creation - -0.5 - 2010.01.15 -- Added a public page with navigation and categories -- Added RSS/Atom feeds -- Added new sort option on widget -- Added support of plugin sitemap -- Added support of plugin rateIt (first step) -- Fixed author note on new link -- Fixed typo -- Prepared DC 2.2 Break - -0.3 - 2009.10.26 -- Removed option "open in new window" -- Added option "enable link" on widget -- Added option "random order" on widget -- Added reports to plugin activityReport - -0.2 - 2009.10.21 -- Fixed cat_id in admin -- Added trigger to update public side - -0.1 - 2009.10.19 -- First lab release \ No newline at end of file +1.3 - 2022.11.27 +- update for Dotclear 2.24 \ No newline at end of file diff --git a/_define.php b/_define.php index 6bec2ec..e3a51d2 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'alias', "Create aliases of your blog's URLs", 'Olivier Meunier and contributors', - '1.3', + '1.4', [ 'requires' => [['core', '2.24']], 'permissions' => dcCore::app()->auth->makePermissions([ diff --git a/dcstore.xml b/dcstore.xml index dd263d2..595ab56 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ alias - 1.3 + 1.4 Olivier Meunier and contributors Create aliases of your blog's URLs - https://github.com/JcDenis/alias/releases/download/v1.3/plugin-alias.zip + https://github.com/JcDenis/alias/releases/download/v1.4/plugin-alias.zip 2.24 https://plugins.dotaddict.org/dc2/details/alias https://github.com/JcDenis/alias diff --git a/index.php b/index.php index 23d418f..3f10d7e 100644 --- a/index.php +++ b/index.php @@ -18,7 +18,7 @@ dcPage::check(dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_ADMIN])); $o = new dcAliases(); $aliases = $o->getAliases(); -$part = $_REQUEST['part'] ?? 'list'; +$part = $_REQUEST['part'] ?? 'list'; # Update aliases if (isset($_POST['a']) && is_array($_POST['a'])) { @@ -53,8 +53,8 @@ if (isset($_POST['alias_url'])) { if ($part == 'new') { echo dcPage::breadcrumb([ - __('Plugins') => '', - __('Aliases') => dcCore::app()->adminurl->get('admin.plugin.alias', ['part' => 'list']), + __('Plugins') => '', + __('Aliases') => dcCore::app()->adminurl->get('admin.plugin.alias', ['part' => 'list']), __('New alias') => '', ]) . dcPage::notices() . @@ -63,8 +63,8 @@ if ($part == 'new') { '

' . '

' . '

' . sprintf(__('Do not put blog URL "%s" in fields.'), dcCore::app()->blog->url) . '

' . - '

' . - dcCore::app()->formNonce() . + '

' . + dcCore::app()->formNonce() . form::hidden('part', 'new') . '

' . ''; @@ -72,7 +72,7 @@ if ($part == 'new') { echo dcPage::breadcrumb([ __('Plugins') => '', - __('Aliases') => '' + __('Aliases') => '', ]) . dcPage::notices() . '

' . - '' . + '' . form::field(['a[' . $k . '][alias_url]'], 50, 255, html::escapeHTML($v['alias_url'])) . '' . - '' . + '' . form::field(['a[' . $k . '][alias_destination]'], 50, 255, html::escapeHTML($v['alias_destination'])) . '' . - '' . + '' . form::number(['a[' . $k . '][alias_position]'], [ 'min' => 1, 'max' => count($aliases), @@ -113,10 +113,10 @@ if ($part == 'new') { ''; } - echo + echo '' . '

' . __('To remove an alias, empty its URL or destination.') . '

' . - '

' . + '

' . dcCore::app()->formNonce() . form::hidden('part', 'list') . '

' .