Render label only if not hidden
[MAILPOET-2453]
This commit is contained in:
committed by
Rostislav Wolný
parent
8dce3f627e
commit
a9fb644d44
@ -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']
|
||||
|
Reference in New Issue
Block a user