aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2023-03-04 15:05:58 +0100
committerGravatar GitHub <noreply@github.com> 2023-03-04 15:05:58 +0100
commit068d18b69bae8456669293a8b7dfe9afd827e03d (patch)
treed24e9d3804824c065a7d6d7a9e1b45d163fce476 /app
parentd3966befafab3fe65e753d0ab2166a8bf5fb0d75 (diff)
Add: <meta name="theme-color"> (#5105)
* implemented * themes' metadata.json * fix * fix * retrigger tests * Update lib/Minz/View.php Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> * Update lib/Minz/View.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Update lib/Minz/View.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Update lib/Minz/View.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * fix --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com>
Diffstat (limited to 'app')
-rw-r--r--app/FreshRSS.php4
-rw-r--r--app/layout/layout.phtml1
2 files changed, 5 insertions, 0 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 76ced841c..dd16fad6c 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -141,6 +141,10 @@ class FreshRSS extends Minz_FrontController {
FreshRSS_View::prependStyle(Minz_Url::display(FreshRSS::getThemeFileUrl($theme_id, $filename)));
}
}
+
+ if (!empty($theme['theme-color'])) {
+ FreshRSS_View::appendThemeColors($theme['theme-color']);
+ }
}
//Use prepend to insert before extensions. Added in reverse order.
if (Minz_Request::controllerName() !== 'index') {
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml
index 1e9ce6905..f0ade992f 100644
--- a/app/layout/layout.phtml
+++ b/app/layout/layout.phtml
@@ -11,6 +11,7 @@ if (_t('gen.dir') === 'rtl') {
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
+ <?= FreshRSS_View::metaThemeColor() ?>
<?= FreshRSS_View::headStyle() ?>
<script id="jsonVars" type="application/json">
<?php $this->renderHelper('javascript_vars'); ?>