Hi Susan,
There is a more professional solution for this problem. I will post it as soon as possible too. Thank you for your attention.
Oh! I corrected my wrong code. I do apologize (== instead of =)
:
<body style="direction: <?php echo((get_current_language() == 'fa' || get_current_language() == 'ar' || blabla) ? 'rtl' : 'ltr'); ?>">
Even for more usability in stylesheets you can do it for HTML tag:
<html ... dir="<?php echo(get_current_language() == 'fa' ? 'rtl' : 'ltr'); ?>">
Then, in css files you can do something like:
.{class_name}
{
#your styles for ltr languages
}
html[dir="rtl"] .{class_name}
{
#your styles for rtl languages
}
for example, exchange right padding and left paddings when is necessary.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.