dolibarr 19.0.3
style.css.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
4 * Copyright (C) 2007-2017 Regis Houssin <regis.houssin@inodbox.com>
5 * Copyright (C) 2011 Philippe Grand <philippe.grand@atoo-net.com>
6 * Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
7 * Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
8 * Copyright (C) 2021-2023 Anthony Berton <anthony.berton@bb2a.fr>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <https://www.gnu.org/licenses/>.
22 */
23
29//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); // Not disabled because need to load personalized language
30//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); // Not disabled to increase speed. Language code is found on url.
31if (!defined('NOREQUIRESOC')) {
32 define('NOREQUIRESOC', '1');
33}
34//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // Not disabled because need to do translations
35if (!defined('NOCSRFCHECK')) {
36 define('NOCSRFCHECK', 1);
37}
38if (!defined('NOTOKENRENEWAL')) {
39 define('NOTOKENRENEWAL', 1);
40}
41if (!defined('NOLOGIN')) {
42 define('NOLOGIN', 1); // File must be accessed by logon page so without login.
43}
44//if (!defined('NOREQUIREMENU')) define('NOREQUIREMENU',1); // We load menu manager class (note that object loaded may have wrong content because NOLOGIN is set and some values depends on login)
45if (!defined('NOREQUIREHTML')) {
46 define('NOREQUIREHTML', 1);
47}
48if (!defined('NOREQUIREAJAX')) {
49 define('NOREQUIREAJAX', '1');
50}
51
52
53define('ISLOADEDBYSTEELSHEET', '1');
54
55
56require __DIR__.'/theme_vars.inc.php';
57if (defined('THEME_ONLY_CONSTANT')) {
58 return;
59}
60
61
62session_cache_limiter('public');
63
64require_once __DIR__.'/../../main.inc.php'; // __DIR__ allow this script to be included in custom themes
65require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
66
67// Load user to have $user->conf loaded (not done into main because of NOLOGIN constant defined)
68// and permission, so we can later calculate number of top menu ($nbtopmenuentries) according to user profile.
69if (empty($user->id) && !empty($_SESSION['dol_login'])) {
70 $user->fetch('', $_SESSION['dol_login'], '', 1);
71 $user->getrights();
72
73 // Reload menu now we have the good user (and we need the good menu to have ->showmenu('topnb') correct.
74 $menumanager = new MenuManager($db, empty($user->socid) ? 0 : 1);
75 $menumanager->loadMenu();
76}
77
78
79// Define css type
80top_httphead('text/css');
81// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
82if (empty($dolibarr_nocache)) {
83 header('Cache-Control: max-age=10800, public, must-revalidate');
84} else {
85 header('Cache-Control: no-cache');
86}
87
88if (GETPOST('theme', 'aZ09')) {
89 $conf->theme = GETPOST('theme', 'aZ09'); // If theme was forced on URL
90}
91if (GETPOST('lang', 'aZ09')) {
92 $langs->setDefaultLang(GETPOST('lang', 'aZ09')); // If language was forced on URL
93}
94if (GETPOSTISSET('THEME_DARKMODEENABLED')) {
95 $conf->global->THEME_DARKMODEENABLED = GETPOST('THEME_DARKMODEENABLED', 'int'); // If darkmode was forced on URL
96}
97
98$langs->load("main", 0, 1);
99$right = ($langs->trans("DIRECTION") == 'rtl' ? 'left' : 'right');
100$left = ($langs->trans("DIRECTION") == 'rtl' ? 'right' : 'left');
101
102$path = ''; // This value may be used in future for external module to overwrite theme
103$theme = 'eldy'; // Value of theme
104if (getDolGlobalString('MAIN_OVERWRITE_THEME_RES')) {
105 $path = '/' . getDolGlobalString('MAIN_OVERWRITE_THEME_RES');
106 $theme = $conf->global->MAIN_OVERWRITE_THEME_RES;
107}
108
109// Define image path files and other constants
110$fontlist = 'arial,tahoma,verdana,helvetica'; //$fontlist='helvetica, verdana, arial, sans-serif';
111//$fontlist='"open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;';
112$img_head = '';
113$img_button = dol_buildpath($path.'/theme/'.$theme.'/img/button_bg.png', 1);
114$dol_hide_topmenu = $conf->dol_hide_topmenu;
115$dol_hide_leftmenu = $conf->dol_hide_leftmenu;
116$dol_optimize_smallscreen = $conf->dol_optimize_smallscreen;
117$dol_no_mouse_hover = $conf->dol_no_mouse_hover;
118
119//$conf->global->THEME_ELDY_ENABLE_PERSONALIZED=0;
120//$user->conf->THEME_ELDY_ENABLE_PERSONALIZED=0;
121//var_dump($user->conf->THEME_ELDY_RGB);
122
123$useboldtitle = getDolGlobalInt('THEME_ELDY_USEBOLDTITLE');
124$userborderontable = getDolGlobalInt('THEME_ELDY_USEBORDERONTABLE');
125$borderwidth = 1;
126
127// Case of option always editable
128if (!isset($conf->global->THEME_ELDY_BACKBODY)) {
129 $conf->global->THEME_ELDY_BACKBODY = $colorbackbody;
130}
131if (!isset($conf->global->THEME_ELDY_TOPMENU_BACK1)) {
132 $conf->global->THEME_ELDY_TOPMENU_BACK1 = $colorbackhmenu1;
133}
134if (!isset($conf->global->THEME_ELDY_VERMENU_BACK1)) {
135 $conf->global->THEME_ELDY_VERMENU_BACK1 = $colorbackvmenu1;
136}
137if (!isset($conf->global->THEME_ELDY_BACKTITLE1)) {
138 $conf->global->THEME_ELDY_BACKTITLE1 = $colorbacktitle1;
139}
140if (!isset($conf->global->THEME_ELDY_USE_HOVER)) {
141 $conf->global->THEME_ELDY_USE_HOVER = $colorbacklinepairhover;
142}
143if (!isset($conf->global->THEME_ELDY_USE_CHECKED)) {
144 $conf->global->THEME_ELDY_USE_CHECKED = $colorbacklinepairchecked;
145}
146if (!isset($conf->global->THEME_ELDY_LINEBREAK)) {
147 $conf->global->THEME_ELDY_LINEBREAK = $colorbacklinebreak;
148}
149if (!isset($conf->global->THEME_ELDY_TEXTTITLENOTAB)) {
150 $conf->global->THEME_ELDY_TEXTTITLENOTAB = $colortexttitlenotab;
151}
152if (!isset($conf->global->THEME_ELDY_TEXTLINK)) {
153 $conf->global->THEME_ELDY_TEXTLINK = $colortextlink;
154}
155if (!isset($conf->global->THEME_ELDY_BTNACTION)) {
156 $conf->global->THEME_ELDY_BTNACTION = $butactionbg;
157}
158if (!isset($conf->global->THEME_ELDY_TEXTBTNACTION)) {
159 $conf->global->THEME_ELDY_TEXTBTNACTION = $textbutaction;
160}
161// Case of option editable only if option THEME_ELDY_ENABLE_PERSONALIZED is on
162if (!getDolGlobalString('THEME_ELDY_ENABLE_PERSONALIZED')) {
163 $conf->global->THEME_ELDY_BACKTABCARD1 = '255,255,255'; // card
164 $conf->global->THEME_ELDY_BACKTABACTIVE = '234,234,234';
165 $conf->global->THEME_ELDY_TEXT = '0,0,0';
166 $conf->global->THEME_ELDY_FONT_SIZE1 = $fontsize;
167 $conf->global->THEME_ELDY_FONT_SIZE2 = '0.75em';
168}
169
170// Case of option availables only if THEME_ELDY_ENABLE_PERSONALIZED is on
171$colorbackbody = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_BACKBODY') ? $colorbackbody : $conf->global->THEME_ELDY_BACKBODY) : (empty($user->conf->THEME_ELDY_BACKBODY) ? $colorbackbody : $user->conf->THEME_ELDY_BACKBODY);
172$colorbackhmenu1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TOPMENU_BACK1') ? $colorbackhmenu1 : $conf->global->THEME_ELDY_TOPMENU_BACK1) : (empty($user->conf->THEME_ELDY_TOPMENU_BACK1) ? $colorbackhmenu1 : $user->conf->THEME_ELDY_TOPMENU_BACK1);
173$colorbackvmenu1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_VERMENU_BACK1') ? $colorbackvmenu1 : $conf->global->THEME_ELDY_VERMENU_BACK1) : (empty($user->conf->THEME_ELDY_VERMENU_BACK1) ? $colorbackvmenu1 : $user->conf->THEME_ELDY_VERMENU_BACK1);
174$colortopbordertitle1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TOPBORDER_TITLE1') ? $colortopbordertitle1 : $conf->global->THEME_ELDY_TOPBORDER_TITLE1) : (empty($user->conf->THEME_ELDY_TOPBORDER_TITLE1) ? $colortopbordertitle1 : $user->conf->THEME_ELDY_TOPBORDER_TITLE1);
175$colorbacktitle1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_BACKTITLE1') ? $colorbacktitle1 : $conf->global->THEME_ELDY_BACKTITLE1) : (empty($user->conf->THEME_ELDY_BACKTITLE1) ? $colorbacktitle1 : $user->conf->THEME_ELDY_BACKTITLE1);
176$colorbacktabcard1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_BACKTABCARD1') ? $colorbacktabcard1 : $conf->global->THEME_ELDY_BACKTABCARD1) : (empty($user->conf->THEME_ELDY_BACKTABCARD1) ? $colorbacktabcard1 : $user->conf->THEME_ELDY_BACKTABCARD1);
177$colorbacktabactive = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_BACKTABACTIVE') ? $colorbacktabactive : $conf->global->THEME_ELDY_BACKTABACTIVE) : (empty($user->conf->THEME_ELDY_BACKTABACTIVE) ? $colorbacktabactive : $user->conf->THEME_ELDY_BACKTABACTIVE);
178$colorbacklineimpair1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_LINEIMPAIR1') ? $colorbacklineimpair1 : $conf->global->THEME_ELDY_LINEIMPAIR1) : (empty($user->conf->THEME_ELDY_LINEIMPAIR1) ? $colorbacklineimpair1 : $user->conf->THEME_ELDY_LINEIMPAIR1);
179$colorbacklineimpair2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_LINEIMPAIR2') ? $colorbacklineimpair2 : $conf->global->THEME_ELDY_LINEIMPAIR2) : (empty($user->conf->THEME_ELDY_LINEIMPAIR2) ? $colorbacklineimpair2 : $user->conf->THEME_ELDY_LINEIMPAIR2);
180$colorbacklinepair1 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_LINEPAIR1') ? $colorbacklinepair1 : $conf->global->THEME_ELDY_LINEPAIR1) : (empty($user->conf->THEME_ELDY_LINEPAIR1) ? $colorbacklinepair1 : $user->conf->THEME_ELDY_LINEPAIR1);
181$colorbacklinepair2 = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_LINEPAIR2') ? $colorbacklinepair2 : $conf->global->THEME_ELDY_LINEPAIR2) : (empty($user->conf->THEME_ELDY_LINEPAIR2) ? $colorbacklinepair2 : $user->conf->THEME_ELDY_LINEPAIR2);
182$colorbacklinebreak = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_LINEBREAK') ? $colorbacklinebreak : $conf->global->THEME_ELDY_LINEBREAK) : (empty($user->conf->THEME_ELDY_LINEBREAK) ? $colorbacklinebreak : $user->conf->THEME_ELDY_LINEBREAK);
183$colortexttitlenotab = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXTTITLENOTAB') ? $colortexttitlenotab : $conf->global->THEME_ELDY_TEXTTITLENOTAB) : (empty($user->conf->THEME_ELDY_TEXTTITLENOTAB) ? $colortexttitlenotab : $user->conf->THEME_ELDY_TEXTTITLENOTAB);
184$colortexttitle = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXTTITLE') ? $colortexttitle : $conf->global->THEME_ELDY_TEXTTITLE) : (empty($user->conf->THEME_ELDY_TEXTTITLE) ? $colortexttitle : $user->conf->THEME_ELDY_TEXTTITLE);
185$colortexttitlelink = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXTTITLELINK') ? $colortexttitlelink : $conf->global->THEME_ELDY_TEXTTITLELINK) : (empty($user->conf->THEME_ELDY_TEXTTITLELINK) ? $colortexttitlelink : $user->conf->THEME_ELDY_TEXTTITLELINK);
186$colortext = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXT') ? $colortext : $conf->global->THEME_ELDY_TEXT) : (empty($user->conf->THEME_ELDY_TEXT) ? $colortext : $user->conf->THEME_ELDY_TEXT);
187$colortextlink = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXTLINK') ? $colortextlink : $conf->global->THEME_ELDY_TEXTLINK) : (empty($user->conf->THEME_ELDY_TEXTLINK) ? $colortextlink : $user->conf->THEME_ELDY_TEXTLINK);
188$butactionbg = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_BTNACTION') ? $butactionbg : $conf->global->THEME_ELDY_BTNACTION) : (empty($user->conf->THEME_ELDY_BTNACTION) ? $butactionbg : $user->conf->THEME_ELDY_BTNACTION);
189$textbutaction = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_TEXTBTNACTION') ? $textbutaction : $conf->global->THEME_ELDY_TEXTBTNACTION) : (empty($user->conf->THEME_ELDY_TEXTBTNACTION) ? $textbutaction : $user->conf->THEME_ELDY_TEXTBTNACTION);
190$fontsize = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_FONT_SIZE1') ? $fontsize : $conf->global->THEME_ELDY_FONT_SIZE1) : (empty($user->conf->THEME_ELDY_FONT_SIZE1) ? $fontsize : $user->conf->THEME_ELDY_FONT_SIZE1);
191$fontsizesmaller = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_FONT_SIZE2') ? $fontsize : $conf->global->THEME_ELDY_FONT_SIZE2) : (empty($user->conf->THEME_ELDY_FONT_SIZE2) ? $fontsize : $user->conf->THEME_ELDY_FONT_SIZE2);
192$heightrow = empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED) ? (!getDolGlobalString('THEME_ELDY_USECOMOACTROW') ? '155%' : '300%') : (!getDolGlobalString('THEME_ELDY_USECOMOACTROW') ? '155%' : '300%');
193// Hover color
194$colorbacklinepairhover = ((!isset($conf->global->THEME_ELDY_USE_HOVER) || (string) $conf->global->THEME_ELDY_USE_HOVER === '255,255,255') ? '' : ($conf->global->THEME_ELDY_USE_HOVER === '1' ? 'e6edf0' : $conf->global->THEME_ELDY_USE_HOVER));
195$colorbacklinepairchecked = ((!isset($conf->global->THEME_ELDY_USE_CHECKED) || (string) $conf->global->THEME_ELDY_USE_CHECKED === '255,255,255') ? '' : ($conf->global->THEME_ELDY_USE_CHECKED === '1' ? 'e6edf0' : $conf->global->THEME_ELDY_USE_CHECKED));
196if (!empty($user->conf->THEME_ELDY_ENABLE_PERSONALIZED)) {
197 $colorbacklinepairhover = ((!isset($user->conf->THEME_ELDY_USE_HOVER) || $user->conf->THEME_ELDY_USE_HOVER === '0') ? '' : ($user->conf->THEME_ELDY_USE_HOVER === '1' ? 'e6edf0' : $user->conf->THEME_ELDY_USE_HOVER));
198 $colorbacklinepairchecked = ((!isset($user->conf->THEME_ELDY_USE_CHECKED) || $user->conf->THEME_ELDY_USE_CHECKED === '0') ? '' : ($user->conf->THEME_ELDY_USE_CHECKED === '1' ? 'e6edf0' : $user->conf->THEME_ELDY_USE_CHECKED));
199}
200
201
202// Set text color to black or white
203$colorbackhmenu1 = join(',', colorStringToArray($colorbackhmenu1)); // Normalize value to 'x,y,z'
204$tmppart = explode(',', $colorbackhmenu1);
205$tmpval = (!empty($tmppart[0]) ? $tmppart[0] : 0) + (!empty($tmppart[1]) ? $tmppart[1] : 0) + (!empty($tmppart[2]) ? $tmppart[2] : 0);
206if ($tmpval <= 460) {
207 $colortextbackhmenu = 'FFFFFF';
208} else {
209 $colortextbackhmenu = '000000';
210}
211
212$colorbackvmenu1 = join(',', colorStringToArray($colorbackvmenu1)); // Normalize value to 'x,y,z'
213$tmppart = explode(',', $colorbackvmenu1);
214$tmpval = (!empty($tmppart[0]) ? $tmppart[0] : 0) + (!empty($tmppart[1]) ? $tmppart[1] : 0) + (!empty($tmppart[2]) ? $tmppart[2] : 0);
215if ($tmpval <= 460) {
216 $colortextbackvmenu = 'FFFFFF';
217} else {
218 $colortextbackvmenu = '000000';
219}
220
221$colortopbordertitle1 = join(',', colorStringToArray($colortopbordertitle1)); // Normalize value to 'x,y,z'
222
223$colorbacktitle1 = join(',', colorStringToArray($colorbacktitle1)); // Normalize value to 'x,y,z'
224$tmppart = explode(',', $colorbacktitle1);
225if ($colortexttitle == '') {
226 $tmpval = (!empty($tmppart[0]) ? $tmppart[0] : 0) + (!empty($tmppart[1]) ? $tmppart[1] : 0) + (!empty($tmppart[2]) ? $tmppart[2] : 0);
227 if ($tmpval <= 460) {
228 $colortexttitle = 'FFFFFF';
229 $colorshadowtitle = '888888';
230 } else {
231 $colortexttitle = '000000';
232 $colorshadowtitle = 'FFFFFF';
233 }
234} else {
235 $colorshadowtitle = '888888';
236}
237
238$colorbacktabcard1 = join(',', colorStringToArray($colorbacktabcard1)); // Normalize value to 'x,y,z'
239$tmppart = explode(',', $colorbacktabcard1);
240$tmpval = (!empty($tmppart[0]) ? $tmppart[0] : 0) + (!empty($tmppart[1]) ? $tmppart[1] : 0) + (!empty($tmppart[2]) ? $tmppart[2] : 0);
241if ($tmpval <= 460) {
242 $colortextbacktab = 'FFFFFF';
243} else {
244 $colortextbacktab = '000000';
245}
246
247
248// Format color value to match expected format (may be 'FFFFFF' or '255,255,255')
249$colorbackhmenu1 = join(',', colorStringToArray($colorbackhmenu1));
250$colorbackvmenu1 = join(',', colorStringToArray($colorbackvmenu1));
251$colorbacktitle1 = join(',', colorStringToArray($colorbacktitle1));
252$colorbacktabcard1 = join(',', colorStringToArray($colorbacktabcard1));
253$colorbacktabactive = join(',', colorStringToArray($colorbacktabactive));
254$colorbacklineimpair1 = join(',', colorStringToArray($colorbacklineimpair1));
255$colorbacklineimpair2 = join(',', colorStringToArray($colorbacklineimpair2));
256$colorbacklinepair1 = join(',', colorStringToArray($colorbacklinepair1));
257$colorbacklinepair2 = join(',', colorStringToArray($colorbacklinepair2));
258if ($colorbacklinepairhover != '') {
259 $colorbacklinepairhover = join(',', colorStringToArray($colorbacklinepairhover));
260}
261if ($colorbacklinepairchecked != '') {
262 $colorbacklinepairchecked = join(',', colorStringToArray($colorbacklinepairchecked));
263}
264$colorbackbody = join(',', colorStringToArray($colorbackbody));
265$colortexttitlenotab = join(',', colorStringToArray($colortexttitlenotab));
266$colortexttitle = join(',', colorStringToArray($colortexttitle));
267$colortext = join(',', colorStringToArray($colortext));
268$colortextlink = join(',', colorStringToArray($colortextlink));
269
270$nbtopmenuentries = $menumanager->showmenu('topnb');
271$nbtopmenuentriesreal = $nbtopmenuentries;
272if ($conf->browser->layout == 'phone') {
273 $nbtopmenuentries = max($nbtopmenuentries, 10);
274}
275
276$minwidthtmenu = 66; /* minimum width for one top menu entry */
277$heightmenu = 50; /* height of top menu, part with image */
278$heightmenu2 = 49; /* height of top menu, part with login */
279$disableimages = 0;
280$maxwidthloginblock = 180;
281if (getDolGlobalInt('THEME_TOPMENU_DISABLE_IMAGE') == 1) {
282 $disableimages = 1;
283 $maxwidthloginblock = $maxwidthloginblock + 50;
284 $minwidthtmenu = 0;
285}
286
287if (getDolGlobalString('MAIN_USE_TOP_MENU_QUICKADD_DROPDOWN')) {
288 $maxwidthloginblock = $maxwidthloginblock + 55;
289}
290if (getDolGlobalString('MAIN_USE_TOP_MENU_SEARCH_DROPDOWN')) {
291 $maxwidthloginblock = $maxwidthloginblock + 55;
292}
293if (!empty($conf->bookmark->enabled)) {
294 $maxwidthloginblock = $maxwidthloginblock + 55;
295}
296
297
298print '/*'."\n";
299print 'colorbackbody='.$colorbackbody."\n";
300print 'colorbackvmenu1='.$colorbackvmenu1."\n";
301print 'colorbackhmenu1='.$colorbackhmenu1."\n";
302print 'colorbacktitle1='.$colorbacktitle1."\n";
303print 'colorbacklineimpair1='.$colorbacklineimpair1."\n";
304print 'colorbacklineimpair2='.$colorbacklineimpair2."\n";
305print 'colorbacklinepair1='.$colorbacklinepair1."\n";
306print 'colorbacklinepair2='.$colorbacklinepair2."\n";
307print 'colorbacklinepairhover='.$colorbacklinepairhover."\n";
308print 'colorbacklinepairchecked='.$colorbacklinepairchecked."\n";
309print '$colortexttitlenotab='.$colortexttitlenotab."\n";
310print '$colortexttitle='.$colortexttitle."\n";
311print '$colortext='.$colortext."\n";
312print '$colortextlink='.$colortextlink."\n";
313print '$colortextbackhmenu='.$colortextbackhmenu."\n";
314print '$colortextbackvmenu='.$colortextbackvmenu."\n";
315print 'dol_hide_topmenu='.$dol_hide_topmenu."\n";
316print 'dol_hide_leftmenu='.$dol_hide_leftmenu."\n";
317print 'dol_optimize_smallscreen='.$dol_optimize_smallscreen."\n";
318print 'dol_no_mouse_hover='.$dol_no_mouse_hover."\n";
319print 'dol_screenwidth='.(empty($_SESSION['dol_screenwidth']) ? '' : $_SESSION['dol_screenwidth'])."\n";
320print 'dol_screenheight='.(empty($_SESSION['dol_screenheight']) ? '' : $_SESSION['dol_screenheight'])."\n";
321print 'fontsize='.$fontsize."\n";
322print 'nbtopmenuentries='.$nbtopmenuentries."\n";
323print 'fontsizesmaller='.$fontsizesmaller."\n";
324print 'topMenuFontSize='.$topMenuFontSize."\n";
325print 'toolTipBgColor='.$toolTipBgColor."\n";
326print 'toolTipFontColor='.$toolTipFontColor."\n";
327print 'conf->global->THEME_SATURATE_RATIO='.(!getDolGlobalString('THEME_SATURATE_RATIO') ? '' : $conf->global->THEME_SATURATE_RATIO)." (must be between 0 and 1)\n";
328print '*/'."\n";
329
330
331// Include the global.inc.php that include the badges, btn, info-box, dropdown, progress...
332require __DIR__.'/global.inc.php';
333
334
335if (is_object($db)) {
336 $db->close();
337}
Class to manage menu Auguria.
loadMenu($forcemainmenu='', $forceleftmenu='')
Load this->tabMenu.
colorStringToArray($stringcolor, $colorifnotfound=array(88, 88, 88))
Convert a string RGB value ('FFFFFF', '255,255,255') into an array RGB array(255,255,...
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
conf($dolibarr_main_document_root)
Load conf file (file must exists)
Definition inc.php:403
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.