aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Frans de Jonge <fransdejonge@gmail.com> 2020-03-01 21:15:17 +0100
committerGravatar GitHub <noreply@github.com> 2020-03-01 21:15:17 +0100
commit25666ec5d3edbd614b01594399b03d107c8341ff (patch)
treeacc9bf81b3b87af4eb9515496aa0f68bfda5223b /app/FreshRSS.php
parentbfc731632cd32635eace9cfe99095e7971c8a4f8 (diff)
[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!
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php4
1 files changed, 4 insertions, 0 deletions
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));