summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.guest.php3
-rw-r--r--core/templates/layout.public.php11
-rw-r--r--core/templates/layout.user.php2
3 files changed, 5 insertions, 11 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index b32d163cd69..5e132985243 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -35,7 +35,8 @@
<?php if ($_['bodyid'] === 'body-login'): ?>
<header role="banner">
<div id="header">
- <div class="logo"></div>
+
+ <img class="logo" alt="<?php p($l->t('%s logo', [$theme->getName()])); ?>" src="<?= ($_['logoUrl'] ?? '') !== '' ? $_['logoUrl'] : $theme->getLogo(); ?>">
</div>
</header>
<?php endif; ?>
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index 65110fb84f5..1533419e92d 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -37,15 +37,8 @@
</div>
<header id="header">
- <div class="header-left">
- <div class="logo logo-icon svg"></div>
- <span id="nextcloud" class="header-appname">
- <?php if (isset($template) && $template->getHeaderTitle() !== '') { ?>
- <?php p($template->getHeaderTitle()); ?>
- <?php } else { ?>
- <?php p($theme->getName()); ?>
- <?php } ?>
- </span>
+ <div class="header-left" id="nextcloud">
+ <img class="logo logo-icon svg" alt="<?php p($l->t('%s logo', [$theme->getName()])); ?>" src="<?= ($_['logoUrl'] ?? '') !== '' ? $_['logoUrl'] : $theme->getLogo(); ?>">
<?php if (isset($template) && $template->getHeaderDetails() !== '') { ?>
<div class="header-shared-by">
<?php p($template->getHeaderDetails()); ?>
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 10d8c9bad97..ce8988af9b6 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -60,7 +60,7 @@ $getUserAvatar = static function (int $size) use ($_): string {
<div class="header-left">
<a href="<?php print_unescaped($_['logoUrl'] ?: link_to('', 'index.php')); ?>"
id="nextcloud">
- <div class="logo logo-icon"></div>
+ <img class="logo logo-icon" alt="<?php p($l->t('%s logo', [$theme->getName()])); ?>" src="<?= ($_['logoUrl'] ?? '') !== '' ? $_['logoUrl'] : $theme->getLogo(); ?>">
</a>
<nav id="header-left__appmenu"></nav>