Dotclear

Changeset 3332


Ignore:
Timestamp:
01/19/15 17:47:15 (9 years ago)
Author:
brol
Message:

voir changelog

Location:
plugins/topWriter
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/topWriter/CHANGELOG

    r3257 r3332  
    22=========================================================== 
    33 * literal rank of writer depending of num of com 
     4 
     5topWriter 0.5 - 19-01-2015 - Pierre Van Glabeke 
     6=========================================================== 
     7 * Compatibilité dc2.7 
    48 
    59topWriter 0.4 - 2013-11-12 
  • plugins/topWriter/_define.php

    r3257 r3332  
    2020$this->registerModule( 
    2121     /* Name */ 
    22      "Top writer", 
     22     "topWriter", 
    2323     /* Description*/ 
    24      "Widgets to list users who write more posts or comments", 
     24     "Ranking of the most prolific writers and commentators", 
    2525     /* Author */ 
    26      "Jean-Christian Denis", 
     26     "Jean-Christian Denis, Pierre Van Glabeke", 
    2727     /* Version */ 
    28      '0.4', 
     28     '0.5', 
    2929     array( 
    3030          'permissions' => 'admin', 
    3131          'type' => 'plugin', 
    3232          'dc_min' => '2.6', 
    33           'support' => 'http://jcd.lv/q=topWriter', 
     33          'support' => 'http://lab.dotclear.org/wiki/plugin/topWriter', 
    3434          'details' => 'http://plugins.dotaddict.org/dc2/details/topWriter' 
    3535     ) 
  • plugins/topWriter/_widgets.php

    r3257 r3332  
    2929               array('topWriterWidget', 'topCom'), 
    3030               null, 
    31                __('List users who write more posts') 
     31               __('List users who write more comments') 
    3232          ); 
    3333          $w->topcom->setting( 
     
    7979          ); 
    8080          $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( 
    9281               'homeonly', 
    9382               __('Display on:'), 
    94                1, 
     83               0, 
    9584               'combo', 
    9685               array( 
     
    10089               ) 
    10190          ); 
     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'); 
    10294 
    10395          $w->create( 
     
    10698               array('topWriterWidget', 'topPost'), 
    10799               null, 
    108                __('List users who write more comments') 
     100               __('List users who write more posts') 
    109101          ); 
    110102          $w->toppost->setting( 
     
    149141          ); 
    150142          $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( 
    162143               'homeonly', 
    163144               __('Display on:'), 
    164                1, 
     145               0, 
    165146               'combo', 
    166147               array( 
     
    170151               ) 
    171152          ); 
     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'); 
    172156     } 
    173157 
     
    175159     { 
    176160          global $core; 
     161 
     162          if ($w->offline) 
     163               return; 
    177164 
    178165          if ($w->homeonly == 1 && $core->url->type != 'default' 
     
    256243          } 
    257244 
    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); 
    264250     } 
    265251      
     
    267253     { 
    268254          global $core; 
     255 
     256          if ($w->offline) 
     257               return; 
    269258 
    270259          if ($w->homeonly == 1 && $core->url->type != 'default' 
     
    338327          } 
    339328 
    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); 
    346334     } 
    347335 
  • plugins/topWriter/locales/fr/main.po

    r3257 r3332  
    1 # Language: Français 
    2 # Module: topWriter - 0.4 
    3 # Date: 2013-11-12 17:15:44 
    4 # Translated with translater 2013.05.11 
    5  
    61msgid "" 
    72msgstr "" 
     
    9792msgstr[1] "%s billets" 
    9893 
    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  
     94msgid "Rranking of the most prolific writers and/or commentators" 
     95msgstr "Classement des plus prolifiques rédacteurs et/ou commentateurs" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map