summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.public.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index 73e3e0f0b46..e0445f419c4 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -39,17 +39,17 @@
<span id="nextcloud">
<div class="logo logo-icon svg"></div>
<h1 class="header-appname">
- <?php if (isset($template)) {
- p($template->getHeaderTitle());
- } else {
- p($theme->getName());
- } ?>
+ <?php if (isset($template) && $template->getHeaderTitle() !== '') {
+ p($template->getHeaderTitle());
+ } else {
+ p($theme->getName());
+ } ?>
</h1>
+ <?php if (isset($template) && $template->getHeaderDetails() !== '') { ?>
<div class="header-shared-by">
- <?php if (isset($template)) {
- p($template->getHeaderDetails());
- } ?>
+ <?php p($template->getHeaderDetails()); ?>
</div>
+ <?php } ?>
</span>
</div>