release 2021.09.17
This commit is contained in:
parent
ec02cdddf7
commit
6b3723015f
91
CHANGELOG.md
91
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
|
22
README.md
22
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)
|
||||
* 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.
|
22
_admin.php
22
_admin.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of lastpostsExtend, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief lastpostsExtend, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_CONTEXT_ADMIN')) {
|
||||
return null;
|
||||
|
24
_define.php
24
_define.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of lastpostsExtend, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief lastpostsExtend, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_RC_PATH')) {
|
||||
return null;
|
||||
@ -19,7 +19,7 @@ $this->registerModule(
|
||||
'Last entries (Extended)',
|
||||
'Extended list of entries',
|
||||
'Jean-Christian Denis and contributors',
|
||||
'2021.08.25',
|
||||
'2021.09.17',
|
||||
[
|
||||
'permissions' => 'admin',
|
||||
'type' => 'plugin',
|
||||
|
22
_public.php
22
_public.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of lastpostsExtend, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief lastpostsExtend, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_RC_PATH')) {
|
||||
return null;
|
||||
|
32
_widgets.php
32
_widgets.php
@ -1,15 +1,15 @@
|
||||
<?php
|
||||
# -- BEGIN LICENSE BLOCK ----------------------------------
|
||||
#
|
||||
# This file is part of lastpostsExtend, a plugin for Dotclear 2.
|
||||
#
|
||||
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||
#
|
||||
# Licensed under the GPL version 2.0 license.
|
||||
# A copy of this license is available in LICENSE file or at
|
||||
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
#
|
||||
# -- END LICENSE BLOCK ------------------------------------
|
||||
/**
|
||||
* @brief lastpostsExtend, a plugin for Dotclear 2
|
||||
*
|
||||
* @package Dotclear
|
||||
* @subpackage Plugin
|
||||
*
|
||||
* @author Jean-Christian Denis and contributors
|
||||
*
|
||||
* @copyright Jean-Christian Denis
|
||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||
*/
|
||||
|
||||
if (!defined('DC_RC_PATH')) {
|
||||
return null;
|
||||
@ -242,11 +242,11 @@ class lastpostsextendWidget
|
||||
'check'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public static function parseWidget($w)
|
||||
{
|
||||
global $core;
|
||||
|
||||
|
||||
$params = [
|
||||
'sql' => '',
|
||||
'columns' => [],
|
||||
@ -411,7 +411,7 @@ class lastpostsextendWidget
|
||||
'<ul>' . $res . '</ul>'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
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';
|
||||
|
@ -1,13 +1,12 @@
|
||||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="lastpostsExtend">
|
||||
<name>Last entries (Extended)</name>
|
||||
<version>2021.08.25</version>
|
||||
<version>2021.09.17</version>
|
||||
<author>Jean-Christian Denis and contributors</author>
|
||||
<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:details>https://plugins.dotaddict.org/dc2/details/lastpostsExtend</da:details>
|
||||
<da:section></da:section>
|
||||
<da:details>http://plugins.dotaddict.org/dc2/details/lastpostsExtend</da:details>
|
||||
<da:support>https://github.com/JcDenis/lastpostsExtend</da:support>
|
||||
</module>
|
||||
</modules>
|
||||
</modules>
|
@ -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';
|
Loading…
Reference in New Issue
Block a user