FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Help requests




Post new topic Reply to topic  [ 2 posts ] 
 
Author Message
 Post subject: Retrieve current language in theme
 Post Posted: Wed Feb 16, 2011 2:25 pm 
Offline

Joined: Wed Oct 27, 2010 5:27 pm
Posts: 22
Hi Team,

Is there an easy way for me to retrieve the current language? My website uses two languages.
I need to use a conditional statement to display an image or another in the theme. (call to action button - image)

Thanks a lot in advance,

Isabelle,


Top 
 Profile  
 
 Post subject: Re: Retrieve current language in theme
 Post Posted: Wed Feb 16, 2011 2:45 pm 
Offline

Joined: Wed Oct 27, 2010 5:27 pm
Posts: 22
Is this the good way to proceed:
Code:
$zo = $site->getCurrentLanguage();
echo $zo->getShortDescription ();


Thanks guys,


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 2 posts ] 

Board index » Development » Help requests


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron