Dotclear


Ignore:
Timestamp:
08/04/17 15:52:34 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add an option to hide the Help button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r3509 r3566  
    352352 
    353353          if (!$GLOBALS['__resources']['ctxhelp']) { 
    354                echo 
    355                '<p id="help-button"><a href="'.$core->adminurl->get("admin.help").'" class="outgoing" title="'. 
    356                __('Global help').'">'.__('Global help').'</a></p>'; 
     354               if (!$core->auth->user_prefs->interface->hidehelpbutton) { 
     355                    echo 
     356                    '<p id="help-button"><a href="'.$core->adminurl->get("admin.help").'" class="outgoing" title="'. 
     357                    __('Global help').'">'.__('Global help').'</a></p>'; 
     358               } 
    357359          } 
    358360 
     
    596598     { 
    597599          global $core; 
     600 
     601          if ($core->auth->user_prefs->interface->hidehelpbutton) { 
     602               return; 
     603          } 
     604 
    598605          $args = func_get_args(); 
    599  
    600606          $args = new ArrayObject($args); 
    601607 
Note: See TracChangeset for help on using the changeset viewer.

Sites map