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 {
|
||||
$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->renderFormSettingsStyles($form, $prefix, $displayType);
|
||||
$html .= '</style>';
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user