Jump to content

Check whether the language is RTL or LTR in TPL file


Soheil Gh

Recommended Posts

hello all.

 

 

i design a theme for prestashop 1.4 .

it support both RTL & LTR language

 

i change a few detail in tpl file .

so i need to check language is ltr or rtl in tpl file

 

 

i override classes and controllers

 

in php file

to check it

such this

 

$language = new Language($cookie->id_lang);

if ($language->is_rtl)

 

 

but i need check in a tpl file

 

someone know how i do it

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...