| cnr d |
|
|---|---|
|
Hey everyone Is there any way Display different image for each language in template? |
| Twiebie |
|
|---|---|
|
You could use something like:
<!-- IF {PHP.usr.lang} == 'en' -->
<img src="yourimagehere" />
<!-- ENDIF -->
Where 'en' is the code of the language pack, so you could replace that with 'nl' or 'ru', etc. |
| Kort |
|
|---|---|
|
Alternatively you can just use
<img src="themes/{PHP.theme}/img/somepic-{PHP.usr.lang}.jpg" alt="" />
- provided you've got somepic-en.jpg etc in the img folder SED.by - создание сайтов, разработка плагинов и тем для Котонти
|