From: vincent@cubedesigners.com Date: Mon, 29 Aug 2016 13:37:14 +0000 (+0000) Subject: #600 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cc68d2413ed69cd944470494e779098cf5f67fff;p=fluidbook-v3.git #600 --- diff --git a/framework/application/views/helpers/BackgroundBlock.php b/framework/application/views/helpers/BackgroundBlock.php index cfa7dda..8abf9ce 100644 --- a/framework/application/views/helpers/BackgroundBlock.php +++ b/framework/application/views/helpers/BackgroundBlock.php @@ -25,16 +25,10 @@ class Fluidbook_View_Helper_BackgroundBlock extends CubeIT_View_Helper_Abstract $image_ratio = $image_height / $image_width; $attributes['data-bg-ratio'] = $image_ratio; - if ( - Bootstrap::getInstance()->getAuthUser()->getEmail() == 'vincent@cubedesigners.com' - ) { - $mobile = $this->imageProcess()->imageProcessGetURL($image_path, '', $image_width * 0.55, $image_height, array(), 'C', 'R', 'M'); + $mobile = $this->imageProcess()->imageProcessGetURL($image_path, '', $image_width * 0.55, $image_height, array(), 'C', 'R', 'M'); - $bg = $this->htmlElement($this->picture(array(array('src' => $image_path, "width" => 1680), array("src" => $mobile, "width" => 1680, 'media' => '(max-width: 900px)'))), 'div', array('class' => 'picture')); - $content = $bg . $content; - } else { - $style .= "background-image: url($image_path);"; - } + $bg = $this->htmlElement($this->picture(array(array('src' => $image_path, "width" => 1680), array("src" => $mobile, "width" => 1680, 'media' => '(max-width: 900px)'))), 'div', array('class' => 'picture')); + $content = $bg . $content; } }