Hello All,
(Osclass version 3.8. / bender theme)
I've been trying to write a simple php "if" statement. The results have been...amusing. Even though the below has errors, I think you can see what I'm trying to do in search.php:
<?php
if (osc_category_name($locale = "115")) {echo "<h1>Wording For Category 115</h1>";}
elseif (osc_category_name($locale = "159")) {echo "<h1>Wording For Category 159</h1>";}
else {echo "<h1>all else</h1>";}
?>
And, of course, it's wrong. It outputs "Wording For Cagegory 115" on all the pages. I've been at it a while and looking at a lot of examples on the Web but can't see my mistake(s).
If someone could help me correct the above I would appreciate any assistance.
Thanks.