mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
call new hook 'footNote', footNote() returns the html instead of echoing it
This commit is contained in:
parent
e0c5013e29
commit
a511904a81
|
@ -141,7 +141,14 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
|
|
||||||
function htmlEndPage($nofooter=false) { /* {{{ */
|
function htmlEndPage($nofooter=false) { /* {{{ */
|
||||||
if(!$nofooter) {
|
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']) {
|
if($this->params['showmissingtranslations']) {
|
||||||
$this->missingLanguageKeys();
|
$this->missingLanguageKeys();
|
||||||
}
|
}
|
||||||
|
@ -218,23 +225,23 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function footNote() { /* {{{ */
|
function footNote() { /* {{{ */
|
||||||
echo "<div class=\"container-fluid\">\n";
|
$html = "<div class=\"container-fluid\">\n";
|
||||||
echo '<div class="row-fluid">'."\n";
|
$html .= '<div class="row-fluid">'."\n";
|
||||||
echo '<div class="span12">'."\n";
|
$html .= '<div class="span12">'."\n";
|
||||||
echo '<div class="alert alert-info">'."\n";
|
$html .= '<div class="alert alert-info">'."\n";
|
||||||
if ($this->params['printdisclaimer']){
|
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) {
|
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";
|
$html .= "</div>\n";
|
||||||
echo "</div>\n";
|
$html .= "</div>\n";
|
||||||
echo "</div>\n";
|
$html .= "</div>\n";
|
||||||
echo "</div>\n";
|
$html .= "</div>\n";
|
||||||
|
|
||||||
return;
|
return $html;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
function contentStart() { /* {{{ */
|
function contentStart() { /* {{{ */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user