Hi;
I want to include a tpl based on location and lang.
This code works:
PHP
1 2 3 4 5 |
<!-- 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:
PHP
1 2 3 4 5 |
<!-- 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