diff --git a/config_defaults_inc.php b/config_defaults_inc.php index 82f16f4f19..930df62c44 100644 --- a/config_defaults_inc.php +++ b/config_defaults_inc.php @@ -2746,6 +2746,13 @@ */ $g_css_include_file = 'css/default.css'; + /** + * RTL CSS file + * @global string $g_css_rtl_include_file + */ + $g_css_rtl_include_file = 'css/rtl.css'; + + /** * meta tags * @global string $g_meta_include_file diff --git a/core/config_api.php b/core/config_api.php index 51c506a1f4..bbc1e28149 100644 --- a/core/config_api.php +++ b/core/config_api.php @@ -597,6 +597,7 @@ function config_is_private( $p_config_var ) { case 'bottom_include_page': case 'top_include_page': case 'css_include_file': + case 'css_rtl_include_file': case 'meta_include_file': case 'log_level': case 'log_destination': diff --git a/core/html_api.php b/core/html_api.php index 03d93b75ff..28c6a87b3b 100644 --- a/core/html_api.php +++ b/core/html_api.php @@ -304,6 +304,12 @@ function html_css() { $t_css_url = config_get( 'css_include_file' ); echo "\t", '', "\n"; + # Add right-to-left css if needed + if( lang_get( 'directionality' ) == 'rtl' ) { + $t_css_rtl_url = config_get( 'css_rtl_include_file' ); + echo "\t", '', "\n"; + } + # fix for NS 4.x css echo "\t", '