]> _ Git - cubeextranet.git/commitdiff
Clean up errors and add icon colour to LESS variables. WIP #807 @0.25
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 23 Jun 2017 16:49:27 +0000 (16:49 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 23 Jun 2017 16:49:27 +0000 (16:49 +0000)
inc/ws/Util/html5/burgermenu/class.ws.html5.compiler.php

index f08eb6b413ac39e615befa1797500ff25baec24d..eda11afc8d956d9d3fe72b08799b162f907b8562 100644 (file)
@@ -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'), '<br /><a href="http://www.whatbrowser.org/intl/' . $this->config->defaultLang . '/" target="_blank">', '</a>');
 
                $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 .= '<div class="logo"><img src="data/images/' . $this->theme->parametres->logoLoader . '" width="' . $dim[0] . '" height="' . $dim[1] . '" alt="" /></div>';
                        }
                }
@@ -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);