Move form wrapping to widget

[MAILPOET-2600]
This commit is contained in:
Pavel Dohnal
2020-02-27 10:35:14 +01:00
committed by Jack Kitterhing
parent 691a8a45f3
commit ec8adcae73
7 changed files with 11 additions and 54 deletions

View File

@@ -94,6 +94,7 @@ class DisplayFormInWPContent {
$formData = [
'body' => $form->getBody(),
'styles' => $form->getStyles(),
'settings' => $form->getSettings(),
];
$formSettings = $form->getSettings();
$templateData = [
@@ -103,6 +104,7 @@ class DisplayFormInWPContent {
'form_type' => 'below_post',
'styles' => $this->formRenderer->renderStyles($formData, '#' . $form->getId()),
'html' => $this->formRenderer->renderHTML($formData),
'form_element_styles' => $this->formRenderer->renderFormElementStyles($formData),
];
// (POST) non ajax success/error variables