diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fc3625..5afb083 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ -2021.08.27.1 -- [ ] ? +2022.11.20 +- fix compatibility with Dotclear 2.24 (required) 2021.08.27 - cleanup (PSR2, short array, ...) diff --git a/README.md b/README.md index ef224c3..18f8cd0 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Release](https://img.shields.io/github/v/release/JcDenis/lastBlogUpdate)](https://github.com/JcDenis/lastBlogUpdate/releases) [![Date](https://img.shields.io/github/release-date/JcDenis/lastBlogUpdate)](https://github.com/JcDenis/lastBlogUpdate/releases) [![Issues](https://img.shields.io/github/issues/JcDenis/lastBlogUpdate)](https://github.com/JcDenis/lastBlogUpdate/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.20-dev-blue.svg)](https://fr.dotclear.org/download) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.24-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/lastBlogUpdate) [![License](https://img.shields.io/github/license/JcDenis/lastBlogUpdate)](https://github.com/JcDenis/lastBlogUpdate/blob/master/LICENSE) @@ -19,7 +19,7 @@ Simply show visitors last update of posts, comments, etc of your blog. **lastBlogUpdate** requires: * permissions to manage widgets - * Dotclear 2.19 + * Dotclear 2.24 ## USAGE @@ -32,7 +32,7 @@ Add and configure **Last blog update** from widgets manager. * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) * Source & contribution : [GitHub Page](https://github.com/JcDenis/lastBlogUpdate) - * Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/lastBlogUpdate) + * Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/lastBlogUpdate) * Discuss and help : [Dotclear Forum](ttp://forum.dotclear.org/viewtopic.php?pid=332950#p332950) ## CONTRIBUTORS diff --git a/_define.php b/_define.php index 07a9eb2..95b2ed5 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'Last blog update', 'Show the dates of last updates of your blog in a widget', 'Jean-Christian Denis, Pierre Van Glabeke', - '2022.11.12', + '2022.11.20', [ 'requires' => [['core', '2.24']], 'permissions' => dcCore::app()->auth->makePermissions([ diff --git a/_public.php b/_public.php index 804c432..bb3c846 100644 --- a/_public.php +++ b/_public.php @@ -24,7 +24,7 @@ function lastBlogUpdateWidgetPublic($w) # Nothing to display if ($w->homeonly == 1 && dcCore::app()->url->type != 'default' - || $w->homeonly == 2 && dcCore::app()->url->type == 'default' + || $w->homeonly == 2 && dcCore::app()->url->type == 'default' || !$w->blog_show && !$w->post_show && !$w->comment_show && !$w->media_show || !$w->blog_text && !$w->post_text && !$w->comment_text && !$w->media_text) { return null; diff --git a/dcstore.xml b/dcstore.xml index 63bd1f4..e4dd1cf 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -1,12 +1,13 @@ + - -Last blog update -2021.09.17 -Jean-Christian Denis, Pierre Van Glabeke -Show the dates of last updates of your blog in a widget -https://github.com/JcDenis/lastBlogUpdate/releases/download/v2021.09.17/plugin-lastBlogUpdate.zip -2.19 -http://plugins.dotaddict.org/dc2/details/lastBlogUpdate -http://forum.dotclear.org/viewtopic.php?pid=332950#p332950 - - \ No newline at end of file + + Last blog update + 2022.11.20 + Jean-Christian Denis, Pierre Van Glabeke + Show the dates of last updates of your blog in a widget + https://github.com/JcDenis/lastBlogUpdate/releases/download/v2022.11.20/plugin-lastBlogUpdate.zip + 2.24 + http://plugins.dotaddict.org/dc2/details/lastBlogUpdate + http://forum.dotclear.org/viewtopic.php?pid=332950#p332950 + +