26if (!defined(
'NOREQUIRESOC')) {
27 define(
'NOREQUIRESOC',
'1');
30if (!defined(
'NOCSRFCHECK')) {
31 define(
'NOCSRFCHECK', 1);
33if (!defined(
'NOTOKENRENEWAL')) {
34 define(
'NOTOKENRENEWAL', 1);
36if (!defined(
'NOLOGIN')) {
39if (!defined(
'NOREQUIREHTML')) {
40 define(
'NOREQUIREHTML', 1);
42if (!defined(
'NOREQUIREAJAX')) {
43 define(
'NOREQUIREAJAX',
'1');
46session_cache_limiter(
'public');
48require_once __DIR__.
'/../../webportal.main.inc.php';
53header(
"Content-Type: text/css");
54header(
"X-Content-Type-Options: nosniff");
55header(
"X-Frame-Options: SAMEORIGIN");
59 header(
'Cache-Control: max-age=10800, public, must-revalidate');
67[data-theme=
"custom"], :root{
68 --primary-color-hue: <?php print $webPortalTheme->primaryColorHsl[
'h']; ?>;
69 --primary-color-saturation: <?php print $webPortalTheme->primaryColorHsl[
's']; ?>%;
70 --primary-color-lightness: <?php print $webPortalTheme->primaryColorHsl[
'l']; ?>%;
71 --banner-background: url(<?php print !empty($webPortalTheme->bannerBackground) ? $webPortalTheme->bannerBackground :
'../img/banner.svg' ?>);
76 if (!empty($webPortalTheme->loginBackground)) {
77 print
'--login-background: rgba(0, 0, 0, 0.4) url("'.$webPortalTheme->loginBackground.
'");'.
"\n";
80 if (!empty($webPortalTheme->loginLogoUrl)) {
81 print
'--login-logo: url("'.$webPortalTheme->loginLogoUrl.
'"); /* for relative path, must be relative to the css file or use full url starting by http:// */'.
"\n";
87print
'/* Here, the content of the common custom CSS defined into Home - Setup - Display - CSS'.
"*/\n";
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.