Render label only if not hidden

[MAILPOET-2453]
This commit is contained in:
Pavel Dohnal
2019-12-17 14:38:12 +01:00
committed by Rostislav Wolný
parent 8dce3f627e
commit a9fb644d44

View File

@ -68,6 +68,12 @@ abstract class Base {
protected static function renderLabel($block) {
$html = '';
if (
isset($block['params']['hide_label'])
&& $block['params']['hide_label']
) {
return $html;
}
if (
isset($block['params']['label_within'])
&& $block['params']['label_within']