printPopupBox() can return html instead of printing it

This commit is contained in:
Uwe Steinmann 2017-01-17 18:35:30 +01:00
parent 4bd65d7b6d
commit 9506d25202

View File

@ -2442,13 +2442,16 @@ mayscript>
$this->printTimelineHtml($height);
} /* }}} */
protected function printPopupBox($title, $content) { /* {{{ */
?>
<span class="openpopupbox"><?php echo $title; ?></span>
protected function printPopupBox($title, $content, $ret=false) { /* {{{ */
$html = '
<span class="openpopupbox">'.$title.'</span>
<div class="popupbox" style="display: none;">
<?php echo $content; ?>
</div>
<?php
'.$content.'
</div>';
if($ret)
return $html;
else
echo $html;
} /* }}} */
protected function printAccordion($title, $content) { /* {{{ */