Option to hide version
This commit is contained in:
parent
75da1bac69
commit
5231fbf1e3
@ -1390,7 +1390,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
|||||||
$logouttext='';
|
$logouttext='';
|
||||||
if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))
|
if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))
|
||||||
{
|
{
|
||||||
$logouthtmltext=$appli.'<br>';
|
//$logouthtmltext=$appli.'<br>';
|
||||||
if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http')
|
if ($_SESSION["dol_authmode"] != 'forceuser' && $_SESSION["dol_authmode"] != 'http')
|
||||||
{
|
{
|
||||||
$logouthtmltext.=$langs->trans("Logout").'<br>';
|
$logouthtmltext.=$langs->trans("Logout").'<br>';
|
||||||
@ -1467,8 +1467,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
|||||||
if ($helpbaseurl && $helppage)
|
if ($helpbaseurl && $helppage)
|
||||||
{
|
{
|
||||||
$text='';
|
$text='';
|
||||||
$title='';
|
$title=$appli.'<br>';
|
||||||
//$text.='<div id="blockvmenuhelpwiki" class="blockvmenuhelp">';
|
|
||||||
$title.=$langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage': 'GoToHelpPage');
|
$title.=$langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage': 'GoToHelpPage');
|
||||||
if ($mode == 'wiki') $title.=' - '.$langs->trans("PageWiki").' "'.dol_escape_htmltag(strtr($helppage,'_',' ')).'"';
|
if ($mode == 'wiki') $title.=' - '.$langs->trans("PageWiki").' "'.dol_escape_htmltag(strtr($helppage,'_',' ')).'"';
|
||||||
$text.='<a class="help" target="_blank" href="';
|
$text.='<a class="help" target="_blank" href="';
|
||||||
@ -1631,7 +1630,9 @@ function left_menu($menu_array_before, $helppagename='', $notused='', $menu_arra
|
|||||||
print '<div id="blockvmenuhelp" class="blockvmenuhelp">'."\n";
|
print '<div id="blockvmenuhelp" class="blockvmenuhelp">'."\n";
|
||||||
|
|
||||||
// Version
|
// Version
|
||||||
$doliurl='http://www.dolibarr.org';
|
if (empty($conf->global->MAIN_HIDE_VERSION)) // Version is already on help picto and on login page.
|
||||||
|
{
|
||||||
|
$doliurl='https://www.dolibarr.org';
|
||||||
//local communities
|
//local communities
|
||||||
if (preg_match('/fr/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.fr';
|
if (preg_match('/fr/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.fr';
|
||||||
if (preg_match('/es/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.es';
|
if (preg_match('/es/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.es';
|
||||||
@ -1657,6 +1658,7 @@ function left_menu($menu_array_before, $helppagename='', $notused='', $menu_arra
|
|||||||
if ($doliurl) print '</a>';
|
if ($doliurl) print '</a>';
|
||||||
else print '</span>';
|
else print '</span>';
|
||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
|
}
|
||||||
|
|
||||||
// Link to bugtrack
|
// Link to bugtrack
|
||||||
if (! empty($conf->global->MAIN_BUGTRACK_ENABLELINK))
|
if (! empty($conf->global->MAIN_BUGTRACK_ENABLELINK))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user