... |
... |
@@ -49,6 +49,11 @@ class ContentSlickSliderSlideStart extends \ContentElement
|
49 |
49 |
$this->singleSRC = $objFile->path;
|
50 |
50 |
|
51 |
51 |
$this->addImageToTemplate($this->Template, array('singleSRC'=>$this->singleSRC, 'size'=>$this->size));
|
|
52 |
+
|
|
53 |
+ if ($this->eSM_slick_minHeight) {
|
|
54 |
+
|
|
55 |
+ $this->Template->minHeight = round($this->Template->picture['img']['height']/$this->Template->picture['img']['width']*100).'%';
|
|
56 |
+ }
|
52 |
57 |
}
|
53 |
58 |
|
54 |
59 |
$backgroundStyle = 'background-image: url(\''.$this->Template->src.'\');';
|
... |
... |
@@ -67,10 +72,6 @@ class ContentSlickSliderSlideStart extends \ContentElement
|
67 |
72 |
$backgroundStyle .= 'opacity:' . $this->eSM_slick_bgOpacity/100 . ';';
|
68 |
73 |
}
|
69 |
74 |
|
70 |
|
- if ($this->eSM_slick_minHeight) {
|
71 |
|
- $this->Template->minHeight = round($this->Template->height/$this->Template->width*100).'%';
|
72 |
|
- }
|
73 |
|
-
|
74 |
75 |
$this->Template->backgroundStyle = $backgroundStyle;
|
75 |
76 |
}
|
76 |
77 |
|