1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:05:56 +00:00

add Config::LOCAL_OVERRIDE_JS

This commit is contained in:
Andrew Dolgov
2021-03-11 07:44:58 +03:00
parent 324aef9f6f
commit 27ab16b6dc
6 changed files with 22 additions and 13 deletions

View File

@@ -420,6 +420,8 @@
$check = "themes.local/$theme";
if (file_exists($check)) return $check;
return "";
}
function theme_exists($theme) {

View File

@@ -15,9 +15,7 @@
} ?>
<?php if (theme_exists(Config::get(Config::LOCAL_OVERRIDE_STYLESHEET))) {
echo stylesheet_tag(get_theme_path(Config::get(Config::LOCAL_OVERRIDE_STYLESHEET)));
} ?>
<?= Config::get_override_links() ?>
<style type="text/css">
@media (prefers-color-scheme: dark) {