Render form styles in twig template correctly
[MAILPOET-3415]
This commit is contained in:
committed by
Veljko V
parent
0d6a068351
commit
6e911ffd1d
@@ -36,12 +36,9 @@ class Renderer {
|
|||||||
|
|
||||||
public function renderStyles(array $form, string $prefix, string $displayType): string {
|
public function renderStyles(array $form, string $prefix, string $displayType): string {
|
||||||
$this->customFonts->enqueueStyle();
|
$this->customFonts->enqueueStyle();
|
||||||
$html = '<style type="text/css">';
|
$html = '.mailpoet_hp_email_label{display:none!important;}'; // move honeypot field out of sight
|
||||||
$html .= '.mailpoet_hp_email_label{display:none!important;}'; // move honeypot field out of sight
|
|
||||||
$html .= $this->styleUtils->prefixStyles($this->getCustomStyles($form), $prefix);
|
$html .= $this->styleUtils->prefixStyles($this->getCustomStyles($form), $prefix);
|
||||||
$html .= $this->styleUtils->renderFormSettingsStyles($form, $prefix, $displayType);
|
$html .= $this->styleUtils->renderFormSettingsStyles($form, $prefix, $displayType);
|
||||||
$html .= '</style>';
|
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -36,7 +36,11 @@
|
|||||||
src='<%= image_url("form_close_icon/" ~ close_button_icon ~ ".svg") %>'
|
src='<%= image_url("form_close_icon/" ~ close_button_icon ~ ".svg") %>'
|
||||||
>
|
>
|
||||||
<% endif %>
|
<% endif %>
|
||||||
<%= styles | raw %>
|
|
||||||
|
<style type="text/css">
|
||||||
|
<%= styles %>
|
||||||
|
</style>
|
||||||
|
|
||||||
<form
|
<form
|
||||||
target="_self"
|
target="_self"
|
||||||
method="post"
|
method="post"
|
||||||
|
Reference in New Issue
Block a user