Render form block custom classes on frontend
[MAILPOET-2746]
This commit is contained in:
committed by
Veljko V
parent
72a0afa75b
commit
060a6839c7
@@ -22,7 +22,8 @@ class Html {
|
||||
$text = nl2br($text);
|
||||
}
|
||||
|
||||
$html .= '<div class="mailpoet_paragraph" ' . $this->rendererHelper->renderFontStyle($formSettings) . '>';
|
||||
$classes = isset($block['params']['class_name']) ? " " . $block['params']['class_name'] : '';
|
||||
$html .= '<div class="mailpoet_paragraph' . $classes . '" ' . $this->rendererHelper->renderFontStyle($formSettings) . '>';
|
||||
$html .= $text;
|
||||
$html .= '</div>';
|
||||
|
||||
|
Reference in New Issue
Block a user