diff --git a/htdocs/public/webportal/css/themes/custom.css.php b/htdocs/public/webportal/css/themes/custom.css.php index 0e3388c80da..8408599678a 100644 --- a/htdocs/public/webportal/css/themes/custom.css.php +++ b/htdocs/public/webportal/css/themes/custom.css.php @@ -42,24 +42,23 @@ $webPortalTheme = new WebPortalTheme(); ?> [data-theme="custom"], :root{ - --primary-color-hue : primaryColorHsl['h']; ?>; - --primary-color-saturation : primaryColorHsl['s']; ?>%; - --primary-color-lightness : primaryColorHsl['l']; ?>%; - --banner-background : url(bannerBackground) ? $webPortalTheme->bannerBackground : '../img/banner.svg' ?>); + --primary-color-hue: primaryColorHsl['h']; ?>; + --primary-color-saturation: primaryColorHsl['s']; ?>%; + --primary-color-lightness: primaryColorHsl['l']; ?>%; + --banner-background: url(bannerBackground) ? $webPortalTheme->bannerBackground : '../img/banner.svg' ?>); } .login-page { - loginBackground)){ - print '--login-background: rgba(0, 0, 0, 0.4) url("'.$webPortalTheme->loginBackground.'");'."\n"; - } + loginBackground)) { + print '--login-background: rgba(0, 0, 0, 0.4) url("'.$webPortalTheme->loginBackground.'");'."\n"; + } - if(!empty($webPortalTheme->loginLogoUrl)){ - print '--login-logo: url("'.$webPortalTheme->loginLogoUrl.'"); /* for relative path, must be relative od the css file or use full url starting by http:// */'."\n"; - } - ?> + if (!empty($webPortalTheme->loginLogoUrl)) { + print '--login-logo: url("'.$webPortalTheme->loginLogoUrl.'"); /* for relative path, must be relative od the css file or use full url starting by http:// */'."\n"; + } + ?> } - diff --git a/htdocs/webportal/class/html.formlistwebportal.class.php b/htdocs/webportal/class/html.formlistwebportal.class.php index bbf36c6d05f..bcb0a4421a0 100644 --- a/htdocs/webportal/class/html.formlistwebportal.class.php +++ b/htdocs/webportal/class/html.formlistwebportal.class.php @@ -733,42 +733,38 @@ class FormListWebPortal * @param int $currentPage number of current page * @return string */ - public static function generatePageListNav(string $url, int $nbPages, int $currentPage){ - + public static function generatePageListNav(string $url, int $nbPages, int $currentPage) + { global $langs; - $pSep = strpos($url, '?') === false ? '?' : '&'; $html = '';