Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

option to rtl style-sheet [Solved]
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: option to rtl style-sheet [Solved]
#8958
option to rtl style-sheet [Solved] 14 Years ago Karma: 0
hello ,

i have mutual language site (Arabic , English) . I need to add right to left style-sheet file if site direction is rtl and use main css menu style-sheet if user change language to English "direction to rtl "

site link
www.alexandriafencingclub.com/beta/

translation to English by Google translate
translate.google.com/translate?hl=ar&sl=ar&tl=en&u=http%3A%2F%2Fwww.alexandriafencingclub.com%2Fbeta%2F
thank you
Last Edit: 2010/11/23 13:19 By Scout4all.
The administrator has disabled public write access.
 
#8961
Re:option to rtl style-sheet depending on page dir 14 Years ago Karma: 760
Hello,

You can modify <joomla_directory>\modules\mod_ariextmenu\mod_ariextmenu\kernel\ExtMenu\class.ExtMenu.php file and use the following code that detect RTL language is used or not:

Code:


$lang =& JFactory::getLanguage();
if ($lang->isRTL())
{
  // RTL language
}
else
{
  // Non RTL language
}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#8962
Re:option to rtl style-sheet depending on page dir 14 Years ago Karma: 0
admin wrote:
Hello,

You can modify <joomla_directory>\modules\mod_ariextmenu\mod_ariextmenu\kernel\ExtMenu\class.ExtMenu.php file and use the following code that detect RTL language is used or not:

Code:


$lang =& JFactory::getLanguage();
if ($lang->isRTL())
{
  // RTL language
}
else
{
  // Non RTL language
}



Regards,
ARI Soft


thank you for answer

but i am beginner in php
where i could put this code and how i can call my rtl css file .
"my style-sheet file name is menu_rtl.css i put it in to
Code:

<joomla_directory>\modules\mod_ariextmenu\mod_ariextmenu\js\css\
"
The administrator has disabled public write access.
 
#8964
Re:option to rtl style-sheet depending on page dir 14 Years ago Karma: 760
Find updated class.ExtMenu.php file in attach.

File Attachment:
File Name: class.zip
File Size: 770


Regards,
ARI Soft
The administrator has disabled public write access.
 
#8965
Re:option to rtl style-sheet depending on page dir 14 Years ago Karma: 0
thank you solved

Regards,
The administrator has disabled public write access.
 
#18840
Re:option to rtl style-sheet depending on page dir 13 Years, 3 Months ago Karma: 0
Hello
I replaced this updated class.ExtMenu.php file in ARI Ext Menu module and it was rtl, but submenu appears on the parent menu and I want submenu appears in the left side of parent menu
this is my site:
karashar.com/persian/

please tell me what should I do?
Thanks
The administrator has disabled public write access.
 
Go to topPage: 12