Move inlined form styles to form styles in style element

[MAILPOET-2811]
This commit is contained in:
Rostislav Wolny
2020-05-20 12:16:17 +02:00
committed by Veljko V
parent 2eabab4150
commit 63a972db4a
8 changed files with 28 additions and 44 deletions

View File

@ -30,7 +30,7 @@ class Renderer {
$html = '<style type="text/css">';
$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->renderFormDivWrapperStyles($form, $prefix);
$html .= $this->styleUtils->renderFormSettingsStyles($form, $prefix);
$html .= '</style>';
return $html;
@ -94,8 +94,4 @@ class Renderer {
<input class="mailpoet_recaptcha_field" type="hidden" name="recaptcha">
</div>';
}
public function renderFormElementStyles(array $form): string {
return $this->styleUtils->renderFormElementStyles($form);
}
}