$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