Dotclear

Changeset 1933:839c2fe2196c


Ignore:
Timestamp:
09/17/13 21:03:30 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add access to global help when no contextual help is available, addresses #1244

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin/help.php

    r1839 r1933  
    9797echo $content_array['content']; 
    9898 
     99// Prevents global help link display 
     100$GLOBALS['__resources']['ctxhelp'] = true; 
     101 
    99102dcPage::close(); 
    100103?> 
  • inc/admin/lib.dc.page.php

    r1927 r1933  
    182182          global $core; 
    183183 
     184          if (!$GLOBALS['__resources']['ctxhelp']) { 
     185               // Displau global help link in any contextual help displayed 
     186               echo 
     187               '<p id="help-button"><a href="help.php">'.__('Need help?').'</a></p>'; 
     188          } 
     189 
    184190          $menu =& $GLOBALS['_menu']; 
    185191 
     
    438444          } 
    439445 
     446          // Set contextual help global flag 
     447          $GLOBALS['__resources']['ctxhelp'] = true; 
     448 
    440449          echo 
    441450          '<div id="help"><hr /><div class="help-content clear"><h3>'.__('Help about this page').'</h3>'. 
     
    516525 
    517526          self::jsVar('dotclear.msg.help', 
    518                __('Help about this page')). 
     527               __('Need help?')). 
    519528          self::jsVar('dotclear.msg.help_hide', 
    520529               __('Hide')). 
  • inc/admin/prepend.php

    r1793 r1933  
    216216     } 
    217217     unset($hfiles,$locales_root); 
     218     // Contextual help flag 
     219     $GLOBALS['__resources']['ctxhelp'] = false; 
    218220 
    219221     $core->auth->user_prefs->addWorkspace('interface'); 
  • locales/fr/main.po

    r1917 r1933  
    33903390msgid "Page %s / %s" 
    33913391msgstr "Page %s / %s" 
     3392 
     3393msgid "Need help?" 
     3394msgstr "Besoin d'aide ?" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map