1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 13:35:59 +00:00

add compact theme with smaller font

This commit is contained in:
Andrew Dolgov
2017-01-26 22:41:18 +03:00
parent 22387de225
commit 181c8285dd
2 changed files with 23 additions and 1 deletions

View File

@@ -2428,7 +2428,10 @@
}
function theme_valid($theme) {
if ($theme == "default.php" || $theme == "night.css") return true; // needed for array_filter
$bundled_themes = [ "default.php", "night.css", "compact.css" ];
if (in_array($theme, $bundled_themes)) return true;
$file = "themes/" . basename($theme);
if (!file_exists($file)) $file = "themes.local/" . basename($theme);