Add footer to public page template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
bbeb3402b6
commit
30e76f9f14
|
@ -76,6 +76,11 @@
|
||||||
<div id="content" class="app-<?php p($_['appid']) ?>" role="main">
|
<div id="content" class="app-<?php p($_['appid']) ?>" role="main">
|
||||||
<?php print_unescaped($_['content']); ?>
|
<?php print_unescaped($_['content']); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php if($template->getFooterVisible()) { ?>
|
||||||
|
<footer>
|
||||||
|
<p class="info"><?php print_unescaped($theme->getLongFooter()); ?></p>
|
||||||
|
</footer>
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -37,6 +37,7 @@ class PublicTemplateResponse extends TemplateResponse {
|
||||||
private $headerTitle = '';
|
private $headerTitle = '';
|
||||||
private $headerDetails = '';
|
private $headerDetails = '';
|
||||||
private $headerActions = [];
|
private $headerActions = [];
|
||||||
|
private $footerVisible = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PublicTemplateResponse constructor.
|
* PublicTemplateResponse constructor.
|
||||||
|
@ -128,6 +129,20 @@ class PublicTemplateResponse extends TemplateResponse {
|
||||||
return array_slice($this->headerActions, 1);
|
return array_slice($this->headerActions, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 14.0.0
|
||||||
|
*/
|
||||||
|
public function setFooterVisible(bool $visible = false) {
|
||||||
|
$this->footerVisible = $visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 14.0.0
|
||||||
|
*/
|
||||||
|
public function getFooterVisible(): bool {
|
||||||
|
return $this->footerVisible;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
* @since 14.0.0
|
* @since 14.0.0
|
||||||
|
|
Loading…
Reference in New Issue