only toggler for hidable element

This commit is contained in:
Shish 2012-03-06 21:25:45 +00:00
parent 90347a08dd
commit 1db23314b8

View file

@ -91,8 +91,9 @@ EOD;
$b = $block->body;
$html = "";
$i = str_replace(' ', '_', $h) . $salt;
$h_toggler = $hidable ? " shm-toggler" : "";
if(!is_null($h)) $html .= "
<h3 data-toggle-id='$i' class='hrr shm-toggler'>$h</h3>
<h3 data-toggle-id='$i' class='hrr$h_toggler'>$h</h3>
";
if(!is_null($b)) {
if(strpos($b, "<!-- cancel border -->") === FALSE) {