Changeset 3213
- Timestamp:
- 10/13/13 12:28:41 (9 years ago)
- Location:
- plugins/comListe
- Files:
-
- 10 added
- 3 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/comListe/_admin.php
r2487 r3213 16 16 if (!defined('DC_CONTEXT_ADMIN')) { return; } 17 17 18 $_menu[' Plugins']->addItem(__('ComListe'),'plugin.php?p=comListe','index.php?pf=comListe/icon.png',18 $_menu['Blog']->addItem(__('ComListe'),'plugin.php?p=comListe','index.php?pf=comListe/icon.png', 19 19 preg_match('/plugin.php\?p=comListe(&.*)?$/',$_SERVER['REQUEST_URI']), 20 20 $core->auth->check('admin',$core->blog->id)); -
plugins/comListe/_define.php
r2488 r3213 17 17 /* Description*/ "Plugin for printing comments list", 18 18 /* Author */ "Benoit de Marne", 19 /* Version */ '0.1. 8',19 /* Version */ '0.1.9', 20 20 /* Permissions */ 'admin' 21 21 ); -
plugins/comListe/_widgets.php
r2487 r3213 22 22 $w->comListe->setting('title',__('Title:'),__('ComListe')); 23 23 $w->comListe->setting('link_title',__('Link title:'),__('List of comments')); 24 $w->comListe->setting('homeonly',__('Home page only'),0,'check'); 24 $w->comListe->setting('homeonly',__('Display on:'),0,'combo', 25 array( 26 __('All pages') => 0, 27 __('Home page only') => 1, 28 __('Except on home page') => 2 29 ) 30 ); 31 $w->comListe->setting('content_only',__('Content only'),0,'check'); 32 $w->comListe->setting('class',__('CSS class:'),''); 25 33 } 26 34 } -
plugins/comListe/default-templates/comListe.html
r2487 r3213 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="MSSmartTagsPreventParsing" content="TRUE" />7 6 <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" /> 8 7 … … 10 9 <meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 11 10 <meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" /> 11 <meta name="date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 12 12 13 13 <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> … … 16 16 <meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" /> 17 17 <meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> 18 <meta name="dc.date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> 18 19 <meta name="dc.type" content="text" /> 19 20 <meta name="dc.format" content="text/html" /> … … 46 47 {{tpl:lang On}} {{tpl:CommentDate}}, {{tpl:CommentTime}}, 47 48 {{tpl:lang by}} {{tpl:CommentAuthorLink}} 48 <br />({{tpl:lang source }}:{{tpl:CommentEntryTitle}})49 <br />({{tpl:lang source:}} {{tpl:CommentEntryTitle}}) 49 50 </dt> 50 51 <dd class="{{tpl:CommentIfMe}} {{tpl:CommentIfOdd}} {{tpl:CommentIfFirst}}"> … … 52 53 {{tpl:SysBehavior behavior="publicCommentBeforeContent"}} 53 54 {{tpl:CommentContent}} 54 <a href="{{tpl:CommentPostURL}}#c{{tpl:CommentID}}">{{tpl:ComListeOpenPostTitle}} 55 <a href="{{tpl:CommentPostURL}}#c{{tpl:CommentID}}">{{tpl:ComListeOpenPostTitle}}...</a> 55 56 <!-- # --BEHAVIOR-- publicCommentAfterContent --> 56 57 {{tpl:SysBehavior behavior="publicCommentAfterContent"}} … … 73 74 </div> 74 75 75 76 76 <div id="sidebar"> 77 77 <div id="blognav"> -
plugins/comListe/inc/class.dc.comListe.php
r2488 r3213 313 313 } 314 314 315 if ($w->homeonly && $core->url->type != 'default') { 315 if (($w->homeonly == 1 && $core->url->type != 'default') || 316 ($w->homeonly == 2 && $core->url->type == 'default')) { 316 317 return; 317 318 } … … 321 322 322 323 $res = 323 '<div class="comliste">'.324 ($w->content_only ? '' : '<div class="comliste'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'). 324 325 ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 325 326 '<ul><li><a href="'.$core->blog->url.$core->url->getBase('comListe').'">'. 326 327 ($w->link_title ? html::escapeHTML($w->link_title) : __('List of comments')). 327 328 '</a></li></ul>'. 328 '</div>';329 ($w->content_only ? '' : '</div>'); 329 330 330 331 return $res; -
plugins/comListe/index.php
r2487 r3213 12 12 13 13 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 14 15 $page_title = __('ComListe'); 14 16 15 17 # Settings compatibility test … … 97 99 <!-- header --> 98 100 <head> 99 <title><?php echo __('ComListe'); ?></title>101 <title><?php echo $page_title; ?></title> 100 102 </head> 101 103 … … 104 106 105 107 <?php 108 echo dcPage::breadcrumb( 109 array( 110 html::escapeHTML($core->blog->name) => '', 111 '<span class="page-title">'.$page_title.'</span>' => '' 112 )); 113 106 114 if (!empty($_GET['saveconfig'])) { 107 echo '<p class="message">'.__('Settings have been successfully updated.').'</p>';115 dcPage::success(__('Settings have been successfully updated.')); 108 116 } 109 117 ?> 110 111 <h2><?php echo html::escapeHTML($core->blog->name); ?> > <?php echo __('ComListe'); ?></h2>112 118 113 119 <?php … … 121 127 echo 122 128 '<form method="post" action="plugin.php">'. 123 '< fieldset><legend>'. __('Plugin activation').'</legend>'.129 '<div class="fieldset"><h4>'. __('Plugin activation').'</h4>'. 124 130 '<p class="field">'. 131 '<label class="classic" for="comliste_enable">'. 125 132 form::checkbox('comliste_enable', 1, $comliste_enable). 126 '<label class=" classic" for="active">'.__('Enable comListe').'</label></p>'.127 '</ fieldset>'.128 '< fieldset><legend>'. __('General options').'</legend>'.133 __('Enable comListe').'</label></p>'. 134 '</div>'. 135 '<div class="fieldset"><h4>'. __('General options').'</h4>'. 129 136 '<p><label class="classic">'. __('Title page').' : '. 130 137 form::field('comliste_page_title', 30,256, $comliste_page_title). … … 136 143 form::combo('comliste_comments_order', $order_combo, $comliste_comments_order). 137 144 '</label></p>'. 138 '</ fieldset>'.145 '</div>'. 139 146 '<p><input type="submit" value="'.__('Save configuration').'" onclick="affinfo(\''.__('Save configuration').'\')" /> '. 140 147 $core->formNonce(). -
plugins/comListe/locales/en/resources.php
r659 r3213 1 1 <?php 2 2 /* 3 --- BEGIN LICENSE BLOCK --- 4 This file is part of comListe, a plugin for printing comments list 3 --- BEGIN LICENSE BLOCK --- 4 This file is part of comListe, a plugin for printing comments list 5 5 in public part of DotClear2. 6 6 Copyright (C) 2009 Benoit de Marne, and contributors … … 22 22 */ 23 23 24 if (!isset($__resources['help']['comListe'])) 25 { 26 $__resources['help']['comListe'] = dirname(__FILE__).'/help/help.html'; 24 if (!isset($__resources['help']['comListe'])) { 25 $__resources['help']['comListe'] = dirname(__FILE__).'/help/comListe.html'; 27 26 } 27 28 28 ?> -
plugins/comListe/locales/fr/main.po
r2487 r3213 31 31 #: _widgets.php:23 32 32 msgid "Link title:" 33 msgstr "Titre du lien :"33 msgstr "Titre du lien :" 34 34 35 35 #: inc/class.dc.comListe.php:91 … … 47 47 #: index.php:123 48 48 msgid "Plugin activation" 49 msgstr "Activation d e l'extension"49 msgstr "Activation du plugin" 50 50 51 51 #: index.php:126 … … 78 78 79 79 msgid "Message:" 80 msgstr "Message :"80 msgstr "Message :" 81 81 82 82 msgid "Setting have been successfully updated." … … 86 86 msgstr "Page courante" 87 87 88 msgid "source:" 89 msgstr "source :" -
plugins/comListe/locales/fr/resources.php
r659 r3213 23 23 24 24 if (!isset($__resources['help']['comListe'])) { 25 $__resources['help']['comListe'] = dirname(__FILE__).'/help/ help.html';25 $__resources['help']['comListe'] = dirname(__FILE__).'/help/comListe.html'; 26 26 } 27 27
Note: See TracChangeset
for help on using the changeset viewer.