Skip to content
Snippets Groups Projects
Unverified Commit 40ca8540 authored by Michael Große's avatar Michael Große
Browse files

feat(metaheaders): Set theme-color meta header

This color is for example shown in Chrome on Android as menu-bar
coloring.
parent b52493c2
No related branches found
No related tags found
No related merge requests found
......@@ -246,6 +246,13 @@ function tpl_metaheaders($alt = true) {
$head['link'][] = array('rel'=> 'manifest', 'href'=> DOKU_BASE.'lib/exe/manifest.php');
}
$styleUtil = new \dokuwiki\StyleUtils();
$styleIni = $styleUtil->cssStyleini($conf['template']);
$replacements = $styleIni['replacements'];
if (!empty($replacements['__theme_color__'])) {
$head['meta'][] = array('name' => 'theme-color', 'content' => $replacements['__theme_color__']);
}
if($alt) {
if(actionOK('rss')) {
$head['link'][] = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment