try to use new style rtl
open defaut.php
line 39
add:
<?php echo $this->direction; ?>
become:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
and open heder.php
add:
<?php
//Get the current language direction
$language = &JFactory::getLanguage();
// Get Loaded Modules
$modules = &JModuleHelper::_load();
// Get Loaded Modules' Name
$module_names = array();
foreach ( $modules as $module ){
if ( !in_array( $module->module, $module_names ) ){
array_push ( $module_names, $module->module );
}
}
foreach ( $module_names as $module_name ){
if ( $language->isRTL() ){
if ( is_file( JPATH_THEMES.DS.$mainframe->getTemplate().DS.'css'.DS."rtl".DS.$module_name.".css" ) ){
JHTML::stylesheet($module->module.".css",'templates/'.$mainframe->getTemplate().'/css/rtl/');
}
}
else{
if ( is_file( JPATH_THEMES.DS.$mainframe->getTemplate().DS.'css'.DS.$module_name.".css" ) ){
JHTML::stylesheet($module->module.".css",'templates/'.$mainframe->getTemplate().'/css/');
}
}
}
?>
sory for my bad english