... | ... |
@@ -10,6 +10,7 @@ |
10 | 10 |
|
11 | 11 |
namespace EsalesMedia\ContentHelperBundle\FrontendController; |
12 | 12 |
|
13 |
+use Contao\ContentModel; |
|
13 | 14 |
|
14 | 15 |
/** |
15 | 16 |
* Extends columns start content element |
... | ... |
@@ -19,10 +20,10 @@ class ColumnsStart extends \MadeYourDay\RockSolidColumns\Element\ColumnsStart |
19 | 20 |
|
20 | 21 |
/** |
21 | 22 |
* Add class if needed |
22 |
- * @param \ContentModel $objElement |
|
23 |
+ * @param ContentModel $objElement |
|
23 | 24 |
* @param string $strColumn |
24 | 25 |
*/ |
25 |
- public function __construct(\ContentModel $objElement, $strColumn = 'main') |
|
26 |
+ public function __construct(ContentModel $objElement, $strColumn = 'main') |
|
26 | 27 |
{ |
27 | 28 |
parent::__construct($objElement, $strColumn); |
28 | 29 |
|
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,43 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/* |
|
4 |
+ * This file is part of eSales Media ContentHelperBundle |
|
5 |
+ * |
|
6 |
+ * (c) Benjamin Roth |
|
7 |
+ * |
|
8 |
+ * @license proprietary |
|
9 |
+ */ |
|
10 |
+ |
|
11 |
+namespace EsalesMedia\ContentHelperBundle\FrontendController; |
|
12 |
+ |
|
13 |
+ |
|
14 |
+/** |
|
15 |
+ * Extends columns start content element |
|
16 |
+ */ |
|
17 |
+class ColumnsStart extends \MadeYourDay\RockSolidColumns\Element\ColumnsStart |
|
18 |
+{ |
|
19 |
+ |
|
20 |
+ /** |
|
21 |
+ * Add class if needed |
|
22 |
+ * @param \ContentModel $objElement |
|
23 |
+ * @param string $strColumn |
|
24 |
+ */ |
|
25 |
+ public function __construct(\ContentModel $objElement, $strColumn = 'main') |
|
26 |
+ { |
|
27 |
+ parent::__construct($objElement, $strColumn); |
|
28 |
+ |
|
29 |
+ if ($this->es_rs_columns_valign && $this->es_rs_columns_valign == 'top') |
|
30 |
+ { |
|
31 |
+ $this->arrData['cssID'][1] = trim($this->cssID[1].' -valign-top'); |
|
32 |
+ } else if ($this->es_rs_columns_valign && $this->es_rs_columns_valign == 'center') |
|
33 |
+ { |
|
34 |
+ $this->arrData['cssID'][1] = trim($this->cssID[1].' -valign-center'); |
|
35 |
+ } else if ($this->es_rs_columns_valign && $this->es_rs_columns_valign == 'bottom') |
|
36 |
+ { |
|
37 |
+ $this->arrData['cssID'][1] = trim($this->cssID[1].' -valign-bottom'); |
|
38 |
+ } else if ($this->es_rs_columns_valign && $this->es_rs_columns_valign == 'stretch') |
|
39 |
+ { |
|
40 |
+ $this->arrData['cssID'][1] = trim($this->cssID[1].' -valign-stretch'); |
|
41 |
+ } |
|
42 |
+ } |
|
43 |
+} |