]> _ Git - fluidbook-v3.git/commitdiff
#600
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 29 Aug 2016 13:37:14 +0000 (13:37 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 29 Aug 2016 13:37:14 +0000 (13:37 +0000)
framework/application/views/helpers/BackgroundBlock.php

index cfa7ddaf642c1de7ae1f4480d3aa90c57ffbdf43..8abf9ce9292ba321e4f4c821d99fd21f93200453 100644 (file)
@@ -25,16 +25,10 @@ class Fluidbook_View_Helper_BackgroundBlock extends CubeIT_View_Helper_Abstract
                                $image_ratio = $image_height / $image_width;\r
                                $attributes['data-bg-ratio'] = $image_ratio;\r
 \r
-                               if (\r
-                                       Bootstrap::getInstance()->getAuthUser()->getEmail() == 'vincent@cubedesigners.com'\r
-                               ) {\r
-                                       $mobile = $this->imageProcess()->imageProcessGetURL($image_path, '', $image_width * 0.55, $image_height, array(), 'C', 'R', 'M');\r
+                               $mobile = $this->imageProcess()->imageProcessGetURL($image_path, '', $image_width * 0.55, $image_height, array(), 'C', 'R', 'M');\r
 \r
-                                       $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'));\r
-                                       $content = $bg . $content;\r
-                               } else {\r
-                                       $style .= "background-image: url($image_path);";\r
-                               }\r
+                               $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'));\r
+                               $content = $bg . $content;\r
                        }\r
                }\r
 \r