{{tpl:ComListePageTitle encode_html="1"}}
-- {{tpl:ComListePaginationLinks}} -
- -
- {{tpl:lang Number of comments per page:}} {{tpl:ComListeNbCommentsPerPage}}
- {{tpl:lang Number of comments:}} {{tpl:ComListeNbComments}}
-
diff --git a/CHANGELOG b/CHANGELOG index 6330b44..2dbeb01 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,10 @@ +comListe 0.4 - 19-07-2015 - Pierre Van Glabeke +=========================================================== +* ajout breadcrumb +* 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 diff --git a/_define.php b/_define.php index 0a8f126..b410dff 100644 --- a/_define.php +++ b/_define.php @@ -16,12 +16,12 @@ $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.3.1', + /* Version */ '0.4', /* Properties */ array( 'permissions' => 'admin', 'type' => 'plugin', - 'dc_min' => '2.7', + 'dc_min' => '2.8', 'support' => 'http://lab.dotclear.org/wiki/plugin/comListe/fr', 'details' => 'http://plugins.dotaddict.org/dc2/details/comListe' ) diff --git a/_public.php b/_public.php index c5cb122..a298315 100644 --- a/_public.php +++ b/_public.php @@ -22,4 +22,15 @@ $core->tpl->addValue('ComListeNbComments',array('tplComListe','comListeNbComment $core->tpl->addValue('ComListeNbCommentsPerPage',array('tplComListe','comListeNbCommentsPerPage')); $core->tpl->addBlock('ComListeCommentsEntries',array('tplComListe','comListeCommentsEntries')); $core->tpl->addValue('ComListePaginationLinks',array('tplComListe','comListePaginationLinks')); -$core->tpl->addValue('ComListeOpenPostTitle',array('tplComListe','comListeOpenPostTitle')); \ No newline at end of file +$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'); + } + } +} \ No newline at end of file diff --git a/adapt-themes/Noviny2.comListe.html b/adapt-themes/Noviny2.comListe.html deleted file mode 100644 index bd505f0..0000000 --- a/adapt-themes/Noviny2.comListe.html +++ /dev/null @@ -1,91 +0,0 @@ - - -
- - - -- {{tpl:ComListePaginationLinks}} -
- -
- {{tpl:lang Number of comments per page:}} {{tpl:ComListeNbCommentsPerPage}}
- {{tpl:lang Number of comments:}} {{tpl:ComListeNbComments}}
-
-