Drop logo position

Drop logo position was created by yugi_oh

Posted 11 years 1 month ago #9897
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.

Replied by ced1870 on topic Drop logo position

Posted 11 years 1 month ago #9906
Hi
you can detect the language direction with this :
Code:
$document = JFactory::getDocument(); $langdirection = $document->getDirection(); if ($langdirection == 'rtl') { ... }
then add the position according the direction of the language
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.

Replied by yugi_oh on topic Drop logo position

Posted 11 years 1 month ago #9918
thank you in advance ...
by yugi_oh

Please Log in or Create an account to join the conversation.

Time to create page: 0.735 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 654 guests and no members online