0.4.1
This commit is contained in:
parent
76b4910673
commit
26b4817adb
9 changed files with 103 additions and 70 deletions
12
CHANGELOG
12
CHANGELOG
|
@ -1,23 +1,23 @@
|
|||
comListe 0.4.1 - 23-07-2015 - Pierre Van Glabeke
|
||||
* correction localisation
|
||||
|
||||
comListe 0.4 - 19-07-2015 - Pierre Van Glabeke
|
||||
===========================================================
|
||||
* ajout breadcrumb
|
||||
* ajout favoris
|
||||
* héritage de thème mustek
|
||||
* suppression tpl pour Noviny2 (intégré directement dans v0.9 de Noviny2)
|
||||
* dc2.8 requis
|
||||
|
||||
comListe 0.3.1 - 11-06-2015 - Pierre Van Glabeke
|
||||
===========================================================
|
||||
* modifs html5
|
||||
* mise à jour adapt-themes
|
||||
* suppression tpl pour Freshy2 (intégré directement dans v1.9 de Freshy2)
|
||||
|
||||
comListe 0.3 - 03-03-2015 - Pierre Van Glabeke
|
||||
===========================================================
|
||||
* correction localisation
|
||||
* ajout info sur widget
|
||||
|
||||
comListe 0.2 - 19-12-2014 - Pierre Van Glabeke
|
||||
===========================================================
|
||||
* compatibilité dc2.7
|
||||
* suppression dossier .settings + fichiers .buildpath et .project
|
||||
* modification tpl
|
||||
|
@ -25,15 +25,12 @@ comListe 0.2 - 19-12-2014 - Pierre Van Glabeke
|
|||
* modification icône
|
||||
|
||||
comListe 0.1.9 - 2013-10-13 - Pierre Van Glabeke
|
||||
===========================================================
|
||||
* compatibilité dc2.6
|
||||
|
||||
comListe 0.1.8 - 2009-07-20
|
||||
===========================================================
|
||||
* correction sur le calcul du nombre de commentaires
|
||||
|
||||
comListe 0.1.7 - 2009-07-20
|
||||
===========================================================
|
||||
* mise à niveau pour la compatibilité Dotclear 2.2
|
||||
* mise à niveau pour la compatibilité php 5.3.0
|
||||
* Ticket #272 : coquille anglais corrigée
|
||||
|
@ -41,7 +38,6 @@ comListe 0.1.7 - 2009-07-20
|
|||
* mise à niveau de la licence de l'extension
|
||||
|
||||
comListe 0.1.6 - 2009-10-07
|
||||
===========================================================
|
||||
* correction d'une erreur dans la pagination
|
||||
* utilisation du plugin translater pour la traduction
|
||||
|
||||
|
|
15
_admin.php
15
_admin.php
|
@ -17,4 +17,17 @@ if (!defined('DC_CONTEXT_ADMIN')) { return; }
|
|||
|
||||
$_menu['Blog']->addItem(__('List of comments'),'plugin.php?p=comListe','index.php?pf=comListe/icon.png',
|
||||
preg_match('/plugin.php\?p=comListe(&.*)?$/',$_SERVER['REQUEST_URI']),
|
||||
$core->auth->check('admin',$core->blog->id));
|
||||
$core->auth->check('admin',$core->blog->id));
|
||||
|
||||
$core->addBehavior('adminDashboardFavorites','comListeDashboardFavorites');
|
||||
|
||||
function comListeDashboardFavorites($core,$favs)
|
||||
{
|
||||
$favs->register('comListe', array(
|
||||
'title' => __('List of comments'),
|
||||
'url' => 'plugin.php?p=comListe',
|
||||
'small-icon' => 'index.php?pf=comListe/icon.png',
|
||||
'large-icon' => 'index.php?pf=comListe/icon-big.png',
|
||||
'permissions' => 'usage,contentadmin'
|
||||
));
|
||||
}
|
|
@ -16,13 +16,13 @@ $this->registerModule(
|
|||
/* Name */ "ComListe",
|
||||
/* Description*/ "Display a list of all comments and trackbacks of a blog in a public page",
|
||||
/* Author */ "Benoit de Marne, Pierre Van Glabeke",
|
||||
/* Version */ '0.4',
|
||||
/* Version */ '0.4.1',
|
||||
/* Properties */
|
||||
array(
|
||||
'permissions' => 'admin',
|
||||
'type' => 'plugin',
|
||||
'dc_min' => '2.8',
|
||||
'support' => 'http://lab.dotclear.org/wiki/plugin/comListe/fr',
|
||||
'support' => 'http://forum.dotclear.org/viewtopic.php?pid=333985#p333985',
|
||||
'details' => 'http://plugins.dotaddict.org/dc2/details/comListe'
|
||||
)
|
||||
);
|
12
_public.php
12
_public.php
|
@ -23,14 +23,4 @@ $core->tpl->addValue('ComListeNbCommentsPerPage',array('tplComListe','comListeNb
|
|||
$core->tpl->addBlock('ComListeCommentsEntries',array('tplComListe','comListeCommentsEntries'));
|
||||
$core->tpl->addValue('ComListePaginationLinks',array('tplComListe','comListePaginationLinks'));
|
||||
$core->tpl->addValue('ComListeOpenPostTitle',array('tplComListe','comListeOpenPostTitle'));
|
||||
$core->addBehavior('publicBreadcrumb',array('extComListe','publicBreadcrumb'));
|
||||
|
||||
class extComListe
|
||||
{
|
||||
public static function publicBreadcrumb($context,$separator)
|
||||
{
|
||||
if ($context == 'comListe') {
|
||||
return __('List of comments');
|
||||
}
|
||||
}
|
||||
}
|
||||
$core->addBehavior('publicBreadcrumb',array('extComListe','publicBreadcrumb'));
|
|
@ -58,12 +58,12 @@
|
|||
|
||||
</div> <!-- End #post -->
|
||||
<p class="pagination">
|
||||
{{tpl:ComListePaginationLinks}}
|
||||
{{tpl:lang Pages:}} {{tpl:ComListePaginationLinks}}
|
||||
</p>
|
||||
|
||||
<p class="post-info">
|
||||
{{tpl:lang Number of comments per page:}} {{tpl:ComListeNbCommentsPerPage}}<br />
|
||||
{{tpl:lang Number of comments:}} {{tpl:ComListeNbComments}}
|
||||
{{tpl:lang Total Comments:}} {{tpl:ComListeNbComments}}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -52,13 +52,13 @@
|
|||
</tpl:ComListeCommentsEntries>
|
||||
|
||||
<p class="pagination">
|
||||
{{tpl:ComListePaginationLinks}}
|
||||
{{tpl:lang Pages:}} {{tpl:ComListePaginationLinks}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p class="post-info">
|
||||
{{tpl:lang Number of comments per page:}} {{tpl:ComListeNbCommentsPerPage}}<br />
|
||||
{{tpl:lang Number of comments:}} {{tpl:ComListeNbComments}}
|
||||
{{tpl:lang Total Comments:}} {{tpl:ComListeNbComments}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -50,12 +50,12 @@
|
|||
</div>
|
||||
</div>
|
||||
<p class="pagination">
|
||||
{{tpl:ComListePaginationLinks}}
|
||||
{{tpl:lang Pages:}} {{tpl:ComListePaginationLinks}}
|
||||
</p>
|
||||
|
||||
<p class="post-info">
|
||||
{{tpl:lang Number of comments per page:}} {{tpl:ComListeNbCommentsPerPage}}<br />
|
||||
{{tpl:lang Number of comments:}} {{tpl:ComListeNbComments}}
|
||||
{{tpl:lang Total Comments:}} {{tpl:ComListeNbComments}}
|
||||
</p>
|
||||
|
||||
</tpl:Block>
|
|
@ -259,7 +259,6 @@ class tplComListe
|
|||
$nb_sequence = 2*3+1;
|
||||
$quick_distance = 10;
|
||||
|
||||
echo "Pages : ";
|
||||
if($nb_pages <= $nb_max_pages) {
|
||||
/* less or equal than 10 pages, simple links */
|
||||
for ($i = 1; $i <= $nb_pages; $i++) {
|
||||
|
@ -337,6 +336,16 @@ class tplComListe
|
|||
'</a></p>';
|
||||
|
||||
return $w->renderDiv($w->content_only,'comliste '.$w->class,'',$res);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class extComListe
|
||||
{
|
||||
public static function publicBreadcrumb($context,$separator)
|
||||
{
|
||||
if ($context == 'comListe') {
|
||||
return __('List of comments');
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,64 +1,91 @@
|
|||
# Language: Français
|
||||
# Module: comListe - 0.4.1
|
||||
# Date: 2015-07-23 16:43:21
|
||||
# Translated with translater 2015.03.02
|
||||
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Project-Id-Version: comListe 0.2\n"
|
||||
"Project-Id-Version: comListe 0.4.1\n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: 2014-12-18T09:16:42+00:00\n"
|
||||
"Last-Translator: Pierre Van Glabeke\n"
|
||||
"PO-Revision-Date: 2015-07-23T16:43:21+00:00\n"
|
||||
"Last-Translator: brol\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: _admin.php:18
|
||||
#: _widgets.php:22
|
||||
#: index.php:99
|
||||
#: index.php:111
|
||||
msgid "ComListe"
|
||||
msgstr "ComListe"
|
||||
|
||||
#: _widgets.php:21
|
||||
#: _admin.php:27
|
||||
#: _widgets.php:23
|
||||
#: inc/class.dc.comListe.php:321
|
||||
#: index.php:48
|
||||
#: _widgets.php:25
|
||||
#: inc/class.dc.comListe.php:335
|
||||
#: inc/class.dc.comListe.php:348
|
||||
#: index.php:15
|
||||
#: index.php:50
|
||||
msgid "List of comments"
|
||||
msgstr "Liste des commentaires"
|
||||
|
||||
#: inc/class.dc.comListe.php:91
|
||||
msgid "Number of comments:"
|
||||
msgstr "Nombres de commentaires :"
|
||||
#: _widgets.php:21
|
||||
#: _widgets.php:24
|
||||
msgid "ComListe"
|
||||
msgstr "ComListe"
|
||||
|
||||
#: inc/class.dc.comListe.php:295
|
||||
msgid "open post"
|
||||
msgstr "ouvrir le billet"
|
||||
#: adapt-themes/Notepad-Chaos-1.2.comListe.html:45
|
||||
#: default-templates/currywurst/comListe.html:36
|
||||
#: default-templates/mustek/comListe.html:37
|
||||
msgid "source:"
|
||||
msgstr "source :"
|
||||
|
||||
#: index.php:68
|
||||
msgid "No page title."
|
||||
msgstr "Pas de titre de page."
|
||||
#: adapt-themes/Notepad-Chaos-1.2.comListe.html:61
|
||||
#: default-templates/currywurst/comListe.html:55
|
||||
#: default-templates/mustek/comListe.html:53
|
||||
msgid "Pages:"
|
||||
msgstr "Pages :"
|
||||
|
||||
#: index.php:123
|
||||
msgid "Plugin activation"
|
||||
msgstr "Activation du plugin"
|
||||
|
||||
#: index.php:126
|
||||
msgid "Enable comListe"
|
||||
msgstr "Activer comListe"
|
||||
|
||||
#: index.php:128
|
||||
msgid "General options"
|
||||
msgstr "Options générales"
|
||||
|
||||
#: index.php:129
|
||||
msgid "Title page"
|
||||
msgstr "Titre de la page"
|
||||
|
||||
#: index.php:132
|
||||
#: adapt-themes/Notepad-Chaos-1.2.comListe.html:65
|
||||
#: default-templates/currywurst/comListe.html:60
|
||||
#: default-templates/mustek/comListe.html:57
|
||||
#: index.php:139
|
||||
msgid "Number of comments per page:"
|
||||
msgstr "Nombre de commentaires par page :"
|
||||
|
||||
#: adapt-themes/Notepad-Chaos-1.2.comListe.html:66
|
||||
#: default-templates/currywurst/comListe.html:61
|
||||
#: default-templates/mustek/comListe.html:58
|
||||
msgid "Total Comments:"
|
||||
msgstr "Nombre total de commentaires :"
|
||||
|
||||
#: inc/class.dc.comListe.php:306
|
||||
msgid "open post"
|
||||
msgstr "ouvrir le billet"
|
||||
|
||||
#: index.php:70
|
||||
msgid "No page title."
|
||||
msgstr "Pas de titre de page."
|
||||
|
||||
#: index.php:129
|
||||
msgid "Plugin activation"
|
||||
msgstr "Activation du plugin"
|
||||
|
||||
#: index.php:133
|
||||
msgid "Enable comListe"
|
||||
msgstr "Activer comListe"
|
||||
|
||||
#: index.php:135
|
||||
msgid "General options"
|
||||
msgstr "Options générales"
|
||||
|
||||
#: index.php:136
|
||||
msgid "Title page"
|
||||
msgstr "Titre de la page"
|
||||
|
||||
#: index.php:142
|
||||
msgid "Comments order"
|
||||
msgstr "Sens de tri pour les commentaires"
|
||||
|
||||
msgid "Number of comments:"
|
||||
msgstr "Nombre de commentaires :"
|
||||
|
||||
msgid "Display a list of all comments and trackbacks of a blog in a public page"
|
||||
msgstr "Afficher la liste de tous les commentaires et rétroliens d'un blog dans une page publique"
|
||||
|
||||
|
@ -74,5 +101,3 @@ msgstr "Configuration mise à jour avec succès."
|
|||
msgid "Current page"
|
||||
msgstr "Page courante"
|
||||
|
||||
msgid "source:"
|
||||
msgstr "source :"
|
Loading…
Reference in a new issue