diff options
| author | 2022-05-23 14:03:19 +0200 | |
|---|---|---|
| committer | 2022-05-23 14:03:19 +0200 | |
| commit | f89819bd64bb5ada706f9b85abd6f7b600a95786 (patch) | |
| tree | 9bc1649eb12d54f0cf9a6e6385772e91be6481f7 /app/layout/header.phtml | |
| parent | 8668ca7230e9198981e33f9882a6030c1733e7f3 (diff) | |
Custom logo HTML (#4369)
* Custom logo HTML
Add option for custom HTML logo/title in the main Web UI view.
Can potentially be different per user.
#fix https://github.com/FreshRSS/FreshRSS/pull/3830/files#r850472247
* logo_html in main config
With new `./data/config.custom.php` to provide custom values before install
* Docker documentation
* whitespace
* Auto relax CSP to allow images for HTML logo
* Documentation
Diffstat (limited to 'app/layout/header.phtml')
| -rw-r--r-- | app/layout/header.phtml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/layout/header.phtml b/app/layout/header.phtml index b5a9b662c..94a83894e 100644 --- a/app/layout/header.phtml +++ b/app/layout/header.phtml @@ -1,7 +1,13 @@ <header class="header"> <div class="item title"> <a href="<?= _url('index', 'index') ?>"> - <img class="logo" src="<?= _i('FreshRSS-logo', true) ?>" alt="" /> + <?php if (FreshRSS_Context::$system_conf->logo_html == '') { ?> + <img class="logo" src="<?= _i('FreshRSS-logo', true) ?>" alt="FreshRSS" /> + <?php + } else { + echo FreshRSS_Context::$system_conf->logo_html; + } + ?> </a> </div> |
