aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2022-11-10 09:10:48 +0100
committerjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2022-12-08 09:28:25 +0100
commitbba5ab0532bcf71dc421fd15efd890cd25bdc8d3 (patch)
treebac1b175cf30efee2a4fc06c2d6056a13adb068b /core/templates
parentfabcd68a5e2c4909dc58d35e756acb0675e61311 (diff)
downloadnextcloud-server-bba5ab0532bcf71dc421fd15efd890cd25bdc8d3.tar.gz
nextcloud-server-bba5ab0532bcf71dc421fd15efd890cd25bdc8d3.zip
Add alt to the logo, adapt css for logo
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
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>