tensh |
|
---|---|
Hi; I want to include a tpl based on location and lang.
<!-- IF {PHP.env.ext} == "contact" AND {PHP.lang} == 'pl' --> {FILE "{PHP.cfg.themes_dir}/{PHP.theme}/inc/pl-{PHP.env.ext}.tpl"} <!-- ENDIF --> but this one doesn't work: <!-- IF {PHP.env.ext} == "contact" --> {FILE "{PHP.cfg.themes_dir}/{PHP.theme}/inc/{PHP.lang}-{PHP.env.ext}.tpl"} <!-- ENDIF --> Why? The second one would be easier, now I have to repeat the same code for all 3 languages |