7
sorry it needs a correction:
<{include file="YOUR_THEME_NAME/theme_$xoops_langcode.html"}>
Quote:
Do you have any easier method ?
yes i have the easiest method:
thanks to rowdi now we be able to have RTL themes without any touch to original English themes.
it means you just upload an LTR theme and it will be RTL in Arabic automatically.
but you always need to do some modifications like mirror images, logo , ...this is just works in 2.0.14+ ( not 2.2)
open footer.php and add these lines:
// Start rowdi/irmtfan addition: assign the language css file to the template, if required
if ( file_exists(XOOPS_ROOT_PATH."/language/".$GLOBALS['xoopsConfig']['language']."/css/"._LANGCODE.".css") ) {
$xoTheme->addStylesheet( "/language/".$GLOBALS['xoopsConfig']['language']."/css/"._LANGCODE.".css", array( "media" => "screen" ) );
}
if ( file_exists(XOOPS_ROOT_PATH."/language/".$GLOBALS['xoopsConfig']['language']."/js/"._LANGCODE.".js") ) {
$xoTheme->addScript( "/language/".$GLOBALS['xoopsConfig']['language']."/js/"._LANGCODE.".js", array( "type" => "text/javascript" ) );
}
// End rowdi/irmtfan addition
right BEFORE:
$xoTheme->render();
then put your RTL css file in language/YOUR_LANG/css/YOUR_LANG_CODE.css
ex: language/persian/css/fa.css
another edit:
i create a highly modified RTL style fa.css.
you can find it in the latest persian core patch for 2.0.16:
http://dev.xoops.org/modules/xfmod/project/showfiles.php?group_id=1164
you can use this patch for arabic without any problem just add your lang to language folders.