Kunena Menu
Drop logo position
13 years 7 months ago #9897
by yugi_oh
Drop logo position was created by yugi_oh
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 ?
Please Log in or Create an account to join the conversation.
13 years 7 months ago #9906
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Drop logo position
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
The following user(s) said Thank You: yugi_oh
Please Log in or Create an account to join the conversation.
13 years 7 months ago #9918
by yugi_oh
Replied by yugi_oh on topic Drop logo position
thank you in advance ...
Please Log in or Create an account to join the conversation.
Time to create page: 0.197 seconds




