Drop logo position
Hello all , I want to place a Vertical Maximenuck in my site which is supposed to be on the right side of the screen (the language is Right to left and this website is supposed to be multilingual [English-Persian]) . However, since Persian is right to left, this logo is supposed to be on left side of the menu (sub menus are gonna open from left). I found the code to change the placement , but the problem is that it will be change for English as well (in English version this menu is supposed to be on left side of the website and the Drop logo Should be on right)... what should I do to have the drop logo on left for Persian, and on right for English ?
by yugi_oh
Please Log in or Create an account to join the conversation.
Hi
you can detect the language direction with this :
then add the position according the direction of the language
CEd
you can detect the language direction with this :
Code:
$document = JFactory::getDocument();
$langdirection = $document->getDirection();
if ($langdirection == 'rtl') { ... }
CEd
Joomlack Webmaster and Developer
by ced1870
The following user(s) said Thank You: yugi_oh
Please Log in or Create an account to join the conversation.
Time to create page: 0.735 seconds