|
@@ -2114,18 +2114,16 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead
|
|
|
$logouthtmltext = '';
|
|
|
if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
|
|
|
//$logouthtmltext=$appli.'<br>';
|
|
|
+ $stringforfirstkey = $langs->trans("KeyboardShortcut");
|
|
|
+ if ($conf->browser->name == 'chrome') {
|
|
|
+ $stringforfirstkey .= ' ALT +';
|
|
|
+ } elseif ($conf->browser->name == 'firefox') {
|
|
|
+ $stringforfirstkey .= ' ALT + SHIFT +';
|
|
|
+ } else {
|
|
|
+ $stringforfirstkey .= ' CTL +';
|
|
|
+ }
|
|
|
if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http') {
|
|
|
$logouthtmltext .= $langs->trans("Logout").'<br>';
|
|
|
-
|
|
|
- $stringforfirstkey = $langs->trans("KeyboardShortcut");
|
|
|
- if ($conf->browser->name == 'chrome') {
|
|
|
- $stringforfirstkey .= ' ALT +';
|
|
|
- } elseif ($conf->browser->name == 'firefox') {
|
|
|
- $stringforfirstkey .= ' ALT + SHIFT +';
|
|
|
- } else {
|
|
|
- $stringforfirstkey .= ' CTL +';
|
|
|
- }
|
|
|
-
|
|
|
$logouttext .= '<a accesskey="l" href="'.DOL_URL_ROOT.'/user/logout.php?token='.newToken().'">';
|
|
|
$logouttext .= img_picto($langs->trans('Logout').' ('.$stringforfirstkey.' l)', 'sign-out', '', false, 0, 0, '', 'atoplogin valignmiddle');
|
|
|
$logouttext .= '</a>';
|