Skip to content
Snippets Groups Projects
Commit 208c0215 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

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
parent 20ed4822
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ function css_out(){ ...@@ -31,7 +31,7 @@ function css_out(){
global $conf; global $conf;
global $lang; global $lang;
switch ($_REQUEST['s']) { switch ($_REQUEST['s']) {
case 'all': case 'all':
case 'print': case 'print':
case 'feed': case 'feed':
$style = $_REQUEST['s']; $style = $_REQUEST['s'];
...@@ -147,7 +147,7 @@ function css_cacheok($cache,$files){ ...@@ -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 * the ones defined in a templates style.ini file
* *
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
...@@ -245,6 +245,7 @@ function css_loadfile($file,$location=''){ ...@@ -245,6 +245,7 @@ function css_loadfile($file,$location=''){
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
*/ */
function css_pluginstyles($mode='screen'){ function css_pluginstyles($mode='screen'){
global $lang;
$list = array(); $list = array();
$plugins = plugin_list(); $plugins = plugin_list();
foreach ($plugins as $p){ foreach ($plugins as $p){
...@@ -258,6 +259,9 @@ function css_pluginstyles($mode='screen'){ ...@@ -258,6 +259,9 @@ function css_pluginstyles($mode='screen'){
$list[DOKU_PLUGIN."$p/style.css"] = DOKU_BASE."lib/plugins/$p/"; $list[DOKU_PLUGIN."$p/style.css"] = DOKU_BASE."lib/plugins/$p/";
$list[DOKU_PLUGIN."$p/screen.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; return $list;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment