How to include a language-dependent banner?

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeHow to include a language-dependent banner?

This topic has been marked as resolved.

Hi,

I am trying to include a small banner in the footer, in the 4th (last) column, after the Facebook followers. This banner (.gif) is language-dependent (en.gif, ru.gif, fr.gif…). I’ve already located the relevant Shoppica-2 file (catalog\view\theme\shoppica2\template\common\footer.tlp) to make the changes, however despite I have programmed in the past I’ve never done so in PHP therefore I’m completely lost on basic syntax of this language as well as how to handle variables.

I’ve written hereafter in pseudo-language the routine that I’d need. Can anyone spare a couple of minutes to tell me how to write this in PHP?.

if user-choosen-language is English then
show “en.gif”
elseif user-choosen-language is Russian then
show “ru.gif”
else
show “fr.gif”
endif

Thanks a lot!
Enric

  • This reply was modified 4283 days ago by  enric.
  • This reply was modified 4283 days ago by  enric.
  • This reply was modified 4283 days ago by  enric.
  • This reply was modified 4283 days ago by  enric.
  • This reply was modified 4283 days ago by  enric. Reason: wrong forum!
 enric
August 14, 2012 at 10:47 am #12410
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
August 15, 2012 at 1:20 pm #12497

Thanks again!.

 enric
August 15, 2012 at 5:34 pm #12534

You are welcome, mate :)

Best,
ThemeBurn team

August 20, 2012 at 11:33 am #12682
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.