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:ComListePageTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf> - - - - - - {{tpl:lang page}} {{tpl:PaginationCurrent}}" /> - - - - - - - - - - {{tpl:include src="_head.html"}} - - - -
-{{tpl:include src="_top.html"}} - -
- -
-
-
-

{{tpl:ComListePageTitle encode_html="1"}}

-
-
-
- - -
- -
- {{tpl:CommentDate format="%e"}} - {{tpl:CommentDate format="%b"}} - {{tpl:CommentDate format="%Y"}} - {{tpl:CommentDate format="%H:%M"}} - -
- -
- - {{tpl:SysBehavior behavior="publicCommentBeforeContent"}} - {{tpl:CommentContent}} - - {{tpl:SysBehavior behavior="publicCommentAfterContent"}} - {{tpl:CommentAuthorLink}} - ({{tpl:lang source:}} {{tpl:CommentEntryTitle}}) -
- -
- -
-
-
-

- {{tpl:ComListePaginationLinks}} -

- - -
-
- - - -
- -{{tpl:include src="_footer.html"}} -
- - \ No newline at end of file diff --git a/default-templates/mustek/comListe.html b/default-templates/mustek/comListe.html index beff411..837ad44 100644 --- a/default-templates/mustek/comListe.html +++ b/default-templates/mustek/comListe.html @@ -1,38 +1,29 @@ - - - - - +{{tpl:extends parent="__layout.html"}} + {{tpl:ComListePageTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf> - - - + + + + + + - {{tpl:lang page}} {{tpl:PaginationCurrent}}" /> - - - - - - + + + + - {{tpl:include src="_head.html"}} - + - -
-{{tpl:include src="_top.html"}} - -
- -
-
+

{{tpl:ComListePageTitle encode_html="1"}}

+
@@ -66,22 +57,5 @@ {{tpl:lang Number of comments per page:}} {{tpl:ComListeNbCommentsPerPage}}
{{tpl:lang Number of comments:}} {{tpl:ComListeNbComments}}

-
-
- - -
- -{{tpl:include src="_footer.html"}} -
- - \ No newline at end of file + \ No newline at end of file