]> git.mxchange.org Git - friendica.git/commitdiff
Provide default value for system.banner config key
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 19 Dec 2022 15:17:57 +0000 (10:17 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 19 Dec 2022 15:17:57 +0000 (10:17 -0500)
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1357768936

src/Module/Admin/Site.php
static/settings.config.php

index ef7d5b9871d118307b403a251b928e339728dbf0..a6e73cea4a3be04f20c2967800673538cd5cd771 100644 (file)
@@ -388,10 +388,6 @@ class Site extends BaseAdmin
                /* Banner */
                $banner = DI::config()->get('system', 'banner');
 
-               if ($banner == false) {
-                       $banner = '<a href="https://friendi.ca"><img id="logo-img" width="32" height="32" src="images/friendica.svg" alt="logo" /></a><span id="logo-text"><a href="https://friendi.ca">Friendica</a></span>';
-               }
-
                $email_banner = DI::config()->get('system', 'email_banner');
 
                if ($email_banner == false) {
index 3ec7fef9b755c608895c6d18f12a741dba472a6c..4cebd0955b0b147daa0a2ad9f82b4f38327c3ecf 100644 (file)
@@ -64,6 +64,10 @@ return [
                // Themes users can change to in their settings.
                'allowed_themes' => 'frio,vier',
 
+               // banner (HTML string)
+               // HTML snippet of the top navigation banner. Not supported by frio.
+               'banner' => '<a href="https://friendi.ca"><img id="logo-img" width="32" height="32" src="images/friendica.svg" alt="logo" /></a><span id="logo-text"><a href="https://friendi.ca">Friendica</a></span>',
+
                // cache_contact_avatar (Boolean)
                // Cache versions of the contact avatars. Uses a lot of storage space
                'cache_contact_avatar' => true,