hide empty bits, not just null
This commit is contained in:
parent
76579ad32f
commit
e71cf291a9
@ -53,8 +53,8 @@ class Block {
|
|||||||
$i = $this->id;
|
$i = $this->id;
|
||||||
$html = "<section id='$i'>";
|
$html = "<section id='$i'>";
|
||||||
$h_toggler = $hidable ? " shm-toggler" : "";
|
$h_toggler = $hidable ? " shm-toggler" : "";
|
||||||
if(!is_null($h)) $html .= "<h3 data-toggle-sel='#$i' class='$h_toggler'>$h</h3>";
|
if(!empty($h)) $html .= "<h3 data-toggle-sel='#$i' class='$h_toggler'>$h</h3>";
|
||||||
if(!is_null($b)) $html .= "<div class='blockbody'>$b</div>";
|
if(!empty($b)) $html .= "<div class='blockbody'>$b</div>";
|
||||||
$html .= "</section>\n";
|
$html .= "</section>\n";
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user