From: stephen@cubedesigners.com Date: Fri, 23 Jun 2017 16:49:27 +0000 (+0000) Subject: Clean up errors and add icon colour to LESS variables. WIP #807 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=31c81640a38344c0dbbc61700553e10b731160c9;p=cubeextranet.git Clean up errors and add icon colour to LESS variables. WIP #807 @0.25 --- diff --git a/inc/ws/Util/html5/burgermenu/class.ws.html5.compiler.php b/inc/ws/Util/html5/burgermenu/class.ws.html5.compiler.php index f08eb6b41..eda11afc8 100644 --- a/inc/ws/Util/html5/burgermenu/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/burgermenu/class.ws.html5.compiler.php @@ -560,10 +560,10 @@ class wsHTML5Compiler { $message = sprintf($this->__('Your browser is not up to date and is not able to run this publication. %sLearn more%s'), '
', ''); $splash = ''; - if ($this->theme->parametres->logoLoader) { - $dim = getimagesize($this->themeRoot . '/' . $this->theme->parametres->logoLoader); + if ($this->theme->parametres->logoLoader && file_exists($this->themeRoot . $this->theme->parametres->logoLoader)) { + $dim = getimagesize($this->themeRoot . $this->theme->parametres->logoLoader); if ($dim !== false) { - $this->copy($this->themeRoot . '/' . $this->theme->parametres->logoLoader, $this->vdir . '/data/images/' . $this->theme->parametres->logoLoader); + $this->copy($this->themeRoot . $this->theme->parametres->logoLoader, $this->vdir . '/data/images/' . $this->theme->parametres->logoLoader); $splash .= ''; } } @@ -1310,6 +1310,7 @@ class wsHTML5Compiler { $lessVariables['menu-text'] = $menuTextColor; $lessVariables['menu-field-background'] = wsHTML5::colorToCSS($this->theme->parametres->subFieldColor); $lessVariables['menu-field-text'] = wsHTML5::colorToCSS($this->theme->parametres->subTextFieldColor); + $lessVariables['icon-color'] = wsHTML5::colorToCSS($this->theme->parametres->couleurI); $menuMultiply = $menuColor->multiply($menuColor);