From 25666ec5d3edbd614b01594399b03d107c8341ff Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Sun, 1 Mar 2020 21:15:17 +0100 Subject: [UI] Add RTL support with RTLCSS (#2776) * Add dir info to gen.php & install.php! * Add `make rtl` command Using rtlcss because it has actually has a command-line application! --- app/FreshRSS.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/FreshRSS.php') diff --git a/app/FreshRSS.php b/app/FreshRSS.php index 886e30323..2754074b0 100644 --- a/app/FreshRSS.php +++ b/app/FreshRSS.php @@ -103,6 +103,10 @@ class FreshRSS extends Minz_FrontController { $theme_id = $theme['id']; $filename = $file; } + if (_t('gen.dir') === 'rtl') { + $filename = substr($filename, 0, -4); + $filename = $filename . '.rtl.css'; + } $filetime = @filemtime(PUBLIC_PATH . '/themes/' . $theme_id . '/' . $filename); $url = '/themes/' . $theme_id . '/' . $filename . '?' . $filetime; Minz_View::prependStyle(Minz_Url::display($url)); -- cgit v1.2.3