cleanup 2021

master
Jean-Christian Paul Denis 2021-08-27 21:01:19 +02:00
parent 74e25ff15b
commit 9899da09d1
11 changed files with 843 additions and 713 deletions

View File

@ -1,22 +0,0 @@
postInfoWidget 0.5.1 - 2015-04-23 - Pierre Van Glabeke
* modif url support
postInfoWidget 0.5 - 2015-01-29 - Pierre Van Glabeke
* ajout case hors ligne
* modif localisation
* fin de ligne unix (LF)
postInfoWidget 0.4 - 2013-11-12
* Switch to Dotclear 2.6
* Clean up code
* Add widget options
postInfoWidget 0.3 - 2010-06-21
* Fixed tags list
* Fixed nav links
postInfoWidget 0.2 - 2010-06-05
* Switched to DC 2.2
postInfoWidget 0.1 - 2010-05-24
* First lab release

26
CHANGELOG.md 100644
View File

@ -0,0 +1,26 @@
postInfoWidget 0.6 - 2021.08.27
- cleanup (PSR2, short array, ...)
- update license
postInfoWidget 0.5.1 - 2015.04.23 - Pierre Van Glabeke
- modif url support
postInfoWidget 0.5 - 2015-01-29 - Pierre Van Glabeke
- ajout case hors ligne
- modif localisation
- fin de ligne unix (LF)
postInfoWidget 0.4 - 2013.11.12
- Switch to Dotclear 2.6
- Clean up code
- Add widget options
postInfoWidget 0.3 - 2010.06.21
- Fixed tags list
- Fixed nav links
postInfoWidget 0.2 - 2010.06.05
- Switched to DC 2.2
postInfoWidget 0.1 - 2010.05.24
- First lab release

23
LICENSE
View File

