summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2023-10-04 08:49:25 +0200
committerGitHub <noreply@github.com>2023-10-04 08:49:25 +0200
commit4756807f2e72b1dcd8ba11e038bcd5e01d41044a (patch)
treed4c605dfc29c2a47bad4d6caf4caf7e3643db867 /core
parent3f725824b1916896c04b1e9e3bf5cfa4ad4ad1ac (diff)
parent41370350f2c4c811cf04b72c44e34318feb2bbbf (diff)
downloadnextcloud-server-4756807f2e72b1dcd8ba11e038bcd5e01d41044a.tar.gz
nextcloud-server-4756807f2e72b1dcd8ba11e038bcd5e01d41044a.zip
Merge pull request #40439 from Koc/feature/clickable-logo
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.public.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index e5329716cc7..eef140a1cd5 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -38,14 +38,22 @@ p($theme->getTitle());
<header id="header">
<div class="header-left">
- <div class="logo logo-icon svg"></div>
- <span id="nextcloud" class="header-appname">
+ <div id="nextcloud" class="header-appname">
+ <?php if ($_['logoUrl']): ?>
+ <a href="<?php print_unescaped($_['logoUrl']); ?>"
+ aria-label="<?php p($l->t('Go to %s', [$_['logoUrl']])); ?>">
+ <div class="logo logo-icon"></div>
+ </a>
+ <?php else: ?>
+ <div class="logo logo-icon"></div>
+ <?php endif; ?>
+
<?php if (isset($template) && $template->getHeaderTitle() !== '') { ?>
<?php p($template->getHeaderTitle()); ?>
<?php } else { ?>
<?php p($theme->getName()); ?>
<?php } ?>
- </span>
+ </div>
<?php if (isset($template) && $template->getHeaderDetails() !== '') { ?>
<div class="header-shared-by">
<?php p($template->getHeaderDetails()); ?>