From cc68d2413ed69cd944470494e779098cf5f67fff Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 29 Aug 2016 13:37:14 +0000 Subject: [PATCH] #600 --- .../application/views/helpers/BackgroundBlock.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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; } } -- 2.39.5