call new hook 'footNote', footNote() returns the html instead of echoing it

This commit is contained in:
Uwe Steinmann 2019-05-13 08:13:30 +02:00
parent e0c5013e29
commit a511904a81

View File

@ -141,7 +141,14 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
function htmlEndPage($nofooter=false) { /* {{{ */
if(!$nofooter) {
$this->footNote();
$hookObjs = $this->getHookObjects('SeedDMS_View_Bootstrap');
$html = $this->footNote();
foreach($hookObjs as $hookObj) {
if (method_exists($hookObj, 'footNote')) {
$html = $hookObj->footNote($this, $html);
}
}
echo $html;
if($this->params['showmissingtranslations']) {
$this->missingLanguageKeys();
}
@ -218,23 +225,23 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
} /* }}} */
function footNote() { /* {{{ */
echo "<div class=\"container-fluid\">\n";
echo '<div class="row-fluid">'."\n";
echo '<div class="span12">'."\n";
echo '<div class="alert alert-info">'."\n";
$html = "<div class=\"container-fluid\">\n";
$html .= '<div class="row-fluid">'."\n";
$html .= '<div class="span12">'."\n";
$html .= '<div class="alert alert-info">'."\n";
if ($this->params['printdisclaimer']){
echo "<div class=\"disclaimer\">".getMLText("disclaimer")."</div>";
$html .= "<div class=\"disclaimer\">".getMLText("disclaimer")."</div>";
}
if (isset($this->params['footnote']) && strlen((string)$this->params['footnote'])>0) {
echo "<div class=\"footNote\">".(string)$this->params['footnote']."</div>";
$html .= "<div class=\"footNote\">".(string)$this->params['footnote']."</div>";
}
echo "</div>\n";
echo "</div>\n";
echo "</div>\n";
echo "</div>\n";
$html .= "</div>\n";
$html .= "</div>\n";
$html .= "</div>\n";
$html .= "</div>\n";
return;
return $html;
} /* }}} */
function contentStart() { /* {{{ */