Add support for colors in column block in form editor
[MAILPOET-3654]
This commit is contained in:
committed by
Veljko V
parent
05de6ae163
commit
abc965e143
@@ -30,6 +30,15 @@ class Column {
|
||||
"padding:{$params['padding']['top']} {$params['padding']['right']} {$params['padding']['bottom']} {$params['padding']['left']}"
|
||||
);
|
||||
}
|
||||
if (isset($params['text_color'])) {
|
||||
$styles[] = "color:{$params['text_color']};";
|
||||
}
|
||||
if (!empty($params['background_color'])) {
|
||||
$styles[] = "background-color:{$params['background_color']};";
|
||||
}
|
||||
if (isset($params['gradient'])) {
|
||||
$styles[] = "background:{$params['gradient']};";
|
||||
}
|
||||
if (!count($styles)) {
|
||||
return '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user