release 2021.09.17

master
Jean-Christian Paul Denis 2021-09-17 00:50:25 +02:00
parent ec02cdddf7
commit 6b3723015f
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
8 changed files with 120 additions and 105 deletions

View File

@ -1,59 +1,62 @@
lastpostsExtend 2021.08.25 2021.09.17
* cleanup (license, help, dc2.19, PSR2, short array, php7.3+, php8.0.x) - clean up and cosmetics
lastpostsExtend 2016.10.24 2021.08.25
* oops missed 2015 update - cleanup (license, help, dc2.19, PSR2, short array, php7.3+, php8.0.x)
lastpostsExtend 2016.10.23 2016.10.24
* Used new widget rendering method - oops missed 2015 update
* Updated year
lastpostsExtend 2015.01.13 Pierre Van Glabeke 2016.10.23
* Compatibilité dotclear 2.7 - Used new widget rendering method
* Ajout options widget et compatibilité currywurst - Updated year
* Modifications locales
lastpostsExtend 2013.12.01 2015.01.13 Pierre Van Glabeke
* Fix XHTML validation on widget - Compatibilité dotclear 2.7
* Fix category id from wrong table. thx BG - Ajout options widget et compatibilité currywurst
- Modifications locales
lastpostsExtend 2013.11.12 2013.12.01
* Switch to Dotclear 2.6 - Fix XHTML validation on widget
* Add widget options - Fix category id from wrong table. thx BG
lastpostsExtend 2013.06.30 2013.11.12
* Used new 'homeonly' style for widgets - Switch to Dotclear 2.6
- Add widget options
lastpostsExtend 2011.08.01 2013.06.30
* Added support of plugin muppet (post types) - Used new 'homeonly' style for widgets
* Try to fix date compare on sql request
lastpostsExtend 0.10 - 2010-08-19 2011.08.01
* Sort by comments (annso) - Added support of plugin muppet (post types)
- Try to fix date compare on sql request
lastpostsExtend 0.9 - 2010-06-09 0.10 - 2010.08.19
* Writed now for DC 2.2 or higher - Sort by comments (annso)
lastpostsExtend 0.8.2 - 2010-03-29 0.9 - 201.-06.09
* Fixed getPosts by using sudo - Writed now for DC 2.2 or higher
* Fixed entryFirstImage on non-pushided post
lastpostsExtend 0.8.1 - 2009-12-31 0.8.2 - 2010.03.29
* Happy new year! - Fixed getPosts by using sudo
* Fixed multiple bugs and crashes - Fixed entryFirstImage on non-pushided post
lastpostsExtend 0.8 - 2009-12-30 0.8.1 - 2009.12.31
* Added post words limit - Happy new year!
* Added post status limit - Fixed multiple bugs and crashes
* Added post password limit (closes #385)
* Changed blog->getPosts to internal getPosts
lastpostsExtend 0.7 2009-12-10 0.8 - 2009.12.30
* Added entryFirstimage - Added post words limit
* Fixed typo - Added post status limit
- Added post password limit (closes #385)
- Changed blog->getPosts to internal getPosts
lastpostsExtend 0.6 - 2009-08-23 0.7 - 2009.12.10
* Added ''pluginsPage'' support - Added entryFirstimage
- Fixed typo
lastpostsExtend 0.5 - 2009-08-16 0.6 - 2009.08.23
* Fixed php 5.3 compatibility - Added ''pluginsPage'' support
0.5 - 2009.08.16
- Fixed php 5.3 compatibility

View File

@ -1,5 +1,12 @@
# README # 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 ? ## WHAT IS LASTPOSTSEXTEND ?
"lastposts Extend" is a plugin for the open-source "lastposts Extend" is a plugin for the open-source
@ -12,7 +19,7 @@ Like widget lastposts but with more options.
lastpostsExtend requires: lastpostsExtend requires:
* permissions to manage widgets * permissions to manage widgets
* Dotclear 2.6 * Dotclear 2.19
## USAGE ## 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. 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) * Source & contribution : [GitHub Page](https://github.com/JcDenis/lastpostsExtend)
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/lastpostsExtend) * 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.

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief lastpostsExtend, a plugin for Dotclear 2
# This file is part of lastpostsExtend, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return null; return null;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief lastpostsExtend, a plugin for Dotclear 2
# This file is part of lastpostsExtend, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return null; return null;
@ -19,7 +19,7 @@ $this->registerModule(
'Last entries (Extended)', 'Last entries (Extended)',
'Extended list of entries', 'Extended list of entries',
'Jean-Christian Denis and contributors', 'Jean-Christian Denis and contributors',
'2021.08.25', '2021.09.17',
[ [
'permissions' => 'admin', 'permissions' => 'admin',
'type' => 'plugin', 'type' => 'plugin',

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief lastpostsExtend, a plugin for Dotclear 2
# This file is part of lastpostsExtend, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return null; return null;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief lastpostsExtend, a plugin for Dotclear 2
# This file is part of lastpostsExtend, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis and contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return null; return null;
@ -242,11 +242,11 @@ class lastpostsextendWidget
'check' 'check'
); );
} }
public static function parseWidget($w) public static function parseWidget($w)
{ {
global $core; global $core;
$params = [ $params = [
'sql' => '', 'sql' => '',
'columns' => [], 'columns' => [],
@ -411,7 +411,7 @@ class lastpostsextendWidget
'<ul>' . $res . '</ul>' '<ul>' . $res . '</ul>'
); );
} }
private static function entryFirstImage($core, $type, $id, $size = 's') private static function entryFirstImage($core, $type, $id, $size = 's')
{ {
if (!in_array($type, ['post', 'page', 'galitem'])) { if (!in_array($type, ['post', 'page', 'galitem'])) {
@ -480,11 +480,11 @@ class lastpostsextendWidget
# Get base name and extension # Get base name and extension
$info = path::info($img); $info = path::info($img);
$base = $info['base']; $base = $info['base'];
if (preg_match('/^\.(.+)_(sq|t|s|m)$/', $base, $m)) { if (preg_match('/^\.(.+)_(sq|t|s|m)$/', $base, $m)) {
$base = $m[1]; $base = $m[1];
} }
$res = false; $res = false;
if ($size != 'o' && file_exists($root . '/' . $info['dirname'] . '/.' . $base . '_' . $size . '.jpg')) { if ($size != 'o' && file_exists($root . '/' . $info['dirname'] . '/.' . $base . '_' . $size . '.jpg')) {
$res = '.' . $base . '_' . $size . '.jpg'; $res = '.' . $base . '_' . $size . '.jpg';

View File

@ -1,13 +1,12 @@
<modules xmlns:da="http://dotaddict.org/da/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="lastpostsExtend"> <module id="lastpostsExtend">
<name>Last entries (Extended)</name> <name>Last entries (Extended)</name>
<version>2021.08.25</version> <version>2021.09.17</version>
<author>Jean-Christian Denis and contributors</author> <author>Jean-Christian Denis and contributors</author>
<desc>Extended list of entries</desc> <desc>Extended list of entries</desc>
<file>https://github.com/JcDenis/lastpostsExtend/releases/download/v2021.08.25/plugin-lastpostsExtend.zip</file> <file>https://github.com/JcDenis/lastpostsExtend/releases/download/v2021.09.17/plugin-lastpostsExtend.zip</file>
<da:dcmin>2.19</da:dcmin> <da:dcmin>2.19</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/lastpostsExtend</da:details> <da:details>http://plugins.dotaddict.org/dc2/details/lastpostsExtend</da:details>
<da:section></da:section>
<da:support>https://github.com/JcDenis/lastpostsExtend</da:support> <da:support>https://github.com/JcDenis/lastpostsExtend</da:support>
</module> </module>
</modules> </modules>

View File

@ -47,5 +47,4 @@ $GLOBALS['__l10n']['Show entries excerpt'] = 'Afficher l\'extrait';
$GLOBALS['__l10n']['Excerpt length:'] = 'Taille de l\'extrait :'; $GLOBALS['__l10n']['Excerpt length:'] = 'Taille de l\'extrait :';
#_widgets.php:209 #_widgets.php:209
$GLOBALS['__l10n']['Show comments count'] = 'Afficher le nombre de commentaires'; $GLOBALS['__l10n']['Show comments count'] = 'Afficher le nombre de commentaires';