summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-01-17 14:19:23 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-01-17 14:19:23 +0100
commit9af7ee8d11b43a7a3d14f7aa8390aff0a4174f55 (patch)
tree21e1bd9e4b5acc3010c3ecb6d1b6eb3081b9fdae /core/templates
parent7ab34eefc599cc7fd104f91213c28aeedee383db (diff)
downloadnextcloud-server-9af7ee8d11b43a7a3d14f7aa8390aff0a4174f55.tar.gz
nextcloud-server-9af7ee8d11b43a7a3d14f7aa8390aff0a4174f55.zip
Revert "Add alt to the logo, adapt css for logo"
This reverts commit bba5ab0532bcf71dc421fd15efd890cd25bdc8d3.
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, 11 insertions, 5 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 5e132985243..b32d163cd69 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -35,8 +35,7 @@
<?php if ($_['bodyid'] === 'body-login'): ?>
<header role="banner">
<div id="header">
-
- <img class="logo" alt="<?php p($l->t('%s logo', [$theme->getName()])); ?>" src="<?= ($_['logoUrl'] ?? '') !== '' ? $_['logoUrl'] : $theme->getLogo(); ?>">
+ <div class="logo"></div>
</div>
</header>
<?php endif; ?>
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index 1533419e92d..65110fb84f5 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -37,8 +37,15 @@
</div>
<header id="header">
- <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(); ?>">
+ <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>
<?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 e40334a4c83..b2eed70c299 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">
- <img class="logo logo-icon" alt="<?php p($l->t('%s logo', [$theme->getName()])); ?>" src="<?= ($_['logoUrl'] ?? '') !== '' ? $_['logoUrl'] : $theme->getLogo(); ?>">
+ <div class="logo logo-icon"></div>
</a>
<nav id="header-left__appmenu"></nav>