diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-04-07 18:50:27 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-04-07 18:50:27 +0200 |
commit | 208c021585bbc6cbce25223e481cef547dabed89 (patch) | |
tree | 20ff8d17f51236779eb9cddd4a845d5d5cc3ae86 /lib/exe/css.php | |
parent | 20ed4822a35f62960dd2c0e376f12f381aa84f63 (diff) | |
download | rpg-208c021585bbc6cbce25223e481cef547dabed89.tar.gz rpg-208c021585bbc6cbce25223e481cef547dabed89.tar.bz2 |
support rtl.css for plugins FS#1114
A rtl.css file is loaded for plugins when the language direction is right to left.
darcs-hash:20070407165027-7ad00-1580a9d2af3f64f13780b4e243e53b44c7c5add2.gz
Diffstat (limited to 'lib/exe/css.php')
-rw-r--r-- | lib/exe/css.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php index c1e2744eb..02425a990 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -31,7 +31,7 @@ function css_out(){ global $conf; global $lang; switch ($_REQUEST['s']) { - case 'all': + case 'all': case 'print': case 'feed': $style = $_REQUEST['s']; @@ -147,7 +147,7 @@ function css_cacheok($cache,$files){ } /** - * Does placeholder replacements in the style according to + * Does placeholder replacements in the style according to * the ones defined in a templates style.ini file * * @author Andreas Gohr <andi@splitbrain.org> @@ -245,6 +245,7 @@ function css_loadfile($file,$location=''){ * @author Andreas Gohr <andi@splitbrain.org> */ function css_pluginstyles($mode='screen'){ + global $lang; $list = array(); $plugins = plugin_list(); foreach ($plugins as $p){ @@ -258,6 +259,9 @@ function css_pluginstyles($mode='screen'){ $list[DOKU_PLUGIN."$p/style.css"] = DOKU_BASE."lib/plugins/$p/"; $list[DOKU_PLUGIN."$p/screen.css"] = DOKU_BASE."lib/plugins/$p/"; } + if($lang['direction'] == 'rtl'){ + $list[DOKU_PLUGIN."$p/rtl.css"] = DOKU_BASE."lib/plugins/$p/"; + } } return $list; } |