0.4
This commit is contained in:
parent
3278df3eb4
commit
76b4910673
@ -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
|
||||
|
@ -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'
|
||||
)
|
||||
|
13
_public.php
13
_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'));
|
||||
$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');
|
||||
}
|
||||
}
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{tpl:BlogLanguage}}">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" />
|
||||
|
||||
<title>{{tpl:ComListePageTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title>
|
||||
<meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
|
||||
<meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />
|
||||
<meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
|
||||
|
||||
<meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:ComListePageTitle}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" />
|
||||
<meta name="dc.language" content="{{tpl:BlogLanguage}}" />
|
||||
<meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />
|
||||
<meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
|
||||
<meta name="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
|
||||
<meta name="dc.type" content="text" />
|
||||
<meta name="dc.format" content="text/html" />
|
||||
|
||||
<link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" />
|
||||
|
||||
{{tpl:include src="_head.html"}}
|
||||
</head>
|
||||
|
||||
<body class="dc-comliste">
|
||||
<div id="page">
|
||||
{{tpl:include src="_top.html"}}
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="main" role="main">
|
||||
<div id="content">
|
||||
<div id="content-info">
|
||||
<h2>{{tpl:ComListePageTitle encode_html="1"}}</h2>
|
||||
</div>
|
||||
<div class="content-inner">
|
||||
<div id="comments">
|
||||
<tpl:ComListeCommentsEntries>
|
||||
<tpl:CommentsHeader>
|
||||
<dl>
|
||||
</tpl:CommentsHeader>
|
||||
<dt id="c{{tpl:CommentID}}" class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}">
|
||||
<span class="comment-date"><span class="date-d">{{tpl:CommentDate format="%e"}}</span>
|
||||
<span class="date-m">{{tpl:CommentDate format="%b"}}</span>
|
||||
<span class="date-y">{{tpl:CommentDate format="%Y"}}</span>
|
||||
<span class="date-h"><a href="#c{{tpl:CommentID}}">{{tpl:CommentDate format="%H:%M"}}</a></span>
|
||||
</span>
|
||||
</dt>
|
||||
|
||||
<dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}">
|
||||
<!-- # --BEHAVIOR-- publicCommentBeforeContent -->
|
||||
{{tpl:SysBehavior behavior="publicCommentBeforeContent"}}
|
||||
{{tpl:CommentContent}}
|
||||
<!-- # --BEHAVIOR-- publicCommentAfterContent -->
|
||||
{{tpl:SysBehavior behavior="publicCommentAfterContent"}}
|
||||
<cite>{{tpl:CommentAuthorLink}}</cite>
|
||||
({{tpl:lang source:}} <a href="{{tpl:CommentPostURL}}#c{{tpl:CommentID}}">{{tpl:CommentEntryTitle}}</a>)
|
||||
</dd>
|
||||
<tpl:CommentsFooter>
|
||||
</dl>
|
||||
</tpl:CommentsFooter>
|
||||
</tpl:ComListeCommentsEntries>
|
||||
</div>
|
||||
</div>
|
||||
<p class="pagination">
|
||||
{{tpl:ComListePaginationLinks}}
|
||||
</p>
|
||||
|
||||
<p class="post-info">
|
||||
{{tpl:lang Number of comments per page:}} {{tpl:ComListeNbCommentsPerPage}}<br />
|
||||
{{tpl:lang Number of comments:}} {{tpl:ComListeNbComments}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="sidebar" role="complementary">
|
||||
<div id="blognav">
|
||||
{{tpl:Widgets type="nav"}}
|
||||
</div> <!-- End #blognav -->
|
||||
|
||||
<div id="blogextra">
|
||||
{{tpl:Widgets type="extra"}}
|
||||
</div> <!-- End #blogextra -->
|
||||
</div>
|
||||
|
||||
</div> <!-- End #wrapper -->
|
||||
|
||||
{{tpl:include src="_footer.html"}}
|
||||
</div> <!-- End #page -->
|
||||
</body>
|
||||
</html>
|
@ -1,38 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{tpl:BlogLanguage}}">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" />
|
||||
{{tpl:extends parent="__layout.html"}}
|
||||
|
||||
<tpl:Block name="head-title">
|
||||
<title>{{tpl:ComListePageTitle encode_html="1"}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title>
|
||||
<meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
|
||||
<meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />
|
||||
<meta name="date" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
|
||||
</tpl:Block>
|
||||
|
||||
<tpl:Block name="meta-robots">
|
||||
<meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" />
|
||||
</tpl:Block>
|
||||
|
||||
<tpl:Block name="dc-entry">
|
||||
<meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:ComListePageTitle}} - {{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" />
|
||||
<meta name="dc.language" content="{{tpl:BlogLanguage}}" />
|
||||
<meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />
|
||||
<meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
|
||||
<meta name="dc.date" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
|
||||
<meta name="dc.type" content="text" />
|
||||
<meta name="dc.format" content="text/html" />
|
||||
<meta property="dc.language" content="{{tpl:BlogLanguage}}" />
|
||||
</tpl:Block>
|
||||
|
||||
<tpl:Block name="head-linkrel">
|
||||
<link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" />
|
||||
</tpl:Block>
|
||||
|
||||
{{tpl:include src="_head.html"}}
|
||||
</head>
|
||||
<tpl:Block name="body-tag"><body class="dc-comliste"></tpl:Block>
|
||||
|
||||
<body class="dc-comliste">
|
||||
<div id="page">
|
||||
{{tpl:include src="_top.html"}}
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="main" role="main">
|
||||
<div id="content">
|
||||
<tpl:Block name="main-content">
|
||||
<div id="content-info">
|
||||
<h2>{{tpl:ComListePageTitle encode_html="1"}}</h2>
|
||||
</div>
|
||||
|
||||
<div class="content-inner">
|
||||
<div id="comments">
|
||||
<tpl:ComListeCommentsEntries>
|
||||
@ -66,22 +57,5 @@
|
||||
{{tpl:lang Number of comments per page:}} {{tpl:ComListeNbCommentsPerPage}}<br />
|
||||
{{tpl:lang Number of comments:}} {{tpl:ComListeNbComments}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="sidebar" role="complementary">
|
||||
<div id="blognav">
|
||||
{{tpl:Widgets type="nav"}}
|
||||
</div> <!-- End #blognav -->
|
||||
|
||||
<div id="blogextra">
|
||||
{{tpl:Widgets type="extra"}}
|
||||
</div> <!-- End #blogextra -->
|
||||
</div>
|
||||
|
||||
</div> <!-- End #wrapper -->
|
||||
|
||||
{{tpl:include src="_footer.html"}}
|
||||
</div> <!-- End #page -->
|
||||
</body>
|
||||
</html>
|
||||
</tpl:Block>
|
Loading…
Reference in New Issue
Block a user