... | ... |
@@ -24,6 +24,12 @@ class FormiliciousHooks extends \Controller |
24 | 24 |
protected $arrNoFl = array('__selector__','fieldsetfsStart','fieldsetfsStop','hidden','html'); |
25 | 25 |
|
26 | 26 |
/** |
27 |
+ * Array containing all fields which shouldn't use Formilicous custom class |
|
28 |
+ * @var array |
|
29 |
+ */ |
|
30 |
+ protected $arrNoCustClass = array('explanation'); |
|
31 |
+ |
|
32 |
+ /** |
|
27 | 33 |
* Hook for adding Formilicious fields to the form editor |
28 | 34 |
* @param $strName |
29 | 35 |
*/ |
... | ... |
@@ -41,7 +47,11 @@ class FormiliciousHooks extends \Controller |
41 | 47 |
{ |
42 | 48 |
if (!in_array($k,$this->arrNoFl)) |
43 | 49 |
{ |
44 |
- $strFl = ';{formilicious_legend},eSM_fl_width,eSM_fl_clear,eSM_fl_class'; |
|
50 |
+ $strFl = ';{formilicious_legend},eSM_fl_width,eSM_fl_clear'; |
|
51 |
+ if (!in_array($k,$this->arrNoCustClass)) |
|
52 |
+ { |
|
53 |
+ $strFl.= ',eSM_fl_class'; |
|
54 |
+ } |
|
45 | 55 |
if ($k == 'submit') |
46 | 56 |
{ |
47 | 57 |
$strFl.= ',eSM_fl_lblpadding,eSM_fl_alignment'; |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
|
2 | 2 |
<?php if ($this->tableless): ?> |
3 | 3 |
|
4 |
- <div class="<?php echo $this->prefix; ?> explanation<?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?><?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>"> |
|
4 |
+ <div class="<?php echo $this->prefix; ?> explanation<?php if ($this->eSM_fl_width): ?> w<?php echo $this->eSM_fl_width; ?><?php endif; ?><?php if ($this->eSM_fl_clear): ?> clr<?php endif; ?>"> |
|
5 | 5 |
<?php echo $this->generate(); ?> |
6 | 6 |
</div> |
7 | 7 |
|
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
|
2 | 2 |
<?php if ($this->tableless): ?> |
3 | 3 |
|
4 |
- <div class="<?php echo $this->prefix; ?> headline w100<?php if ($this->eSM_fl_class): ?> <?php echo $this->eSM_fl_class; ?><?php endif; ?>"> |
|
4 |
+ <div class="<?php echo $this->prefix; ?> headline w100"> |
|
5 | 5 |
<?php echo $this->generate(); ?> |
6 | 6 |
</div> |
7 | 7 |
|