From ed2b0824fdca5d5e4deb00482eafd75778880cef Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 26 Apr 2017 14:22:19 +0000 Subject: [PATCH] #815 --- inc/ws/Util/html5/class.ws.html5.compiler.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/class.ws.html5.compiler.php b/inc/ws/Util/html5/class.ws.html5.compiler.php index 2a0fa221f..31592787f 100644 --- a/inc/ws/Util/html5/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/class.ws.html5.compiler.php @@ -551,7 +551,16 @@ class wsHTML5Compiler { } } - $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description', 'print', 'hiddenContents', 'splash', 'cache', 'bgcolor', 'message', 'favicon'); + $svgfiles = array($this->assets . '/images/interface.svg'); + $svg = ''; + foreach ($svgfiles as $svgfile) { + if (file_exists($svgfile)) { + $svg .= file_get_contents($svgfile); + } + } + + + $vars = array('titre', 'credits', 'ga', 'style', 'script', 'pagesContents', 'description', 'print', 'hiddenContents', 'splash', 'cache', 'bgcolor', 'message', 'favicon', 'svg'); foreach ($vars as $v) { $html = str_replace('', $$v, $html); } @@ -1186,6 +1195,11 @@ class wsHTML5Compiler { $shade .= '}'; $res[] = $shade; + // SVG + + $res[] = 'svg .fill-c-menu-back{fill:' . self::colorToCSS($this->theme->parametres->couleurB) . ';}'; + $res[] = 'svg .fill-c-menu-text{fill:' . self::colorToCSS($this->theme->parametres->subTextColor) . ';}'; + // Search field $searchColor = self::colorToCSS($this->theme->parametres->couleurS); $searchBackColor = self::colorToCSS($this->theme->parametres->searchFieldColor); -- 2.39.5