$c = $this->htmlElement($c, 'div', ['class' => 'content']);\r
$image = $this->imageProcess($d['image'], $d['title'], 755, 1000, [], 'R');\r
\r
- if ($imageRight) {\r
- $res = $c . $image;\r
- } else {\r
- $res = $image . $c;\r
- }\r
-\r
+ $res = $image . $c;\r
\r
return $this->htmlElement($res, 'article', ['class' => $imageRight ? 'iright' : 'ileft']);\r
}\r
$res .= '</div>'; // .col-2
$res .= '</div>'; // .grid
+ $attrs = array('class' => array('intro'));
+
if ($outsideContent) {
$res .= $outsideContent;
}
- $res = $this->backgroundBlock($res, $intro);
+ if (isset($intro['backgroundimage']) && !isset($intro['bg_image'])) {
+ $intro['bg_image'] = $intro['backgroundimage'];
+ }
+ if (!isset($intro['bg_image']) || !$intro['bg_image']) {
+ $attrs['class'][] = 'nobg';
+ } else {
+ $attrs['data-bg'] = print_r($intro['bg_image'], true);
+ }
+ $res = $this->backgroundBlock($res, $intro);
if ($intro['chapo']) {
$res .= $this->htmlElement($this->htmlElement(nl2br($intro['chapo']), 'div'), 'blockquote');
}
- $attrs = array('class' => array('intro'));
+
if (!$paddingTop) {
$attrs['class'][] = 'nopad';
}
\r
$res = '';\r
foreach ($images as $image) {\r
- $res .= $this->imageCms($image).' '; // Space needed for the justify\r
+ $res .= $this->htmlElement($this->imageCms($image), 'div', ['class' => 'i']) . ' '; // Space needed for the justify\r
}\r
\r
$res = $this->htmlElement($res, 'div', ['class' => 'c']);\r
}\r
}\r
\r
+ &.nobg {\r
+ .content-wrapper {\r
+ @media @m900 {\r
+ padding-bottom: 15%;\r
+ }\r
+ }\r
+ }\r
+\r
.content-wrapper {\r
.intro-padding();\r
background-size: 100% auto;\r
\r
.logos {\r
&.content-wrapper {\r
- padding-top: 56px;\r
- padding-bottom: 50px;\r
+ padding-top: 4%;\r
+ padding-bottom: 2%;\r
}\r
+\r
background-color: @color-light-grey;\r
+\r
.c {\r
display: inline-block;\r
width: 100%;\r
margin: 0 auto;\r
line-height: 0;\r
\r
+ @media @m900 {\r
+ padding-left: 0;\r
+ padding-right: 0;\r
+ }\r
+\r
&:after {\r
content: "";\r
display: inline-block;\r
width: 100%;\r
height: 0;\r
}\r
- img {\r
- vertical-align: middle;\r
+\r
+ .i {\r
+ width: 120px;\r
+ height: 45px;\r
+ display: inline-block;\r
+ text-align: center;\r
+\r
+ img {\r
+ vertical-align: middle;\r
+ }\r
}\r
}\r
}
\ No newline at end of file
}\r
\r
.content {\r
- width: 755px;\r
- padding: 60px 130px 0;\r
+ width: 50%;\r
+ padding: 8% 10% 0;\r
display: inline-block;\r
vertical-align: top;\r
font-size: 14px;\r
}\r
img {\r
display: inline-block;\r
- width: 755px;\r
+ width: 50%;\r
+ height: auto;\r
vertical-align: top;\r
}\r
+\r
+ @media @m1280 {\r
+ &.ileft {\r
+ .content {\r
+ padding: 0 0 0 4%;\r
+ }\r
+ }\r
+\r
+ &.iright {\r
+ .content {\r
+ padding: 0 4% 0 0;\r
+ }\r
+ }\r
+ }\r
+\r
+ @media @m900 {\r
+ margin-top: 70px;\r
+\r
+ .content {\r
+ float: none !important;\r
+ width: 100%;\r
+ padding: 0 !important;\r
+ display: block;\r
+ margin-top: 20px;\r
+ }\r
+\r
+ img {\r
+ float: none !important;\r
+ width: 100%;\r
+ height: auto;\r
+ display: block;\r
+ }\r
+\r
+ }\r
+\r
+ &.ileft {\r
+ .content {\r
+ float: right;\r
+ }\r
+ img {\r
+ float: left;\r
+ }\r
+\r
+ }\r
+\r
+ &.iright {\r
+ .content {\r
+ float: left;\r
+ }\r
+ img {\r
+ float: right;\r
+ }\r
+ }\r
}\r
}
\ No newline at end of file