Changeset 2778:fe7e025273c4
- Timestamp:
- 11/13/14 15:24:23 (9 years ago)
- Branch:
- default
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
locales/fr/plugins.po
r2773 r2778 1986 1986 msgstr "Glisser les widgets ici pour les retirer du volet." 1987 1987 1988 msgid "Offline" 1989 msgstr "Hors ligne" 1990 1988 1991 msgid "From theme:" 1989 1992 msgstr "Du thème :" -
plugins/blogroll/_public.php
r2667 r2778 140 140 global $core; 141 141 142 if ($w->offline) 143 return; 144 142 145 if (($w->homeonly == 1 && $core->url->type != 'default') || 143 146 ($w->homeonly == 2 && $core->url->type == 'default')) { -
plugins/blogroll/_widgets.php
r2566 r2778 43 43 $w->links->setting('content_only',__('Content only'),0,'check'); 44 44 $w->links->setting('class',__('CSS class:'),''); 45 $w->links->setting('offline',__('Offline'),0,'check'); 45 46 } 46 47 -
plugins/pages/_public.php
r2771 r2778 243 243 global $core, $_ctx; 244 244 245 if ($w->offline) 246 return; 247 245 248 if (($w->homeonly == 1 && $core->url->type != 'default') || 246 249 ($w->homeonly == 2 && $core->url->type == 'default')) { -
plugins/pages/_widgets.php
r2671 r2778 40 40 $w->pages->setting('content_only',__('Content only'),0,'check'); 41 41 $w->pages->setting('class',__('CSS class:'),''); 42 $w->pages->setting('offline',__('Offline'),0,'check'); 42 43 } 43 44 -
plugins/simpleMenu/_public.php
r2773 r2778 48 48 49 49 if (!(boolean) $core->blog->settings->system->simpleMenu_active) 50 return; 51 52 if ($w->offline) 50 53 return; 51 54 -
plugins/simpleMenu/_widgets.php
r2566 r2778 29 29 $w->simplemenu->setting('content_only',__('Content only'),0,'check'); 30 30 $w->simplemenu->setting('class',__('CSS class:'),''); 31 $w->simplemenu->setting('offline',__('Offline'),0,'check'); 31 32 } 32 33 } -
plugins/tags/_public.php
r2667 r2778 236 236 global $core, $_ctx; 237 237 238 if ($w->offline) 239 return; 240 238 241 if (($w->homeonly == 1 && $core->url->type != 'default') || 239 242 ($w->homeonly == 2 && $core->url->type == 'default')) { -
plugins/tags/_widgets.php
r2566 r2778 38 38 $w->tags->setting('content_only',__('Content only'),0,'check'); 39 39 $w->tags->setting('class',__('CSS class:'),''); 40 $w->tags->setting('offline',__('Offline'),0,'check'); 40 41 } 41 42 -
plugins/widgets/_default_widgets.php
r2671 r2778 24 24 $__widgets->search->setting('content_only',__('Content only'),0,'check'); 25 25 $__widgets->search->setting('class',__('CSS class:'),''); 26 $__widgets->search->setting('offline',__('Offline'),0,'check'); 26 27 27 28 $__widgets->create('navigation',__('Navigation links'),array('defaultWidgets','navigation'),null,'List of navigation links'); … … 31 32 $__widgets->navigation->setting('content_only',__('Content only'),0,'check'); 32 33 $__widgets->navigation->setting('class',__('CSS class:'),''); 34 $__widgets->navigation->setting('offline',__('Offline'),0,'check'); 33 35 34 36 $__widgets->create('bestof',__('Selected entries'),array('defaultWidgets','bestof'),null,'List of selected entries'); … … 39 41 $__widgets->bestof->setting('content_only',__('Content only'),0,'check'); 40 42 $__widgets->bestof->setting('class',__('CSS class:'),''); 43 $__widgets->bestof->setting('offline',__('Offline'),0,'check'); 41 44 42 45 $__widgets->create('langs',__('Blog languages'),array('defaultWidgets','langs'),null,'List of available languages'); … … 46 49 $__widgets->langs->setting('content_only',__('Content only'),0,'check'); 47 50 $__widgets->langs->setting('class',__('CSS class:'),''); 51 $__widgets->langs->setting('offline',__('Offline'),0,'check'); 48 52 49 53 $__widgets->create('categories',__('List of categories'),array('defaultWidgets','categories'),null,'List of categories'); … … 56 60 $__widgets->categories->setting('content_only',__('Content only'),0,'check'); 57 61 $__widgets->categories->setting('class',__('CSS class:'),''); 62 $__widgets->categories->setting('offline',__('Offline'),0,'check'); 58 63 59 64 $__widgets->create('subscribe',__('Subscribe links'),array('defaultWidgets','subscribe'),null,'Feed subscription links (RSS or Atom)'); … … 64 69 $__widgets->subscribe->setting('content_only',__('Content only'),0,'check'); 65 70 $__widgets->subscribe->setting('class',__('CSS class:'),''); 71 $__widgets->subscribe->setting('offline',__('Offline'),0,'check'); 66 72 67 73 $__widgets->create('feed',__('Feed reader'),array('defaultWidgets','feed'),null,'List of last entries from feed (RSS or Atom)'); … … 73 79 $__widgets->feed->setting('content_only',__('Content only'),0,'check'); 74 80 $__widgets->feed->setting('class',__('CSS class:'),''); 81 $__widgets->feed->setting('offline',__('Offline'),0,'check'); 75 82 76 83 $__widgets->create('text',__('Text'),array('defaultWidgets','text'),null,'Simple text'); … … 81 88 $__widgets->text->setting('content_only',__('Content only'),0,'check'); 82 89 $__widgets->text->setting('class',__('CSS class:'),''); 90 $__widgets->text->setting('offline',__('Offline'),0,'check'); 83 91 84 92 $__widgets->create('lastposts',__('Last entries'),array('defaultWidgets','lastposts'),null,'List of last entries published'); … … 99 107 $__widgets->lastposts->setting('content_only',__('Content only'),0,'check'); 100 108 $__widgets->lastposts->setting('class',__('CSS class:'),''); 109 $__widgets->lastposts->setting('offline',__('Offline'),0,'check'); 101 110 102 111 $__widgets->create('lastcomments',__('Last comments'),array('defaultWidgets','lastcomments'),null,'List of last comments published'); … … 107 116 $__widgets->lastcomments->setting('content_only',__('Content only'),0,'check'); 108 117 $__widgets->lastcomments->setting('class',__('CSS class:'),''); 118 $__widgets->lastcomments->setting('offline',__('Offline'),0,'check'); 109 119 110 120 # --BEHAVIOR-- initWidgets -
plugins/widgets/_define.php
r2662 r2778 16 16 /* Description*/ "Widgets for your blog sidebars", 17 17 /* Author */ "Olivier Meunier & Dotclear Team", 18 /* Version */ '3. 2',18 /* Version */ '3.3', 19 19 array( 20 20 'permissions' => 'admin', -
plugins/widgets/_widgets_functions.php
r2668 r2778 19 19 global $core; 20 20 21 if ($w->offline) 22 return; 23 21 24 if (($w->homeonly == 1 && $core->url->type != 'default') || 22 25 ($w->homeonly == 2 && $core->url->type == 'default')) { … … 40 43 global $core; 41 44 45 if ($w->offline) 46 return; 47 42 48 if (($w->homeonly == 1 && $core->url->type != 'default') || 43 49 ($w->homeonly == 2 && $core->url->type == 'default')) { … … 69 75 global $core, $_ctx; 70 76 77 if ($w->offline) 78 return; 79 71 80 if (($w->homeonly == 1 && $core->url->type != 'default') || 72 81 ($w->homeonly == 2 && $core->url->type == 'default')) { … … 120 129 { 121 130 global $core, $_ctx; 131 132 if ($w->offline) 133 return; 122 134 123 135 if (($w->homeonly == 1 && $core->url->type != 'default') || … … 158 170 { 159 171 global $core, $_ctx; 172 173 if ($w->offline) 174 return; 160 175 161 176 if (($w->homeonly == 1 && $core->url->type != 'default' && $core->url->type != 'lang') || … … 199 214 global $core; 200 215 216 if ($w->offline) 217 return; 218 201 219 if (($w->homeonly == 1 && $core->url->type != 'default') || 202 220 ($w->homeonly == 2 && $core->url->type == 'default')) { … … 236 254 public static function feed($w) 237 255 { 256 global $core; 257 238 258 if (!$w->url) { 239 259 return; 240 260 } 241 261 242 global $core; 262 if ($w->offline) 263 return; 243 264 244 265 if (($w->homeonly == 1 && $core->url->type != 'default') || … … 292 313 global $core; 293 314 315 if ($w->offline) 316 return; 317 294 318 if (($w->homeonly == 1 && $core->url->type != 'default') || 295 319 ($w->homeonly == 2 && $core->url->type == 'default')) { … … 305 329 { 306 330 global $core, $_ctx; 331 332 if ($w->offline) 333 return; 307 334 308 335 if (($w->homeonly == 1 && $core->url->type != 'default') || … … 362 389 global $core; 363 390 391 if ($w->offline) 392 return; 393 364 394 if (($w->homeonly == 1 && $core->url->type != 'default') || 365 395 ($w->homeonly == 2 && $core->url->type == 'default')) { -
plugins/widgets/index.php
r2702 r2778 368 368 $altUp = $i == 0 ? ' alt=""' : ' alt="'.__('Up the widget').'"'; 369 369 $altDown = $i == count($widgets->elements())-1 ? ' alt=""' : ' alt="'.__('Down the widget').'"'; 370 370 371 371 $iname = 'w['.$pr.']['.$i.']'; 372 372
Note: See TracChangeset
for help on using the changeset viewer.