Render paragraph and heading typography styles on front end
[MAILPOET-3007]
This commit is contained in:
committed by
Veljko V
parent
6d59143453
commit
2c33cbfa24
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user