Render paragraph and heading typography styles on front end

[MAILPOET-3007]
This commit is contained in:
Rostislav Wolny
2020-06-29 16:17:00 +02:00
committed by Veljko V
parent 6d59143453
commit 2c33cbfa24
4 changed files with 39 additions and 0 deletions

View File

@ -66,6 +66,9 @@ class Paragraph {
if (!empty($block['params']['font_size'])) {
$styles[] = 'font-size: ' . $block['params']['font_size'] . 'px';
}
if (!empty($block['params']['line_height'])) {
$styles[] = 'line-height: ' . $block['params']['line_height'];
}
if (empty($styles)) {
return null;
}