Dotclear


Ignore:
Timestamp:
11/13/14 15:24:23 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add "offline" option on widgets, closes #1945

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/_widgets_functions.php

    r2668 r2778  
    1919          global $core; 
    2020 
     21          if ($w->offline) 
     22               return; 
     23 
    2124          if (($w->homeonly == 1 && $core->url->type != 'default') || 
    2225               ($w->homeonly == 2 && $core->url->type == 'default')) { 
     
    4043          global $core; 
    4144 
     45          if ($w->offline) 
     46               return; 
     47 
    4248          if (($w->homeonly == 1 && $core->url->type != 'default') || 
    4349               ($w->homeonly == 2 && $core->url->type == 'default')) { 
     
    6975          global $core, $_ctx; 
    7076 
     77          if ($w->offline) 
     78               return; 
     79 
    7180          if (($w->homeonly == 1 && $core->url->type != 'default') || 
    7281               ($w->homeonly == 2 && $core->url->type == 'default')) { 
     
    120129     { 
    121130          global $core, $_ctx; 
     131 
     132          if ($w->offline) 
     133               return; 
    122134 
    123135          if (($w->homeonly == 1 && $core->url->type != 'default') || 
     
    158170     { 
    159171          global $core, $_ctx; 
     172 
     173          if ($w->offline) 
     174               return; 
    160175 
    161176          if (($w->homeonly == 1 && $core->url->type != 'default' && $core->url->type != 'lang') || 
     
    199214          global $core; 
    200215 
     216          if ($w->offline) 
     217               return; 
     218 
    201219          if (($w->homeonly == 1 && $core->url->type != 'default') || 
    202220               ($w->homeonly == 2 && $core->url->type == 'default')) { 
     
    236254     public static function feed($w) 
    237255     { 
     256          global $core; 
     257 
    238258          if (!$w->url) { 
    239259               return; 
    240260          } 
    241261 
    242           global $core; 
     262          if ($w->offline) 
     263               return; 
    243264 
    244265          if (($w->homeonly == 1 && $core->url->type != 'default') || 
     
    292313          global $core; 
    293314 
     315          if ($w->offline) 
     316               return; 
     317 
    294318          if (($w->homeonly == 1 && $core->url->type != 'default') || 
    295319               ($w->homeonly == 2 && $core->url->type == 'default')) { 
     
    305329     { 
    306330          global $core, $_ctx; 
     331 
     332          if ($w->offline) 
     333               return; 
    307334 
    308335          if (($w->homeonly == 1 && $core->url->type != 'default') || 
     
    362389          global $core; 
    363390 
     391          if ($w->offline) 
     392               return; 
     393 
    364394          if (($w->homeonly == 1 && $core->url->type != 'default') || 
    365395               ($w->homeonly == 2 && $core->url->type == 'default')) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map