diff options
-rw-r--r-- | core/templates/layout.public.php | 5 | ||||
-rw-r--r-- | lib/public/AppFramework/Http/Template/PublicTemplateResponse.php | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php index 61b66144502..2317a7b36ef 100644 --- a/core/templates/layout.public.php +++ b/core/templates/layout.public.php @@ -76,6 +76,11 @@ <div id="content" class="app-<?php p($_['appid']) ?>" role="main"> <?php print_unescaped($_['content']); ?> </div> + <?php if($template->getFooterVisible()) { ?> + <footer> + <p class="info"><?php print_unescaped($theme->getLongFooter()); ?></p> + </footer> + <?php } ?> </div> </body> diff --git a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php index 3409d5aae53..a520748a9ea 100644 --- a/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php +++ b/lib/public/AppFramework/Http/Template/PublicTemplateResponse.php @@ -37,6 +37,7 @@ class PublicTemplateResponse extends TemplateResponse { private $headerTitle = ''; private $headerDetails = ''; private $headerActions = []; + private $footerVisible = true; /** * PublicTemplateResponse constructor. @@ -129,6 +130,20 @@ class PublicTemplateResponse extends TemplateResponse { } /** + * @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 * @since 14.0.0 */ |