Changeset 3332
- Timestamp:
- 01/19/15 17:47:15 (9 years ago)
- Location:
- plugins/topWriter
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/topWriter/CHANGELOG
r3257 r3332 2 2 =========================================================== 3 3 * literal rank of writer depending of num of com 4 5 topWriter 0.5 - 19-01-2015 - Pierre Van Glabeke 6 =========================================================== 7 * Compatibilité dc2.7 4 8 5 9 topWriter 0.4 - 2013-11-12 -
plugins/topWriter/_define.php
r3257 r3332 20 20 $this->registerModule( 21 21 /* Name */ 22 " Top writer",22 "topWriter", 23 23 /* Description*/ 24 " Widgets to list users who write more posts or comments",24 "Ranking of the most prolific writers and commentators", 25 25 /* Author */ 26 "Jean-Christian Denis ",26 "Jean-Christian Denis, Pierre Van Glabeke", 27 27 /* Version */ 28 '0. 4',28 '0.5', 29 29 array( 30 30 'permissions' => 'admin', 31 31 'type' => 'plugin', 32 32 'dc_min' => '2.6', 33 'support' => 'http:// jcd.lv/q=topWriter',33 'support' => 'http://lab.dotclear.org/wiki/plugin/topWriter', 34 34 'details' => 'http://plugins.dotaddict.org/dc2/details/topWriter' 35 35 ) -
plugins/topWriter/_widgets.php
r3257 r3332 29 29 array('topWriterWidget', 'topCom'), 30 30 null, 31 __('List users who write more posts')31 __('List users who write more comments') 32 32 ); 33 33 $w->topcom->setting( … … 79 79 ); 80 80 $w->topcom->setting( 81 'content_only',82 __('Content only'),83 0,84 'check'85 );86 $w->topcom->setting(87 'class',88 __('CSS class:'),89 ''90 );91 $w->topcom->setting(92 81 'homeonly', 93 82 __('Display on:'), 94 1,83 0, 95 84 'combo', 96 85 array( … … 100 89 ) 101 90 ); 91 $w->topcom->setting('content_only',__('Content only'),0,'check'); 92 $w->topcom->setting('class',__('CSS class:'),''); 93 $w->topcom->setting('offline',__('Offline'),0,'check'); 102 94 103 95 $w->create( … … 106 98 array('topWriterWidget', 'topPost'), 107 99 null, 108 __('List users who write more comments')100 __('List users who write more posts') 109 101 ); 110 102 $w->toppost->setting( … … 149 141 ); 150 142 $w->toppost->setting( 151 'content_only',152 __('Content only'),153 0,154 'check'155 );156 $w->toppost->setting(157 'class',158 __('CSS class:'),159 ''160 );161 $w->toppost->setting(162 143 'homeonly', 163 144 __('Display on:'), 164 1,145 0, 165 146 'combo', 166 147 array( … … 170 151 ) 171 152 ); 153 $w->toppost->setting('content_only',__('Content only'),0,'check'); 154 $w->toppost->setting('class',__('CSS class:'),''); 155 $w->toppost->setting('offline',__('Offline'),0,'check'); 172 156 } 173 157 … … 175 159 { 176 160 global $core; 161 162 if ($w->offline) 163 return; 177 164 178 165 if ($w->homeonly == 1 && $core->url->type != 'default' … … 256 243 } 257 244 258 return 259 ($w->content_only ? '' : '<div class="topcomments'. 260 ($w->class ? ' '.html::escapeHTML($w->class) : '').'"">'). 261 ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 262 '<ul>'.$content.'</ul>'. 263 ($w->content_only ? '' : '</div>'); 245 $res = 246 ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 247 '<ul>'.$content.'</ul>'; 248 249 return $w->renderDiv($w->content_only,'topcomments '.$w->class,'',$res); 264 250 } 265 251 … … 267 253 { 268 254 global $core; 255 256 if ($w->offline) 257 return; 269 258 270 259 if ($w->homeonly == 1 && $core->url->type != 'default' … … 338 327 } 339 328 340 return 341 ($w->content_only ? '' : '<div class="topentries'. 342 ($w->class ? ' '.html::escapeHTML($w->class) : '').'"">'). 343 ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 344 '<ul>'.$content.'</ul>'. 345 ($w->content_only ? '' : '</div>'); 329 $res = 330 ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 331 '<ul>'.$content.'</ul>'; 332 333 return $w->renderDiv($w->content_only,'topentries '.$w->class,'',$res); 346 334 } 347 335 -
plugins/topWriter/locales/fr/main.po
r3257 r3332 1 # Language: Français2 # Module: topWriter - 0.43 # Date: 2013-11-12 17:15:444 # Translated with translater 2013.05.115 6 1 msgid "" 7 2 msgstr "" … … 97 92 msgstr[1] "%s billets" 98 93 99 msgid "Widgets to list users who write more posts or comments" 100 msgstr "Widgets de liste des utilisateurs qui ont écrit le plus de billets ou de commentaires" 101 94 msgid "Rranking of the most prolific writers and/or commentators" 95 msgstr "Classement des plus prolifiques rédacteurs et/ou commentateurs"
Note: See TracChangeset
for help on using the changeset viewer.