Dotclear


Ignore:
Timestamp:
11/10/14 14:14:12 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add activation setting for simple menu, fixes #1958

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/simpleMenu/_public.php

    r2667 r2773  
    2222     public static function simpleMenu($attr) 
    2323     { 
     24          global $core; 
     25 
     26          if (!(boolean) $core->blog->settings->system->simpleMenu_active) 
     27               return ''; 
     28 
    2429          $class = isset($attr['class']) ? trim($attr['class']) : ''; 
    2530          $id = isset($attr['id']) ? trim($attr['id']) : ''; 
     
    4247          global $core, $_ctx; 
    4348 
     49          if (!(boolean) $core->blog->settings->system->simpleMenu_active) 
     50               return; 
     51 
    4452          if (($w->homeonly == 1 && $core->url->type != 'default') || 
    4553               ($w->homeonly == 2 && $core->url->type == 'default')) { 
     
    6169 
    6270          $ret = ''; 
     71 
     72          if (!(boolean) $core->blog->settings->system->simpleMenu_active) 
     73               return $ret; 
    6374 
    6475          $menu = $GLOBALS['core']->blog->settings->system->get('simpleMenu'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map