@ -1,12 +1,12 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
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
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@ -56,7 +56,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
@ -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
the "copyright" line and a pointer to where the full notice is found.
{description}
Copyright (C) {year} {fullname}
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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
@ -329,7 +329,7 @@ necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`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
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
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.

View File

@ -20,3 +20,14 @@ First install postInfoWidget, manualy from a zip package or from
Dotaddict repository. (See Dotclear's documentation to know how do this)
Add and configure "Entry information list" from widgets manager.
## MORE
* License : GNU GPL v2
* Source & contribution : [GitHub Page](https://github.com/JcDenis/postInfoWidget)
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/postInfoWidget)
## CONTRIBUTORS
* Jean-Chirstian Denis
* Pierre Van Glabeke

View File

@ -3,7 +3,7 @@
#
# This file is part of postInfoWidget, 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.
# A copy of this license is available in LICENSE file or at
@ -12,8 +12,7 @@
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_CONTEXT_ADMIN')) {
return null;
return null;
}
require dirname(__FILE__).'/_widgets.php';
require dirname(__FILE__) . '/_widgets.php';

View File

@ -3,7 +3,7 @@
#
# This file is part of postInfoWidget, 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.
# A copy of this license is available in LICENSE file or at
@ -12,24 +12,20 @@
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_RC_PATH')) {
return null;
return null;
}
$this->registerModule(
/* Name */
"postInfoWidget",
/* Description*/
"Show Entry informations on a widget",
/* Author */
"Jean-Christian Denis, Pierre Van Glabeke",
/* Version */
'0.5.1',
array(
'permissions' => 'usage,contentadmin',
'type' => 'plugin',
'dc_min' => '2.7',
'support' => 'http://forum.dotclear.org/viewtopic.php?pid=332974#p332974',
'details' => 'http://plugins.dotaddict.org/dc2/details/postInfoWidget'
)
'postInfoWidget',
'Show Entry informations on a widget',
'Jean-Christian Denis, Pierre Van Glabeke',
'0.6',
[
'permissions' => 'usage,contentadmin',
'type' => 'plugin',
'dc_min' => '2.19',
'support' => 'http://forum.dotclear.org/viewtopic.php?pid=332974#p332974',
'details' => 'http://plugins.dotaddict.org/dc2/details/postInfoWidget',
'repository' => 'https://raw.githubusercontent.com/JcDenis/postInfoWidget/master/dcstore.xml'
]
);

View File

@ -3,7 +3,7 @@
#
# This file is part of postInfoWidget, 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.
# A copy of this license is available in LICENSE file or at
@ -12,8 +12,7 @@
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_RC_PATH')) {
return null;
return null;
}
require dirname(__FILE__).'/_widgets.php';
require dirname(__FILE__) . '/_widgets.php';

File diff suppressed because it is too large Load Diff

13
dcstore.xml 100644
View File

@ -0,0 +1,13 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="postInfoWidget">
<name>postInfoWidget</name>
<version>0.6</version>
<author>Jean-Christian Denis, Pierre Van Glabeke</author>
<desc>Show Entry informations on a widget</desc>
<file>https://github.com/JcDenis/postInfoWidget/releases/download/v0.6/plugin-postInfoWidget.zip</file>
<da:dcmin>2.19</da:dcmin>
<da:details>http://plugins.dotaddict.org/dc2/details/postInfoWidget</da:details>
<da:section></da:section>
<da:support>http://forum.dotclear.org/viewtopic.php?pid=332974#p332974</da:support>
</module>
</modules>

View File

@ -0,0 +1,141 @@
<?php
// Language: Français
// Module: postInfoWidget - 0.6
// Date: 2021-08-27 18:59:52
// Translated with dcTranslater - 2021.08.18
#_widgets.php:32
$GLOBALS['__l10n']['PostInfoWidget: entry information list'] = 'PostInfoWidget : liste d\'information du billet';
#_widgets.php:35
$GLOBALS['__l10n']['Show Entry informations on a widget'] = 'Afficher les informations d\'un billet dans un widget';
#_widgets.php:37
$GLOBALS['__l10n']['About this entry'] = 'Á propos de ce billet';
#_widgets.php:40
$GLOBALS['__l10n']['Publish date text:'] = 'Texte pour la date de publication :';
#_widgets.php:41
$GLOBALS['__l10n']['Publish on %Y-%m-%d %H:%M'] = 'Publié le %d/%m/%Y à %H:%M';
#_widgets.php:46
$GLOBALS['__l10n']['Create date text:'] = 'Texte pour la date de création :';
#_widgets.php:47
$GLOBALS['__l10n']['Create on %Y-%m-%d %H:%M'] = 'Créé le %d/%m/%Y à %H:%M';
#_widgets.php:52
$GLOBALS['__l10n']['Update date text:'] = 'Texte pour la date de dernière mise à jour :';
#_widgets.php:53
$GLOBALS['__l10n']['Update on %Y-%m-%d %H:%M'] = 'Mis à jour le %d/%m/%Y à %H:%M';
#_widgets.php:58
$GLOBALS['__l10n']['Language (%T = name, %C = code, %F = flag):'] = 'Texte pour la langue (%T = nom, %C = code, %F = drapeau) :';
#_widgets.php:59
$GLOBALS['__l10n']['Language: %T %F'] = 'Langue : %T %F';
#_widgets.php:64
$GLOBALS['__l10n']['Author text (%T = author):'] = 'Texte pour l\'auteur (%T = auteur) :';
#_widgets.php:65
$GLOBALS['__l10n']['Author: %T'] = 'Auteur : %T';
#_widgets.php:70
$GLOBALS['__l10n']['Category text (%T = category):'] = 'Texte pour la catégorie (%T = catégorie) :';
#_widgets.php:71
$GLOBALS['__l10n']['Category: %T'] = 'Catégorie : %T';
#_widgets.php:78
$GLOBALS['__l10n']['Tags text (%T = tags list):'] = 'Texte pour les mots-clés (%T = liste des mots-clés) :';
#_widgets.php:79
$GLOBALS['__l10n']['Tags: %T'] = 'Mots-clés : %T';
#_widgets.php:87
$GLOBALS['__l10n']['Attachments text (%T = text, %D = numeric):'] = 'Texte pour le nombre d\'annexes (%T = texte, %D = nombre) :';
#_widgets.php:88
$GLOBALS['__l10n']['Attachments: %T'] = 'Annexes : %T';
#_widgets.php:93
$GLOBALS['__l10n']['Comments text (%T = text, %D = numeric):'] = 'Texte pour le nombre de commentaires (%T = texte, %D = nombre) :';
#_widgets.php:94
$GLOBALS['__l10n']['Comments: %T'] = 'Commentaires : %T';
#_widgets.php:99
$GLOBALS['__l10n']['Trackbacks text (%T = text, %D = numeric):'] = 'Texte pour le nombre de rétroliens (%T = texte, %D = nombre) :';
#_widgets.php:100
$GLOBALS['__l10n']['Trackbacks: %T'] = 'Rétroliens : %T';
#_widgets.php:105
$GLOBALS['__l10n']['Permalink text (%T = text link, %F = full link):'] = 'Texte pour le lien pemanent (%T = texte, %F = complet) :';
#_widgets.php:106
#_widgets.php:118
#_widgets.php:124
#_widgets.php:130
#_widgets.php:136
$GLOBALS['__l10n']['%T'] = '%T';
#_widgets.php:111
$GLOBALS['__l10n']['Show comment feed url'] = 'Afficher l\'URL du flux des commentaires';
#_widgets.php:117
$GLOBALS['__l10n']['Link to previous entry (%T = navigation text, %F = entry title):'] = 'Lien vers le billet précédent (%T = texte de navigation, %F = titre du billet) :';
#_widgets.php:123
$GLOBALS['__l10n']['Link to next entry (%T = navigation text, %F = entry title):'] = 'Lien vers le billet suivant (%T = texte de navigation, %F = titre du billet) :';
#_widgets.php:129
$GLOBALS['__l10n']['Link to previous entry of this category (%T = navigation text, %F = entry title):'] = 'Lien vers le billet précédent de la catégorie (%T = texte de navigation, %F = titre du billet) :';
#_widgets.php:135
$GLOBALS['__l10n']['Link to next entry of this category (%T = navigation text, %F = entry title):'] = 'Lien vers le billet suivant de la catégorie (%T = texte de navigation, %F = titre du billet) :';
#_widgets.php:145
$GLOBALS['__l10n']['No style'] = 'sans style';
#_widgets.php:146
$GLOBALS['__l10n']['Small icon'] = 'petite icône';
#_widgets.php:147
$GLOBALS['__l10n']['Normal icon'] = 'icône normale';
#_widgets.php:154
$GLOBALS['__l10n']['Try to remove entry information'] = 'Essayer de cacher les informations du billet';
#_widgets.php:160
$GLOBALS['__l10n']['Try to remove entry tags'] = 'Essayer de cacher la liste des mots-clés du billet';
#_widgets.php:166
$GLOBALS['__l10n']['Try to remove entry navigation'] = 'Essayer de cacher les liens de navigation';
#_widgets.php:321
$GLOBALS['__l10n']['no attachment'] = 'aucune annexe';
#_widgets.php:361
$GLOBALS['__l10n']['no comment'] = 'aucun commentaire';
#_widgets.php:401
$GLOBALS['__l10n']['no trackback'] = 'aucun rétrolien';
#_widgets.php:477
$GLOBALS['__l10n']['Previous entry'] = 'Billet précédent';
#_widgets.php:493
$GLOBALS['__l10n']['Next entry'] = 'Billet suivant';
#_widgets.php:510
$GLOBALS['__l10n']['Previous entry of this category'] = 'Billet précédent de cette catégorie';
#_widgets.php:527
$GLOBALS['__l10n']['Next entry of this category'] = 'Billet suivant de cette catégorie';
$GLOBALS['__l10n']['Try to adapt style:'] = 'Essayer d\'adapter le style :';

View File

@ -1,214 +1,196 @@
# Language: Français
# Module: postInfoWidget - 0.6
# Date: 2021-08-27 18:59:52
# Translated with translater 2021.08.18
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: postInfoWidget 0.5\n"
"Project-Id-Version: postInfoWidget 0.6\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2013-11-12T15:08:48+00:00\n"
"PO-Revision-Date: 2021-08-27T18:59:52+00:00\n"
"Last-Translator: Jean-Christian Denis\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: _widgets.php:31
#: _widgets.php:32
msgid "PostInfoWidget: entry information list"
msgstr "PostInfoWidget : liste d'information du billet"
#: _widgets.php:34
#: _widgets.php:35
msgid "Show Entry informations on a widget"
msgstr "Afficher les informations d'un billet dans un widget"
#: _widgets.php:39
#: _widgets.php:37
msgid "About this entry"
msgstr "Á propos de ce billet"
#: _widgets.php:44
#: _widgets.php:40
msgid "Publish date text:"
msgstr "Texte pour la date de publication :"
#: _widgets.php:45
#: _widgets.php:41
msgid "Publish on %Y-%m-%d %H:%M"
msgstr "Publié le %d/%m/%Y à %H:%M"
#: _widgets.php:50
#: _widgets.php:46
msgid "Create date text:"
msgstr "Texte pour la date de création :"
#: _widgets.php:51
#: _widgets.php:47
msgid "Create on %Y-%m-%d %H:%M"
msgstr "Créé le %d/%m/%Y à %H:%M"
#: _widgets.php:56
#: _widgets.php:52
msgid "Update date text:"
msgstr "Texte pour la date de dernière mise à jour :"
#: _widgets.php:57
#: _widgets.php:53
msgid "Update on %Y-%m-%d %H:%M"
msgstr "Mis à jour le %d/%m/%Y à %H:%M"
#: _widgets.php:62
#: _widgets.php:58
msgid "Language (%T = name, %C = code, %F = flag):"
msgstr "Texte pour la langue (%T = nom, %C = code, %F = drapeau) :"
#: _widgets.php:63
#: _widgets.php:59
msgid "Language: %T %F"
msgstr "Langue : %T %F"
#: _widgets.php:68
#: _widgets.php:64
msgid "Author text (%T = author):"
msgstr "Texte pour l'auteur (%T = auteur) :"
#: _widgets.php:69
#: _widgets.php:65
msgid "Author: %T"
msgstr "Auteur : %T"
#: _widgets.php:74
#: _widgets.php:70
msgid "Category text (%T = category):"
msgstr "Texte pour la catégorie (%T = catégorie) :"
#: _widgets.php:75
#: _widgets.php:71
msgid "Category: %T"
msgstr "Catégorie : %T"
#: _widgets.php:81
#: _widgets.php:78
msgid "Tags text (%T = tags list):"
msgstr "Texte pour les mots-clés (%T = liste des mots-clés) :"
#: _widgets.php:82
#: _widgets.php:79
msgid "Tags: %T"
msgstr "Mots-clés : %T"
#: _widgets.php:88
#: _widgets.php:87
msgid "Attachments text (%T = text, %D = numeric):"
msgstr "Texte pour le nombre d'annexes (%T = texte, %D = nombre) :"
#: _widgets.php:89
#: _widgets.php:88
msgid "Attachments: %T"
msgstr "Annexes : %T"
#: _widgets.php:94
#: _widgets.php:93
msgid "Comments text (%T = text, %D = numeric):"
msgstr "Texte pour le nombre de commentaires (%T = texte, %D = nombre) :"
#: _widgets.php:95
#: _widgets.php:94
msgid "Comments: %T"
msgstr "Commentaires : %T"
#: _widgets.php:100
#: _widgets.php:99
msgid "Trackbacks text (%T = text, %D = numeric):"
msgstr "Texte pour le nombre de rétroliens (%T = texte, %D = nombre) :"
#: _widgets.php:101
#: _widgets.php:100
msgid "Trackbacks: %T"
msgstr "Rétroliens : %T"
#: _widgets.php:106
#: _widgets.php:105
msgid "Permalink text (%T = text link, %F = full link):"
msgstr "Texte pour le lien pemanent (%T = texte, %F = complet) :"
#: _widgets.php:107
#: _widgets.php:119
#: _widgets.php:125
#: _widgets.php:131
#: _widgets.php:137
#: _widgets.php:106
#: _widgets.php:118
#: _widgets.php:124
#: _widgets.php:130
#: _widgets.php:136
msgid "%T"
msgstr "%T"
#: _widgets.php:112
#: _widgets.php:111
msgid "Show comment feed url"
msgstr "Afficher l'URL du flux des commentaires"
#: _widgets.php:118
#: _widgets.php:117
msgid "Link to previous entry (%T = navigation text, %F = entry title):"
msgstr "Lien vers le billet précédent (%T = texte de navigation, %F = titre du billet) :"
#: _widgets.php:124
#: _widgets.php:123
msgid "Link to next entry (%T = navigation text, %F = entry title):"
msgstr "Lien vers le billet suivant (%T = texte de navigation, %F = titre du billet) :"
#: _widgets.php:130
#: _widgets.php:129
msgid "Link to previous entry of this category (%T = navigation text, %F = entry title):"
msgstr "Lien vers le billet précédent de la catégorie (%T = texte de navigation, %F = titre du billet) :"
#: _widgets.php:136
#: _widgets.php:135
msgid "Link to next entry of this category (%T = navigation text, %F = entry title):"
msgstr "Lien vers le billet suivant de la catégorie (%T = texte de navigation, %F = titre du billet) :"
#: _widgets.php:142
msgid "Try to adapt style:"
msgstr "Essayer d'adapter le style :"
#: _widgets.php:146
#: _widgets.php:145
msgid "No style"
msgstr "sans style"
#: _widgets.php:147
#: _widgets.php:146
msgid "Small icon"
msgstr "petite icône"
#: _widgets.php:148
#: _widgets.php:147
msgid "Normal icon"
msgstr "icône normale"
#: _widgets.php:153
#: _widgets.php:154
msgid "Try to remove entry information"
msgstr "Essayer de cacher les informations du billet"
#: _widgets.php:159
#: _widgets.php:160
msgid "Try to remove entry tags"
msgstr "Essayer de cacher la liste des mots-clés du billet"
#: _widgets.php:165
#: _widgets.php:166
msgid "Try to remove entry navigation"
msgstr "Essayer de cacher les liens de navigation"
#: _widgets.php:333
#: _widgets.php:321
msgid "no attachment"
msgstr "aucune annexe"
#: _widgets.php:344
msgid "one attachment"
msgstr "une annexe"
#: _widgets.php:356
msgid "%d attachments"
msgstr "%d annexes"
#: _widgets.php:375
#: _widgets.php:361
msgid "no comment"
msgstr "aucun commentaire"
#: _widgets.php:386
msgid "one comment"
msgstr "un commentaire"
#: _widgets.php:398
msgid "%d comments"
msgstr "%d commentaires"
#: _widgets.php:417
#: _widgets.php:401
msgid "no trackback"
msgstr "aucun rétrolien"
#: _widgets.php:428
msgid "one trackback"
msgstr "un rétrolien"
#: _widgets.php:440
msgid "%d trackbacks"
msgstr "%d rétroliens"
#: _widgets.php:494
#: _widgets.php:477
msgid "Previous entry"
msgstr "Billet précédent"
#: _widgets.php:510
#: _widgets.php:493
msgid "Next entry"
msgstr "Billet suivant"
#: _widgets.php:527
#: _widgets.php:510
msgid "Previous entry of this category"
msgstr "Billet précédent de cette catégorie"
#: _widgets.php:544
#: _widgets.php:527
msgid "Next entry of this category"
msgstr "Billet suivant de cette catégorie"
msgstr "Billet suivant de cette catégorie"
msgid "Try to adapt style:"
msgstr "Essayer d'adapter le style :"