Prepare the hide left menu icon
This commit is contained in:
parent
3119d77565
commit
426454a67b
@ -51,16 +51,16 @@ function print_eldy_menu($db,$atarget,$type_user,&$tabMenu,&$menu,$noout=0)
|
||||
if (empty($noout)) print_start_menu_array();
|
||||
|
||||
// Show/Hide vertical menu
|
||||
if (GETPOST('testhidemenu') && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))
|
||||
if (GETPOST('testmenuhider') && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER))
|
||||
{
|
||||
$showmode=1;
|
||||
$classname = 'class="tmenu"';
|
||||
$idsel='home';
|
||||
$idsel='menu';
|
||||
|
||||
if (empty($noout)) print_start_menu_entry($idsel,$classname,$showmode);
|
||||
if (empty($noout)) print_text_menu_entry($langs->trans("XXX"), 1, '#', $id, $idsel, $classname, $atarget);
|
||||
if (empty($noout)) print_text_menu_entry('', 1, '#', $id, $idsel, $classname, $atarget);
|
||||
if (empty($noout)) print_end_menu_entry($showmode);
|
||||
$menu->add('#', $langs->trans("XXX"), 0, $showmode, $atarget, "xxx", '');
|
||||
$menu->add('#', '', 0, $showmode, $atarget, "xxx", '');
|
||||
}
|
||||
|
||||
// Home
|
||||
|
||||
@ -1036,7 +1036,8 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
|
||||
//if (! empty($conf->dol_use_jmobile)) $ext='version='.urlencode(DOL_VERSION);
|
||||
$ext='version='.urlencode(DOL_VERSION);
|
||||
if (GETPOST('version')) $ext='version='.GETPOST('version','int'); // usefull to force no cache on css/js
|
||||
|
||||
if (GETPOST('testmenuhider')) $ext='testmenuhider='.GETPOST('testmenuhider','int');
|
||||
|
||||
if (! defined('DISABLE_JQUERY') && ! $disablejs && $conf->use_javascript_ajax)
|
||||
{
|
||||
print '<!-- Includes CSS for JQuery (Ajax library) -->'."\n";
|
||||
|
||||
@ -5,9 +5,10 @@ Tutorial to create a new image for menu:
|
||||
2) With Gimp, open image and check there is a alpha channel. If not add one.
|
||||
3) Convert image into back and white (Menu Image - Mode - Grey levels).
|
||||
4) Use the degrade tool with option (Menu Tools - Paint - Degrade - CTRL+L):
|
||||
* Mode: Erase color (you can also try "Elear only")
|
||||
* Mode: Erase color (you can also try "Clear only")
|
||||
* Opacity: 50 +/-
|
||||
* Offset: 0
|
||||
* PP toward transparent
|
||||
* Shape: Linear
|
||||
* Select on image top of file and drag to bottom.
|
||||
Il est possible aussi d'augmenter la transparence globale depuis le calque.
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 296 B |
@ -1025,6 +1025,11 @@ div.mainmenu.members {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/members.png',1) ?>);
|
||||
}
|
||||
|
||||
div.mainmenu.menu {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/menu.png',1) ?>);
|
||||
top: 7px;
|
||||
}
|
||||
|
||||
div.mainmenu.products {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/products.png',1) ?>);
|
||||
}
|
||||
|
||||
BIN
htdocs/theme/md/img/menus/menu.png
Normal file
BIN
htdocs/theme/md/img/menus/menu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 296 B |
@ -1083,6 +1083,11 @@ div.mainmenu.members {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/members.png',1) ?>);
|
||||
}
|
||||
|
||||
div.mainmenu.menu {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/menu.png',1) ?>);
|
||||
top: 7px;
|
||||
}
|
||||
|
||||
div.mainmenu.products {
|
||||
background-image: url(<?php echo dol_buildpath($path.'/theme/'.$theme.'/img/menus/products.png',1) ?>);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user