mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Make logo in header clickable in the shared file view
Signed-off-by: Konstantin Myakshin <molodchick@gmail.com>
This commit is contained in:
parent
f934d23cf2
commit
41370350f2
2 changed files with 15 additions and 3 deletions
|
|
@ -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()); ?>
|
||||
|
|
|
|||
|
|
@ -189,6 +189,10 @@ class TemplateLayout extends \OC_Template {
|
|||
$this->assign('appid', $appId);
|
||||
$this->assign('bodyid', 'body-public');
|
||||
|
||||
// Set logo link target
|
||||
$logoUrl = $this->config->getSystemValueString('logo_url', '');
|
||||
$this->assign('logoUrl', $logoUrl);
|
||||
|
||||
/** @var IRegistry $subscription */
|
||||
$subscription = \OCP\Server::get(IRegistry::class);
|
||||
$showSimpleSignup = $this->config->getSystemValueBool('simpleSignUpLink.shown', true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue