cleanup 2021
This commit is contained in:
parent
100ef730e4
commit
bfafc8cbc9
26
CHANGELOG
26
CHANGELOG
@ -1,26 +0,0 @@
|
|||||||
v2015.04.22 - Pierre Van Glabeke
|
|
||||||
* modif url support
|
|
||||||
* suppression icône
|
|
||||||
|
|
||||||
v2015.01.29 - Pierre Van Glabeke
|
|
||||||
* ajout option hors ligne widget
|
|
||||||
* modif code pour affichage widget (compatibilité currywurst)
|
|
||||||
* modifs locales
|
|
||||||
|
|
||||||
v2013.11.12
|
|
||||||
* Tiny clean up and add options to widgets
|
|
||||||
|
|
||||||
v2013.06.30
|
|
||||||
* Used new 'homeonly' style for widgets
|
|
||||||
|
|
||||||
v0.5 - 2010-06-05
|
|
||||||
* Switched to DC 2.2
|
|
||||||
|
|
||||||
v0.4
|
|
||||||
* Added media update
|
|
||||||
* Moved public function to _public.php
|
|
||||||
* Fixed some l10n
|
|
||||||
|
|
||||||
v0.3
|
|
||||||
* Fixed php 5.3 compatibility
|
|
||||||
* Fixed wrong timezone
|
|
31
CHANGELOG.md
Normal file
31
CHANGELOG.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
v2021.08.27
|
||||||
|
- cleanup (PSR2, short array, ...)
|
||||||
|
- enhance widget style
|
||||||
|
- update license
|
||||||
|
|
||||||
|
v2015.04.22 - Pierre Van Glabeke
|
||||||
|
- modif url support
|
||||||
|
- suppression icône
|
||||||
|
|
||||||
|
v2015.01.29 - Pierre Van Glabeke
|
||||||
|
- ajout option hors ligne widget
|
||||||
|
- modif code pour affichage widget (compatibilité currywurst)
|
||||||
|
- modifs locales
|
||||||
|
|
||||||
|
v2013.11.12
|
||||||
|
- Tiny clean up and add options to widgets
|
||||||
|
|
||||||
|
v2013.06.30
|
||||||
|
- Used new 'homeonly' style for widgets
|
||||||
|
|
||||||
|
v0.5 - 2010-06-05
|
||||||
|
- Switched to DC 2.2
|
||||||
|
|
||||||
|
v0.4
|
||||||
|
- Added media update
|
||||||
|
- Moved public function to _public.php
|
||||||
|
- Fixed some l10n
|
||||||
|
|
||||||
|
v0.3
|
||||||
|
- Fixed php 5.3 compatibility
|
||||||
|
- Fixed wrong timezone
|
9
LICENSE
9
LICENSE
@ -1,7 +1,7 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
GNU GENERAL PUBLIC LICENSE
|
||||||
Version 2, June 1991
|
Version 2, June 1991
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
of this license document, but changing it is not allowed.
|
||||||
@ -290,8 +290,8 @@ to attach them to the start of each source file to most effectively
|
|||||||
convey the exclusion of warranty; and each file should have at least
|
convey the exclusion of warranty; and each file should have at least
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
{description}
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
Copyright (C) {year} {fullname}
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -329,7 +329,7 @@ necessary. Here is a sample; alter the names:
|
|||||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
{signature of Ty Coon}, 1 April 1989
|
<signature of Ty Coon>, 1 April 1989
|
||||||
Ty Coon, President of Vice
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
This General Public License does not permit incorporating your program into
|
This General Public License does not permit incorporating your program into
|
||||||
@ -337,4 +337,3 @@ proprietary programs. If your program is a subroutine library, you may
|
|||||||
consider it more useful to permit linking proprietary applications with the
|
consider it more useful to permit linking proprietary applications with the
|
||||||
library. If this is what you want to do, use the GNU Lesser General
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
Public License instead of this License.
|
Public License instead of this License.
|
||||||
|
|
||||||
|
11
README.md
11
README.md
@ -20,3 +20,14 @@ First install lastBlogUpdate, manualy from a zip package or from
|
|||||||
Dotaddict repository. (See Dotclear's documentation to know how do this)
|
Dotaddict repository. (See Dotclear's documentation to know how do this)
|
||||||
|
|
||||||
Add and configure "Last blog update" from widgets manager.
|
Add and configure "Last blog update" from widgets manager.
|
||||||
|
|
||||||
|
## MORE
|
||||||
|
|
||||||
|
* License : GNU GPL v2
|
||||||
|
* Source & contribution : [GitHub Page](https://github.com/JcDenis/lastBlogUpdate)
|
||||||
|
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/lastBlogUpdate)
|
||||||
|
|
||||||
|
## CONTRIBUTORS
|
||||||
|
|
||||||
|
* Jean-Chirstian Denis
|
||||||
|
* Pierre Van Glabeke
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# This file is part of lastBlogUpdate, a plugin for Dotclear 2.
|
# This file is part of lastBlogUpdate, a plugin for Dotclear 2.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009-2015 Jean-Christian Denis and contributors
|
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||||
#
|
#
|
||||||
# Licensed under the GPL version 2.0 license.
|
# Licensed under the GPL version 2.0 license.
|
||||||
# A copy of this license is available in LICENSE file or at
|
# A copy of this license is available in LICENSE file or at
|
||||||
@ -12,8 +12,7 @@
|
|||||||
# -- END LICENSE BLOCK ------------------------------------
|
# -- END LICENSE BLOCK ------------------------------------
|
||||||
|
|
||||||
if (!defined('DC_CONTEXT_ADMIN')) {
|
if (!defined('DC_CONTEXT_ADMIN')) {
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
require dirname(__FILE__).'/_widgets.php';
|
require dirname(__FILE__) . '/_widgets.php';
|
24
_define.php
24
_define.php
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# This file is part of lastBlogUpdate, a plugin for Dotclear 2.
|
# This file is part of lastBlogUpdate, a plugin for Dotclear 2.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009-2015 Jean-Christian Denis and contributors
|
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||||
#
|
#
|
||||||
# Licensed under the GPL version 2.0 license.
|
# Licensed under the GPL version 2.0 license.
|
||||||
# A copy of this license is available in LICENSE file or at
|
# A copy of this license is available in LICENSE file or at
|
||||||
@ -12,24 +12,20 @@
|
|||||||
# -- END LICENSE BLOCK ------------------------------------
|
# -- END LICENSE BLOCK ------------------------------------
|
||||||
|
|
||||||
if (!defined('DC_RC_PATH')) {
|
if (!defined('DC_RC_PATH')) {
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->registerModule(
|
$this->registerModule(
|
||||||
/* Name */
|
'lastBlogUpdate',
|
||||||
"lastBlogUpdate",
|
'Show the dates of last updates of your blog in a widget',
|
||||||
/* Description*/
|
'Jean-Christian Denis, Pierre Van Glabeke',
|
||||||
"Show the dates of last updates of your blog in a widget",
|
'2021.08.27',
|
||||||
/* Author */
|
[
|
||||||
"Jean-Christian Denis, Pierre Van Glabeke",
|
|
||||||
/* Version */
|
|
||||||
'2015.04.22',
|
|
||||||
array(
|
|
||||||
'permissions' => 'usage,contentadmin',
|
'permissions' => 'usage,contentadmin',
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'dc_min' => '2.6',
|
'dc_min' => '2.19',
|
||||||
'support' => 'http://forum.dotclear.org/viewtopic.php?pid=332950#p332950',
|
'support' => 'http://forum.dotclear.org/viewtopic.php?pid=332950#p332950',
|
||||||
'details' => 'http://plugins.dotaddict.org/dc2/details/lastBlogUpdate'
|
'details' => 'http://plugins.dotaddict.org/dc2/details/lastBlogUpdate',
|
||||||
)
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/lastBlogUpdate/master/dcstore.xml'
|
||||||
|
]
|
||||||
);
|
);
|
44
_public.php
44
_public.php
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# This file is part of lastBlogUpdate, a plugin for Dotclear 2.
|
# This file is part of lastBlogUpdate, a plugin for Dotclear 2.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009-2015 Jean-Christian Denis and contributors
|
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||||
#
|
#
|
||||||
# Licensed under the GPL version 2.0 license.
|
# Licensed under the GPL version 2.0 license.
|
||||||
# A copy of this license is available in LICENSE file or at
|
# A copy of this license is available in LICENSE file or at
|
||||||
@ -22,29 +22,32 @@ function lastBlogUpdateWidgetPublic($w)
|
|||||||
{
|
{
|
||||||
global $core;
|
global $core;
|
||||||
|
|
||||||
if ($w->offline)
|
if ($w->offline) {
|
||||||
return;
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
# Nothing to display
|
# Nothing to display
|
||||||
if ($w->homeonly == 1 && $core->url->type != 'default'
|
if ($w->homeonly == 1 && $core->url->type != 'default'
|
||||||
|| $w->homeonly == 2 && $core->url->type == 'default'
|
|| $w->homeonly == 2 && $core->url->type == 'default'
|
||||||
|| !$w->blog_show && !$w->post_show && !$w->comment_show && !$w->media_show
|
|| !$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;
|
|| !$w->blog_text && !$w->post_text && !$w->comment_text && !$w->media_text) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$blog = $post = $comment = $media = $addons = '';
|
$blog = $post = $comment = $media = $addons = '';
|
||||||
|
|
||||||
# Blog
|
# Blog
|
||||||
if ($w->blog_show && $w->blog_text) {
|
if ($w->blog_show && $w->blog_text) {
|
||||||
$title = $w->blog_title ? '<strong>'.html::escapeHTML($w->blog_title).'</strong> ' : '';
|
$title = $w->blog_title ? sprintf('<strong>%s</strong>', html::escapeHTML($w->blog_title)) : '';
|
||||||
$text = dt::str($w->blog_text, $core->blog->upddt, $core->blog->settings->system->blog_timezone);
|
$text = dt::str($w->blog_text, $core->blog->upddt, $core->blog->settings->system->blog_timezone);
|
||||||
$blog = sprintf('<li>%s%s</li>', $title, $text);
|
$blog = sprintf('<li>%s%s</li>', $title, $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Post
|
# Post
|
||||||
if ($w->post_show && $w->post_text) {
|
if ($w->post_show && $w->post_text) {
|
||||||
$rs = $core->blog->getPosts(array('limit' => 1, 'no_content' => true));
|
$rs = $core->blog->getPosts(['limit' => 1, 'no_content' => true]);
|
||||||
if (!$rs->isEmpty()) {
|
if (!$rs->isEmpty()) {
|
||||||
$title = $w->post_title ? '<strong>'.html::escapeHTML($w->post_title).'</strong> ' : '';
|
$title = $w->post_title ? sprintf('<strong>%s</strong>', html::escapeHTML($w->post_title)) : '';
|
||||||
$text = dt::str($w->post_text, strtotime($rs->post_upddt), $core->blog->settings->system->blog_timezone);
|
$text = dt::str($w->post_text, strtotime($rs->post_upddt), $core->blog->settings->system->blog_timezone);
|
||||||
$link = $rs->getURL();
|
$link = $rs->getURL();
|
||||||
$over = $rs->post_title;
|
$over = $rs->post_title;
|
||||||
@ -55,11 +58,11 @@ function lastBlogUpdateWidgetPublic($w)
|
|||||||
|
|
||||||
# Comment
|
# Comment
|
||||||
if ($w->comment_show && $w->comment_text) {
|
if ($w->comment_show && $w->comment_text) {
|
||||||
$rs = $core->blog->getComments(array('limit' => 1, 'no_content' => true));
|
$rs = $core->blog->getComments(['limit' => 1, 'no_content' => true]);
|
||||||
if (!$rs->isEmpty()) {
|
if (!$rs->isEmpty()) {
|
||||||
$title = $w->comment_title ? '<strong>'.html::escapeHTML($w->comment_title).'</strong> ' : '';
|
$title = $w->comment_title ? sprintf('<strong>%s</strong>', html::escapeHTML($w->comment_title)) : '';
|
||||||
$text = dt::str($w->comment_text, strtotime($rs->comment_upddt), $core->blog->settings->system->blog_timezone);
|
$text = dt::str($w->comment_text, strtotime($rs->comment_upddt), $core->blog->settings->system->blog_timezone);
|
||||||
$link = $core->blog->url.$core->getPostPublicURL($rs->post_type, html::sanitizeURL($rs->post_url)).'#c'.$rs->comment_id;
|
$link = $core->blog->url . $core->getPostPublicURL($rs->post_type, html::sanitizeURL($rs->post_url)) . '#c' . $rs->comment_id;
|
||||||
$over = $rs->post_title;
|
$over = $rs->post_title;
|
||||||
|
|
||||||
$comment = sprintf('<li>%s<a href="%s" title="%s">%s</a></li>', $title, $link, $over, $text);
|
$comment = sprintf('<li>%s<a href="%s" title="%s">%s</a></li>', $title, $link, $over, $text);
|
||||||
@ -69,13 +72,13 @@ function lastBlogUpdateWidgetPublic($w)
|
|||||||
# Media
|
# Media
|
||||||
if ($w->media_show && $w->media_text) {
|
if ($w->media_show && $w->media_text) {
|
||||||
$rs = $core->con->select(
|
$rs = $core->con->select(
|
||||||
'SELECT media_upddt FROM '.$core->prefix.'media '.
|
'SELECT media_upddt FROM ' . $core->prefix . 'media ' .
|
||||||
"WHERE media_path='".$core->con->escape($core->blog->settings->system->public_path)."' ".
|
"WHERE media_path='" . $core->con->escape($core->blog->settings->system->public_path) . "' " .
|
||||||
'ORDER BY media_upddt DESC '.$core->con->limit(1)
|
'ORDER BY media_upddt DESC ' . $core->con->limit(1)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!$rs->isEmpty()) {
|
if (!$rs->isEmpty()) {
|
||||||
$title = $w->media_title ? '<strong>'.html::escapeHTML($w->media_title).'</strong> ' : '';
|
$title = $w->media_title ? sprintf('<strong>%s</strong>', html::escapeHTML($w->media_title)) : '';
|
||||||
$text = dt::str($w->media_text, strtotime($rs->f('media_upddt')), $core->blog->settings->system->blog_timezone);
|
$text = dt::str($w->media_text, strtotime($rs->f('media_upddt')), $core->blog->settings->system->blog_timezone);
|
||||||
|
|
||||||
$media = sprintf('<li>%s%s</li>', $title, $text);
|
$media = sprintf('<li>%s%s</li>', $title, $text);
|
||||||
@ -87,14 +90,15 @@ function lastBlogUpdateWidgetPublic($w)
|
|||||||
|
|
||||||
# Nothing to display
|
# Nothing to display
|
||||||
if (!$blog && !$post && !$comment && !$media && !$addons) {
|
if (!$blog && !$post && !$comment && !$media && !$addons) {
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Display
|
# Display
|
||||||
$res =
|
return $w->renderDiv(
|
||||||
($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : '').
|
$w->content_only,
|
||||||
'<ul>'.$blog.$post.$comment.$media.$addons.'</ul>';
|
'lastblogupdate ' . $w->class,
|
||||||
|
'',
|
||||||
return $w->renderDiv($w->content_only,'lastblogupdate '.$w->class,'',$res);
|
($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : '') .
|
||||||
|
sprintf('<ul>%s</ul>', $blog . $post . $comment . $media . $addons)
|
||||||
|
);
|
||||||
}
|
}
|
92
_widgets.php
92
_widgets.php
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# This file is part of lastBlogUpdate, a plugin for Dotclear 2.
|
# This file is part of lastBlogUpdate, a plugin for Dotclear 2.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009-2015 Jean-Christian Denis and contributors
|
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
|
||||||
#
|
#
|
||||||
# Licensed under the GPL version 2.0 license.
|
# Licensed under the GPL version 2.0 license.
|
||||||
# A copy of this license is available in LICENSE file or at
|
# A copy of this license is available in LICENSE file or at
|
||||||
@ -12,7 +12,6 @@
|
|||||||
# -- END LICENSE BLOCK ------------------------------------
|
# -- END LICENSE BLOCK ------------------------------------
|
||||||
|
|
||||||
if (!defined('DC_RC_PATH')) {
|
if (!defined('DC_RC_PATH')) {
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,89 +21,82 @@ function lastBlogUpdateWidgetAdmin($w)
|
|||||||
{
|
{
|
||||||
global $core;
|
global $core;
|
||||||
|
|
||||||
$w->create(
|
$w
|
||||||
|
->create(
|
||||||
'lastblogupdate',
|
'lastblogupdate',
|
||||||
__('LastBlogUpdate: dates of lastest updates'),
|
__('LastBlogUpdate: dates of lastest updates'),
|
||||||
'lastBlogUpdateWidgetPublic',
|
'lastBlogUpdateWidgetPublic',
|
||||||
null,
|
null,
|
||||||
"Show the dates of last updates of your blog in a widget"
|
"Show the dates of last updates of your blog in a widget"
|
||||||
);
|
)
|
||||||
$w->lastblogupdate->setting(
|
->addTitle(__('Dates of lastest updates'))
|
||||||
'title',
|
->setting(
|
||||||
__('Title:'),
|
|
||||||
__('Dates of lastest updates'),
|
|
||||||
'text'
|
|
||||||
);
|
|
||||||
$w->lastblogupdate->setting(
|
|
||||||
'blog_show',
|
'blog_show',
|
||||||
__('Show blog update'),
|
__('Show blog update'),
|
||||||
1,
|
1,
|
||||||
'check'
|
'check'
|
||||||
);
|
)
|
||||||
$w->lastblogupdate->setting(
|
->setting(
|
||||||
'blog_title',
|
'blog_title',
|
||||||
__('Title for blog update:'),
|
__('Title for blog update:'),
|
||||||
__('Blog:'),
|
__('Blog:'),
|
||||||
'text'
|
'text'
|
||||||
);
|
)
|
||||||
$w->lastblogupdate->setting(
|
->setting(
|
||||||
'blog_text',
|
'blog_text',
|
||||||
__('Text for blog update:'),
|
__('Text for blog update:'),
|
||||||
__('%Y-%m-%d %H:%M'),
|
__('%Y-%m-%d %H:%M'),
|
||||||
'text'
|
'text'
|
||||||
);
|
)
|
||||||
|
->setting(
|
||||||
$w->lastblogupdate->setting(
|
|
||||||
'post_show',
|
'post_show',
|
||||||
__('Show entry update'),
|
__('Show entry update'),
|
||||||
1,
|
1,
|
||||||
'check'
|
'check'
|
||||||
);
|
)
|
||||||
$w->lastblogupdate->setting(
|
->setting(
|
||||||
'post_title',
|
'post_title',
|
||||||
__('Title for entries update:'),
|
__('Title for entries update:'),
|
||||||
__('Entries:'),
|
__('Entries:'),
|
||||||
'text'
|
'text'
|
||||||
);
|
)
|
||||||
$w->lastblogupdate->setting(
|
->setting(
|
||||||
'post_text',
|
'post_text',
|
||||||
__('Text for entries update:'),
|
__('Text for entries update:'),
|
||||||
__('%Y-%m-%d %H:%M'),
|
__('%Y-%m-%d %H:%M'),
|
||||||
'text'
|
'text'
|
||||||
);
|
)
|
||||||
|
->setting(
|
||||||
$w->lastblogupdate->setting(
|
|
||||||
'comment_show',
|
'comment_show',
|
||||||
__('Show comment update'),
|
__('Show comment update'),
|
||||||
1,
|
1,
|
||||||
'check'
|
'check'
|
||||||
);
|
)
|
||||||
$w->lastblogupdate->setting(
|
->setting(
|
||||||
'comment_title',
|
'comment_title',
|
||||||
__('Title for comments update:'),
|
__('Title for comments update:'),
|
||||||
__('Comments:'),
|
__('Comments:'),
|
||||||
'text'
|
'text'
|
||||||
);
|
)
|
||||||
$w->lastblogupdate->setting(
|
->setting(
|
||||||
'comment_text',
|
'comment_text',
|
||||||
__('Text for comments update:'),
|
__('Text for comments update:'),
|
||||||
__('%Y-%m-%d %H:%M'),
|
__('%Y-%m-%d %H:%M'),
|
||||||
'text'
|
'text'
|
||||||
);
|
)
|
||||||
|
->setting(
|
||||||
$w->lastblogupdate->setting(
|
|
||||||
'media_show',
|
'media_show',
|
||||||
__('Show media update'),
|
__('Show media update'),
|
||||||
1,
|
1,
|
||||||
'check'
|
'check'
|
||||||
);
|
)
|
||||||
$w->lastblogupdate->setting(
|
->setting(
|
||||||
'media_title',
|
'media_title',
|
||||||
__('Title for media update:'),
|
__('Title for media update:'),
|
||||||
__('Medias:'),
|
__('Medias:'),
|
||||||
'text'
|
'text'
|
||||||
);
|
)
|
||||||
$w->lastblogupdate->setting(
|
->setting(
|
||||||
'media_text',
|
'media_text',
|
||||||
__('Text for media update:'),
|
__('Text for media update:'),
|
||||||
__('%Y-%m-%d %H:%M'),
|
__('%Y-%m-%d %H:%M'),
|
||||||
@ -114,27 +106,9 @@ function lastBlogUpdateWidgetAdmin($w)
|
|||||||
# --BEHAVIOR-- lastBlogUpdateWidgetInit
|
# --BEHAVIOR-- lastBlogUpdateWidgetInit
|
||||||
$core->callBehavior('lastBlogUpdateWidgetInit', $w);
|
$core->callBehavior('lastBlogUpdateWidgetInit', $w);
|
||||||
|
|
||||||
$w->lastblogupdate->setting(
|
$w->lastblogupdate
|
||||||
'homeonly',
|
->addHomeOnly()
|
||||||
__('Display on:'),
|
->addContentOnly()
|
||||||
0,
|
->addClass()
|
||||||
'combo',
|
->addOffline();
|
||||||
array(
|
|
||||||
__('All pages') => 0,
|
|
||||||
__('Home page only') => 1,
|
|
||||||
__('Except on home page') => 2
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$w->lastblogupdate->setting(
|
|
||||||
'content_only',
|
|
||||||
__('Content only'),
|
|
||||||
0,
|
|
||||||
'check'
|
|
||||||
);
|
|
||||||
$w->lastblogupdate->setting(
|
|
||||||
'class',
|
|
||||||
__('CSS class:'),
|
|
||||||
''
|
|
||||||
);
|
|
||||||
$w->lastblogupdate->setting('offline',__('Offline'),0,'check');
|
|
||||||
}
|
}
|
13
dcstore.xml
Normal file
13
dcstore.xml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
|
<module id="lastBlogUpdate">
|
||||||
|
<name>lastBlogUpdate</name>
|
||||||
|
<version>2021.08.27</version>
|
||||||
|
<author>Jean-Christian Denis, Pierre Van Glabeke</author>
|
||||||
|
<desc>Show the dates of last updates of your blog in a widget</desc>
|
||||||
|
<file>https://github.com/JcDenis/lastBlogUpdate/releases/download/v2021.08.27/plugin-lastBlogUpdate.zip</file>
|
||||||
|
<da:dcmin>2.19</da:dcmin>
|
||||||
|
<da:details>http://plugins.dotaddict.org/dc2/details/lastBlogUpdate</da:details>
|
||||||
|
<da:section></da:section>
|
||||||
|
<da:support>http://forum.dotclear.org/viewtopic.php?pid=332950#p332950</da:support>
|
||||||
|
</module>
|
||||||
|
</modules>
|
61
locales/fr/main.lang.php
Normal file
61
locales/fr/main.lang.php
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<?php
|
||||||
|
// Language: Français
|
||||||
|
// Module: lastBlogUpdate - 2021.08.27
|
||||||
|
// Date: 2021-08-27 19:26:40
|
||||||
|
// Translated with dcTranslater - 2021.08.18
|
||||||
|
|
||||||
|
#_widgets.php:27
|
||||||
|
$GLOBALS['__l10n']['LastBlogUpdate: dates of lastest updates'] = 'LastBlogUpdate : dates des dernières mises à jour';
|
||||||
|
|
||||||
|
#_widgets.php:32
|
||||||
|
$GLOBALS['__l10n']['Dates of lastest updates'] = 'Dates des dernières mises à jour';
|
||||||
|
|
||||||
|
#_widgets.php:35
|
||||||
|
$GLOBALS['__l10n']['Show blog update'] = 'Afficher la date de mise à jour du blog';
|
||||||
|
|
||||||
|
#_widgets.php:41
|
||||||
|
$GLOBALS['__l10n']['Title for blog update:'] = 'Titre pour la date de mise à jour du blog :';
|
||||||
|
|
||||||
|
#_widgets.php:47
|
||||||
|
$GLOBALS['__l10n']['Text for blog update:'] = 'Texte pour la date de mise à jour du blog :';
|
||||||
|
|
||||||
|
#_widgets.php:53
|
||||||
|
$GLOBALS['__l10n']['Show entry update'] = 'Afficher la date de mise à jour des billets';
|
||||||
|
|
||||||
|
#_widgets.php:59
|
||||||
|
$GLOBALS['__l10n']['Title for entries update:'] = 'Titre pour la date de mise à jour des billets :';
|
||||||
|
|
||||||
|
#_widgets.php:60
|
||||||
|
$GLOBALS['__l10n']['Entries:'] = 'Billets :';
|
||||||
|
|
||||||
|
#_widgets.php:65
|
||||||
|
$GLOBALS['__l10n']['Text for entries update:'] = 'Texte pour la date de mise à jour des billets :';
|
||||||
|
|
||||||
|
#_widgets.php:71
|
||||||
|
$GLOBALS['__l10n']['Show comment update'] = 'Afficher la date de mise à jour des commentaires';
|
||||||
|
|
||||||
|
#_widgets.php:77
|
||||||
|
$GLOBALS['__l10n']['Title for comments update:'] = 'Titre pour la date de mise à jour des commentaires :';
|
||||||
|
|
||||||
|
#_widgets.php:78
|
||||||
|
$GLOBALS['__l10n']['Comments:'] = 'Commentaires :';
|
||||||
|
|
||||||
|
#_widgets.php:83
|
||||||
|
$GLOBALS['__l10n']['Text for comments update:'] = 'Texte pour la date de mise à jour des commentaires :';
|
||||||
|
|
||||||
|
#_widgets.php:89
|
||||||
|
$GLOBALS['__l10n']['Show media update'] = 'Afficher la date de mise à jour des médias';
|
||||||
|
|
||||||
|
#_widgets.php:95
|
||||||
|
$GLOBALS['__l10n']['Title for media update:'] = 'Titre pour la date de mise à jour des médias :';
|
||||||
|
|
||||||
|
#_widgets.php:96
|
||||||
|
$GLOBALS['__l10n']['Medias:'] = 'Médias :';
|
||||||
|
|
||||||
|
#_widgets.php:101
|
||||||
|
$GLOBALS['__l10n']['Text for media update:'] = 'Texte pour la date de mise à jour des médias :';
|
||||||
|
|
||||||
|
$GLOBALS['__l10n']['Show the dates of last updates of your blog in a widget'] = 'Afficher les dates des dernières mises à jour de votre blog';
|
||||||
|
|
||||||
|
$GLOBALS['__l10n']['Last blog update'] = 'Dernières mises à jour du blog';
|
||||||
|
|
@ -1,79 +1,85 @@
|
|||||||
|
# Language: Français
|
||||||
|
# Module: lastBlogUpdate - 2021.08.27
|
||||||
|
# Date: 2021-08-27 19:26:40
|
||||||
|
# Translated with translater 2021.08.18
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Project-Id-Version: lastBlogUpdate 2013.11.12\n"
|
"Project-Id-Version: lastBlogUpdate 2021.08.27\n"
|
||||||
"POT-Creation-Date: \n"
|
"POT-Creation-Date: \n"
|
||||||
"PO-Revision-Date: 2013-11-12T09:56:30+00:00\n"
|
"PO-Revision-Date: 2021-08-27T19:26:40+00:00\n"
|
||||||
"Last-Translator: Jean-Christian Denis\n"
|
"Last-Translator: Jean-Christian Denis\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||||
|
|
||||||
#: _widgets.php:28
|
#: _widgets.php:27
|
||||||
msgid "LastBlogUpdate: dates of lastest updates"
|
msgid "LastBlogUpdate: dates of lastest updates"
|
||||||
msgstr "LastBlogUpdate : dates des dernières mises à jour"
|
msgstr "LastBlogUpdate : dates des dernières mises à jour"
|
||||||
|
|
||||||
#: _widgets.php:36
|
#: _widgets.php:32
|
||||||
msgid "Dates of lastest updates"
|
msgid "Dates of lastest updates"
|
||||||
msgstr "Dates des dernières mises à jour"
|
msgstr "Dates des dernières mises à jour"
|
||||||
|
|
||||||
#: _widgets.php:41
|
#: _widgets.php:35
|
||||||
msgid "Show blog update"
|
msgid "Show blog update"
|
||||||
msgstr "Afficher la date de mise à jour du blog"
|
msgstr "Afficher la date de mise à jour du blog"
|
||||||
|
|
||||||
#: _widgets.php:47
|
#: _widgets.php:41
|
||||||
msgid "Title for blog update:"
|
msgid "Title for blog update:"
|
||||||
msgstr "Titre pour la date de mise à jour du blog :"
|
msgstr "Titre pour la date de mise à jour du blog :"
|
||||||
|
|
||||||
#: _widgets.php:53
|
#: _widgets.php:47
|
||||||
msgid "Text for blog update:"
|
msgid "Text for blog update:"
|
||||||
msgstr "Texte pour la date de mise à jour du blog :"
|
msgstr "Texte pour la date de mise à jour du blog :"
|
||||||
|
|
||||||
#: _widgets.php:60
|
#: _widgets.php:53
|
||||||
msgid "Show entry update"
|
msgid "Show entry update"
|
||||||
msgstr "Afficher la date de mise à jour des billets"
|
msgstr "Afficher la date de mise à jour des billets"
|
||||||
|
|
||||||
#: _widgets.php:66
|
#: _widgets.php:59
|
||||||
msgid "Title for entries update:"
|
msgid "Title for entries update:"
|
||||||
msgstr "Titre pour la date de mise à jour des billets :"
|
msgstr "Titre pour la date de mise à jour des billets :"
|
||||||
|
|
||||||
#: _widgets.php:67
|
#: _widgets.php:60
|
||||||
msgid "Entries:"
|
msgid "Entries:"
|
||||||
msgstr "Billets :"
|
msgstr "Billets :"
|
||||||
|
|
||||||
#: _widgets.php:72
|
#: _widgets.php:65
|
||||||
msgid "Text for entries update:"
|
msgid "Text for entries update:"
|
||||||
msgstr "Texte pour la date de mise à jour des billets :"
|
msgstr "Texte pour la date de mise à jour des billets :"
|
||||||
|
|
||||||
#: _widgets.php:79
|
#: _widgets.php:71
|
||||||
msgid "Show comment update"
|
msgid "Show comment update"
|
||||||
msgstr "Afficher la date de mise à jour des commentaires"
|
msgstr "Afficher la date de mise à jour des commentaires"
|
||||||
|
|
||||||
#: _widgets.php:85
|
#: _widgets.php:77
|
||||||
msgid "Title for comments update:"
|
msgid "Title for comments update:"
|
||||||
msgstr "Titre pour la date de mise à jour des commentaires :"
|
msgstr "Titre pour la date de mise à jour des commentaires :"
|
||||||
|
|
||||||
#: _widgets.php:86
|
#: _widgets.php:78
|
||||||
msgid "Comments:"
|
msgid "Comments:"
|
||||||
msgstr "Commentaires :"
|
msgstr "Commentaires :"
|
||||||
|
|
||||||
#: _widgets.php:91
|
#: _widgets.php:83
|
||||||
msgid "Text for comments update:"
|
msgid "Text for comments update:"
|
||||||
msgstr "Texte pour la date de mise à jour des commentaires :"
|
msgstr "Texte pour la date de mise à jour des commentaires :"
|
||||||
|
|
||||||
#: _widgets.php:98
|
#: _widgets.php:89
|
||||||
msgid "Show media update"
|
msgid "Show media update"
|
||||||
msgstr "Afficher la date de mise à jour des médias"
|
msgstr "Afficher la date de mise à jour des médias"
|
||||||
|
|
||||||
#: _widgets.php:104
|
#: _widgets.php:95
|
||||||
msgid "Title for media update:"
|
msgid "Title for media update:"
|
||||||
msgstr "Titre pour la date de mise à jour des médias :"
|
msgstr "Titre pour la date de mise à jour des médias :"
|
||||||
|
|
||||||
#: _widgets.php:105
|
#: _widgets.php:96
|
||||||
msgid "Medias:"
|
msgid "Medias:"
|
||||||
msgstr "Médias :"
|
msgstr "Médias :"
|
||||||
|
|
||||||
#: _widgets.php:110
|
#: _widgets.php:101
|
||||||
msgid "Text for media update:"
|
msgid "Text for media update:"
|
||||||
msgstr "Texte pour la date de mise à jour des médias :"
|
msgstr "Texte pour la date de mise à jour des médias :"
|
||||||
|
|
||||||
@ -82,3 +88,4 @@ msgstr "Afficher les dates des dernières mises à jour de votre blog"
|
|||||||
|
|
||||||
msgid "Last blog update"
|
msgid "Last blog update"
|
||||||
msgstr "Dernières mises à jour du blog"
|
msgstr "Dernières mises à jour du blog"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user