Browse Source
allow changing the top-left logo link target in system config
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
pull/30770/head
Julien Veyssier
4 years ago
No known key found for this signature in database
GPG Key ID: 4141FEE162030638
3 changed files with
12 additions and
1 deletions
-
config/config.sample.php
-
core/templates/layout.user.php
-
lib/private/TemplateLayout.php
|
|
|
@ -353,6 +353,13 @@ $CONFIG = [ |
|
|
|
*/ |
|
|
|
'lost_password_link' => 'https://example.org/link/to/password/reset', |
|
|
|
|
|
|
|
/** |
|
|
|
* URL to use as target for the logo link in the header (top-left logo) |
|
|
|
* |
|
|
|
* Defaults to the base URL of your Nextcloud instance |
|
|
|
*/ |
|
|
|
'logo_url' => 'https://example.org', |
|
|
|
|
|
|
|
/** |
|
|
|
* Mail Parameters |
|
|
|
* |
|
|
|
|
|
|
|
@ -56,7 +56,7 @@ $getUserAvatar = static function (int $size) use ($_): string { |
|
|
|
</div> |
|
|
|
<header role="banner" id="header"> |
|
|
|
<div class="header-left"> |
|
|
|
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>" |
|
|
|
<a href="<?php print_unescaped($_['logoUrl'] ?: link_to('', 'index.php')); ?>" |
|
|
|
id="nextcloud"> |
|
|
|
<div class="logo logo-icon"> |
|
|
|
<h1 class="hidden-visually"> |
|
|
|
|
|
|
|
@ -98,6 +98,10 @@ class TemplateLayout extends \OC_Template { |
|
|
|
$this->initialState->provideInitialState('unified-search', 'limit-default', SearchQuery::LIMIT_DEFAULT); |
|
|
|
Util::addScript('core', 'unified-search', 'core'); |
|
|
|
|
|
|
|
// set logo link target
|
|
|
|
$logoUrl = $this->config->getSystemValueString('logo_url', ''); |
|
|
|
$this->assign('logoUrl', $logoUrl); |
|
|
|
|
|
|
|
// Add navigation entry
|
|
|
|
$this->assign('application', ''); |
|
|
|
$this->assign('appid', $appId); |
|
|
|
|