Render font size

[MAILPOET-2600]
This commit is contained in:
Pavel Dohnal
2020-02-26 14:09:15 +01:00
committed by Jack Kitterhing
parent ce127eadc1
commit 691a8a45f3
23 changed files with 83 additions and 87 deletions

View File

@@ -3,7 +3,14 @@
namespace MailPoet\Form\Block;
class Html {
public function render(array $block): string {
/** @var BlockRendererHelper */
private $rendererHelper;
public function __construct(BlockRendererHelper $rendererHelper) {
$this->rendererHelper = $rendererHelper;
}
public function render(array $block, array $formSettings): string {
$html = '';
$text = '';
@@ -15,7 +22,7 @@ class Html {
$text = nl2br($text);
}
$html .= '<p class="mailpoet_paragraph">';
$html .= '<p class="mailpoet_paragraph" ' . $this->rendererHelper->renderFontStyle($formSettings) . '>';
$html .= $text;
$html .= '</p>';