release 1.4
This commit is contained in:
parent
3372aebd1c
commit
b6e941b1c8
90
CHANGELOG.md
90
CHANGELOG.md
@ -1,83 +1,9 @@
|
|||||||
dev
|
1.4 - 2022.12.04
|
||||||
- [ ] enhance public template
|
- 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
|
1.3 - 2022.11.27
|
||||||
- fix compatibility with Dotclear 2.24 (required)
|
- update for Dotclear 2.24
|
||||||
|
|
||||||
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
|
|
@ -18,7 +18,7 @@ $this->registerModule(
|
|||||||
'alias',
|
'alias',
|
||||||
"Create aliases of your blog's URLs",
|
"Create aliases of your blog's URLs",
|
||||||
'Olivier Meunier and contributors',
|
'Olivier Meunier and contributors',
|
||||||
'1.3',
|
'1.4',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.24']],
|
'requires' => [['core', '2.24']],
|
||||||
'permissions' => dcCore::app()->auth->makePermissions([
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="alias">
|
<module id="alias">
|
||||||
<name>alias</name>
|
<name>alias</name>
|
||||||
<version>1.3</version>
|
<version>1.4</version>
|
||||||
<author>Olivier Meunier and contributors</author>
|
<author>Olivier Meunier and contributors</author>
|
||||||
<desc>Create aliases of your blog's URLs</desc>
|
<desc>Create aliases of your blog's URLs</desc>
|
||||||
<file>https://github.com/JcDenis/alias/releases/download/v1.3/plugin-alias.zip</file>
|
<file>https://github.com/JcDenis/alias/releases/download/v1.4/plugin-alias.zip</file>
|
||||||
<da:dcmin>2.24</da:dcmin>
|
<da:dcmin>2.24</da:dcmin>
|
||||||
<da:details>https://plugins.dotaddict.org/dc2/details/alias</da:details>
|
<da:details>https://plugins.dotaddict.org/dc2/details/alias</da:details>
|
||||||
<da:support>https://github.com/JcDenis/alias</da:support>
|
<da:support>https://github.com/JcDenis/alias</da:support>
|
||||||
|
22
index.php
22
index.php
@ -18,7 +18,7 @@ dcPage::check(dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_ADMIN]));
|
|||||||
|
|
||||||
$o = new dcAliases();
|
$o = new dcAliases();
|
||||||
$aliases = $o->getAliases();
|
$aliases = $o->getAliases();
|
||||||
$part = $_REQUEST['part'] ?? 'list';
|
$part = $_REQUEST['part'] ?? 'list';
|
||||||
|
|
||||||
# Update aliases
|
# Update aliases
|
||||||
if (isset($_POST['a']) && is_array($_POST['a'])) {
|
if (isset($_POST['a']) && is_array($_POST['a'])) {
|
||||||
@ -53,8 +53,8 @@ if (isset($_POST['alias_url'])) {
|
|||||||
if ($part == 'new') {
|
if ($part == 'new') {
|
||||||
echo
|
echo
|
||||||
dcPage::breadcrumb([
|
dcPage::breadcrumb([
|
||||||
__('Plugins') => '',
|
__('Plugins') => '',
|
||||||
__('Aliases') => dcCore::app()->adminurl->get('admin.plugin.alias', ['part' => 'list']),
|
__('Aliases') => dcCore::app()->adminurl->get('admin.plugin.alias', ['part' => 'list']),
|
||||||
__('New alias') => '',
|
__('New alias') => '',
|
||||||
]) .
|
]) .
|
||||||
dcPage::notices() .
|
dcPage::notices() .
|
||||||
@ -63,8 +63,8 @@ if ($part == 'new') {
|
|||||||
'<p class="field"><label>' . __('Alias URL:') . ' ' . form::field('alias_url', 50, 255) . '</label></p>' .
|
'<p class="field"><label>' . __('Alias URL:') . ' ' . form::field('alias_url', 50, 255) . '</label></p>' .
|
||||||
'<p class="field"><label>' . __('Alias destination:') . ' ' . form::field('alias_destination', 50, 255) . '</label></p>' .
|
'<p class="field"><label>' . __('Alias destination:') . ' ' . form::field('alias_destination', 50, 255) . '</label></p>' .
|
||||||
'<p class="form-note">' . sprintf(__('Do not put blog URL "%s" in fields.'), dcCore::app()->blog->url) . '</p>' .
|
'<p class="form-note">' . sprintf(__('Do not put blog URL "%s" in fields.'), dcCore::app()->blog->url) . '</p>' .
|
||||||
'<p>' .
|
'<p>' .
|
||||||
dcCore::app()->formNonce() .
|
dcCore::app()->formNonce() .
|
||||||
form::hidden('part', 'new') .
|
form::hidden('part', 'new') .
|
||||||
'<input type="submit" value="' . __('Save') . '" /></p>' .
|
'<input type="submit" value="' . __('Save') . '" /></p>' .
|
||||||
'</form>';
|
'</form>';
|
||||||
@ -72,7 +72,7 @@ if ($part == 'new') {
|
|||||||
echo
|
echo
|
||||||
dcPage::breadcrumb([
|
dcPage::breadcrumb([
|
||||||
__('Plugins') => '',
|
__('Plugins') => '',
|
||||||
__('Aliases') => ''
|
__('Aliases') => '',
|
||||||
]) .
|
]) .
|
||||||
dcPage::notices() .
|
dcPage::notices() .
|
||||||
'<p class="top-add"><a class="button add" href="' .
|
'<p class="top-add"><a class="button add" href="' .
|
||||||
@ -98,11 +98,11 @@ if ($part == 'new') {
|
|||||||
foreach ($aliases as $k => $v) {
|
foreach ($aliases as $k => $v) {
|
||||||
echo
|
echo
|
||||||
'<tr class="line" id="l_' . $k . '">' .
|
'<tr class="line" id="l_' . $k . '">' .
|
||||||
'<td>' .
|
'<td>' .
|
||||||
form::field(['a[' . $k . '][alias_url]'], 50, 255, html::escapeHTML($v['alias_url'])) . '</td>' .
|
form::field(['a[' . $k . '][alias_url]'], 50, 255, html::escapeHTML($v['alias_url'])) . '</td>' .
|
||||||
'<td class="maximal">' .
|
'<td class="maximal">' .
|
||||||
form::field(['a[' . $k . '][alias_destination]'], 50, 255, html::escapeHTML($v['alias_destination'])) . '</td>' .
|
form::field(['a[' . $k . '][alias_destination]'], 50, 255, html::escapeHTML($v['alias_destination'])) . '</td>' .
|
||||||
'<td class="minimal">' .
|
'<td class="minimal">' .
|
||||||
form::number(['a[' . $k . '][alias_position]'], [
|
form::number(['a[' . $k . '][alias_position]'], [
|
||||||
'min' => 1,
|
'min' => 1,
|
||||||
'max' => count($aliases),
|
'max' => count($aliases),
|
||||||
@ -113,10 +113,10 @@ if ($part == 'new') {
|
|||||||
'</tr>';
|
'</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo
|
echo
|
||||||
'</tbody></table></div>' .
|
'</tbody></table></div>' .
|
||||||
'<p class="form-note">' . __('To remove an alias, empty its URL or destination.') . '</p>' .
|
'<p class="form-note">' . __('To remove an alias, empty its URL or destination.') . '</p>' .
|
||||||
'<p>' .
|
'<p>' .
|
||||||
dcCore::app()->formNonce() .
|
dcCore::app()->formNonce() .
|
||||||
form::hidden('part', 'list') .
|
form::hidden('part', 'list') .
|
||||||
'<input type="submit" value="' . __('Update') . '" /></p>' .
|
'<input type="submit" value="' . __('Update') . '" /></p>' .
|
||||||
|
Loading…
Reference in New Issue
Block a user