I know that we can get current language in Joomla by
$lang = JFactory::getLanguage();
echo 'Current language is: ' . $lang->getName();
now I want to know "How to get direction of current language in joomla 2.5?"
I try to use
dir="<?php echo $this->direction; ?>"
but It's not work and it returns empty string.