mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #30770 from nextcloud/enh/logo-link-target-config
Allow changing the top-left logo link target in config.php
This commit is contained in:
commit
7f7980f35c
3 changed files with 12 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue