Dotclear

Changeset 3566:9effe026362c


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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/preferences.php

    r3560 r3566  
    4646$user_ui_enhanceduploader = $core->auth->user_prefs->interface->enhanceduploader; 
    4747$user_ui_hidemoreinfo = $core->auth->user_prefs->interface->hidemoreinfo; 
     48$user_ui_hidehelpbutton = $core->auth->user_prefs->interface->hidehelpbutton; 
    4849$user_ui_htmlfontsize = $core->auth->user_prefs->interface->htmlfontsize; 
    4950$user_ui_dynfontsize = $core->auth->user_prefs->interface->dynfontsize; 
     
    245246          $core->auth->user_prefs->interface->put('enhanceduploader',!empty($_POST['user_ui_enhanceduploader']),'boolean'); 
    246247          $core->auth->user_prefs->interface->put('hidemoreinfo',!empty($_POST['user_ui_hidemoreinfo']),'boolean'); 
     248          $core->auth->user_prefs->interface->put('hidehelpbutton',!empty($_POST['user_ui_hidehelpbutton']),'boolean'); 
    247249          $core->auth->user_prefs->interface->put('htmlfontsize',$_POST['user_ui_htmlfontsize'],'string'); 
    248250          $core->auth->user_prefs->interface->put('dynfontsize',!empty($_POST['user_ui_dynfontsize']),'boolean'); 
     
    524526__('Hide all secondary information and notes').'</label></p>'. 
    525527 
     528'<p><label for="user_ui_hidehelpbutton" class="classic">'. 
     529form::checkbox('user_ui_hidehelpbutton',1,$user_ui_hidehelpbutton).' '. 
     530__('Hide help button').'</label></p>'. 
     531 
    526532'<p><label for="user_ui_htmlfontsize" class="classic">'.__('Font size:').'</label>'.' '. 
    527533form::combo('user_ui_htmlfontsize',$htmlfontsize_combo,$user_ui_htmlfontsize).'</p>'. 
  • 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 
  • locales/fr/main.po

    r3557 r3566  
    21952195msgstr "Cacher les informations secondaires et les notes" 
    21962196 
     2197msgid "Hide help button" 
     2198msgstr "Cacher le bouton d'aide" 
     2199 
    21972200msgid "Font size:" 
    21982201msgstr "Taille de police de caractère :" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map