Changeset 945:a373e04f8ac3 for plugins/widgets/_widgets_functions.php
- Timestamp:
- 10/31/12 10:13:50 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/_widgets_functions.php
r905 r945 18 18 global $core; 19 19 20 if (($w->homeonly == 1 && $core->url->type != 'default') || 21 ($w->homeonly == 2 && $core->url->type == 'default')) { 22 return; 23 } 24 20 25 $value = isset($GLOBALS['_search']) ? html::escapeHTML($GLOBALS['_search']) : ''; 21 26 … … 36 41 global $core; 37 42 43 if (($w->homeonly == 1 && $core->url->type != 'default') || 44 ($w->homeonly == 2 && $core->url->type == 'default')) { 45 return; 46 } 47 38 48 $res = 39 49 '<div id="topnav"'.($w->class ? ' class="'.html::escapeHTML($w->class).'"' : '').'>'. … … 62 72 global $core, $_ctx; 63 73 74 if (($w->homeonly == 1 && $core->url->type != 'default') || 75 ($w->homeonly == 2 && $core->url->type == 'default')) { 76 return; 77 } 78 64 79 $rs = $core->blog->getCategories(array('post_type'=>'post')); 65 80 if ($rs->isEmpty()) { … … 111 126 global $core; 112 127 113 if ($w->homeonly && $core->url->type != 'default') { 128 if (($w->homeonly == 1 && $core->url->type != 'default') || 129 ($w->homeonly == 2 && $core->url->type == 'default')) { 114 130 return; 115 131 } … … 145 161 global $core, $_ctx; 146 162 147 if ($w->homeonly && $core->url->type != 'default' && $core->url->type != 'lang') { 163 if (($w->homeonly == 1 && $core->url->type != 'default' && $core->url->type != 'lang') || 164 ($w->homeonly == 2 && ($core->url->type == 'default' || $core->url->type == 'lang'))) { 148 165 return; 149 166 } … … 185 202 global $core; 186 203 187 if ($w->homeonly && $core->url->type != 'default') { 204 if (($w->homeonly == 1 && $core->url->type != 'default') || 205 ($w->homeonly == 2 && $core->url->type == 'default')) { 188 206 return; 189 207 } … … 228 246 global $core; 229 247 230 if ($w->homeonly && $core->url->type != 'default') { 248 if (($w->homeonly == 1 && $core->url->type != 'default') || 249 ($w->homeonly == 2 && $core->url->type == 'default')) { 231 250 return; 232 251 } … … 278 297 global $core; 279 298 280 if ($w->homeonly && $core->url->type != 'default') { 299 if (($w->homeonly == 1 && $core->url->type != 'default') || 300 ($w->homeonly == 2 && $core->url->type == 'default')) { 281 301 return; 282 302 } … … 295 315 global $core; 296 316 297 if ($w->homeonly && $core->url->type != 'default') { 317 if (($w->homeonly == 1 && $core->url->type != 'default') || 318 ($w->homeonly == 2 && $core->url->type == 'default')) { 298 319 return; 299 320 } … … 347 368 global $core; 348 369 349 if ($w->homeonly && $core->url->type != 'default') { 370 if (($w->homeonly == 1 && $core->url->type != 'default') || 371 ($w->homeonly == 2 && $core->url->type == 'default')) { 350 372 return; 351 373 }
Note: See TracChangeset
for help on using the changeset viewer.