From 6b3723015f6552acf20105d013ea0fb9d45c30e9 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 17 Sep 2021 00:50:25 +0200 Subject: [PATCH] release 2021.09.17 --- CHANGELOG.md | 91 +++++++++++++++++++++------------------- README.md | 22 ++++++++-- _admin.php | 22 +++++----- _define.php | 24 +++++------ _public.php | 22 +++++----- _widgets.php | 32 +++++++------- dcstore.xml | 9 ++-- locales/fr/main.lang.php | 3 +- 8 files changed, 120 insertions(+), 105 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b66e13e..8afc64d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,59 +1,62 @@ -lastpostsExtend 2021.08.25 - * cleanup (license, help, dc2.19, PSR2, short array, php7.3+, php8.0.x) +2021.09.17 +- clean up and cosmetics -lastpostsExtend 2016.10.24 - * oops missed 2015 update +2021.08.25 +- cleanup (license, help, dc2.19, PSR2, short array, php7.3+, php8.0.x) -lastpostsExtend 2016.10.23 - * Used new widget rendering method - * Updated year +2016.10.24 +- oops missed 2015 update -lastpostsExtend 2015.01.13 Pierre Van Glabeke - * Compatibilité dotclear 2.7 - * Ajout options widget et compatibilité currywurst - * Modifications locales +2016.10.23 +- Used new widget rendering method +- Updated year -lastpostsExtend 2013.12.01 - * Fix XHTML validation on widget - * Fix category id from wrong table. thx BG +2015.01.13 Pierre Van Glabeke +- Compatibilité dotclear 2.7 +- Ajout options widget et compatibilité currywurst +- Modifications locales -lastpostsExtend 2013.11.12 - * Switch to Dotclear 2.6 - * Add widget options +2013.12.01 +- Fix XHTML validation on widget +- Fix category id from wrong table. thx BG -lastpostsExtend 2013.06.30 - * Used new 'homeonly' style for widgets +2013.11.12 +- Switch to Dotclear 2.6 +- Add widget options -lastpostsExtend 2011.08.01 - * Added support of plugin muppet (post types) - * Try to fix date compare on sql request +2013.06.30 +- Used new 'homeonly' style for widgets -lastpostsExtend 0.10 - 2010-08-19 - * Sort by comments (annso) +2011.08.01 +- Added support of plugin muppet (post types) +- Try to fix date compare on sql request -lastpostsExtend 0.9 - 2010-06-09 - * Writed now for DC 2.2 or higher +0.10 - 2010.08.19 +- Sort by comments (annso) -lastpostsExtend 0.8.2 - 2010-03-29 - * Fixed getPosts by using sudo - * Fixed entryFirstImage on non-pushided post +0.9 - 201.-06.09 +- Writed now for DC 2.2 or higher -lastpostsExtend 0.8.1 - 2009-12-31 - * Happy new year! - * Fixed multiple bugs and crashes +0.8.2 - 2010.03.29 +- Fixed getPosts by using sudo +- Fixed entryFirstImage on non-pushided post -lastpostsExtend 0.8 - 2009-12-30 - * Added post words limit - * Added post status limit - * Added post password limit (closes #385) - * Changed blog->getPosts to internal getPosts +0.8.1 - 2009.12.31 +- Happy new year! +- Fixed multiple bugs and crashes -lastpostsExtend 0.7 2009-12-10 - * Added entryFirstimage - * Fixed typo +0.8 - 2009.12.30 +- Added post words limit +- Added post status limit +- Added post password limit (closes #385) +- Changed blog->getPosts to internal getPosts -lastpostsExtend 0.6 - 2009-08-23 - * Added ''pluginsPage'' support +0.7 - 2009.12.10 +- Added entryFirstimage +- Fixed typo -lastpostsExtend 0.5 - 2009-08-16 - * Fixed php 5.3 compatibility +0.6 - 2009.08.23 +- Added ''pluginsPage'' support + +0.5 - 2009.08.16 +- Fixed php 5.3 compatibility \ No newline at end of file diff --git a/README.md b/README.md index 7d0312d..6fc9a32 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # README +[![Release](https://img.shields.io/github/v/release/JcDenis/lastpostsExtend)](https://github.com/JcDenis/lastpostsExtend/releases) +[![Date](https://img.shields.io/github/release-date/JcDenis/lastpostsExtend)](https://github.com/JcDenis/lastpostsExtend/releases) +[![Issues](https://img.shields.io/github/issues/JcDenis/lastpostsExtend)](https://github.com/JcDenis/lastpostsExtend/issues) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.20-dev-blue.svg)](https://fr.dotclear.org/download) +[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/lastpostsExtend) +[![License](https://img.shields.io/github/license/JcDenis/lastpostsExtend)](https://github.com/JcDenis/lastpostsExtend/blob/master/LICENSE) + ## WHAT IS LASTPOSTSEXTEND ? "lastposts Extend" is a plugin for the open-source @@ -12,7 +19,7 @@ Like widget lastposts but with more options. lastpostsExtend requires: * permissions to manage widgets - * Dotclear 2.6 + * Dotclear 2.19 ## USAGE @@ -21,8 +28,15 @@ Dotaddict repository. (See Dotclear's documentation to know how do this) Add and configure "Last entries (Extended)" from widgets manager. -## MORE +## LINKS - * License : GNU GPL v2 + * License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html) * Source & contribution : [GitHub Page](https://github.com/JcDenis/lastpostsExtend) - * Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/lastpostsExtend) \ No newline at end of file + * Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/lastpostsExtend) + +## CONTRIBUTORS + + * Jean-Chirstian Denis + * Pierre Van Glabeke + + You are welcome to contribute to this code. \ No newline at end of file diff --git a/_admin.php b/_admin.php index a56563d..ab8232b 100644 --- a/_admin.php +++ b/_admin.php @@ -1,15 +1,15 @@ registerModule( 'Last entries (Extended)', 'Extended list of entries', 'Jean-Christian Denis and contributors', - '2021.08.25', + '2021.09.17', [ 'permissions' => 'admin', 'type' => 'plugin', diff --git a/_public.php b/_public.php index 594eb81..632aa7c 100644 --- a/_public.php +++ b/_public.php @@ -1,15 +1,15 @@ '', 'columns' => [], @@ -411,7 +411,7 @@ class lastpostsextendWidget '' ); } - + private static function entryFirstImage($core, $type, $id, $size = 's') { if (!in_array($type, ['post', 'page', 'galitem'])) { @@ -480,11 +480,11 @@ class lastpostsextendWidget # Get base name and extension $info = path::info($img); $base = $info['base']; - + if (preg_match('/^\.(.+)_(sq|t|s|m)$/', $base, $m)) { $base = $m[1]; } - + $res = false; if ($size != 'o' && file_exists($root . '/' . $info['dirname'] . '/.' . $base . '_' . $size . '.jpg')) { $res = '.' . $base . '_' . $size . '.jpg'; diff --git a/dcstore.xml b/dcstore.xml index 19daa28..e2819c1 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -1,13 +1,12 @@ Last entries (Extended) -2021.08.25 +2021.09.17 Jean-Christian Denis and contributors Extended list of entries -https://github.com/JcDenis/lastpostsExtend/releases/download/v2021.08.25/plugin-lastpostsExtend.zip +https://github.com/JcDenis/lastpostsExtend/releases/download/v2021.09.17/plugin-lastpostsExtend.zip 2.19 -https://plugins.dotaddict.org/dc2/details/lastpostsExtend - +http://plugins.dotaddict.org/dc2/details/lastpostsExtend https://github.com/JcDenis/lastpostsExtend - + \ No newline at end of file diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php index d72f3db..1c7ee2e 100644 --- a/locales/fr/main.lang.php +++ b/locales/fr/main.lang.php @@ -47,5 +47,4 @@ $GLOBALS['__l10n']['Show entries excerpt'] = 'Afficher l\'extrait'; $GLOBALS['__l10n']['Excerpt length:'] = 'Taille de l\'extrait :'; #_widgets.php:209 -$GLOBALS['__l10n']['Show comments count'] = 'Afficher le nombre de commentaires'; - +$GLOBALS['__l10n']['Show comments count'] = 'Afficher le nombre de commentaires'; \ No newline at end of file