1
I am trying to use this code php in theme.html but does not work for me.
Why?
<div id="navcontainer">
<ul id="navlist">
<{php}>
if ($xoops_pagetitle =="News"){
echo "<li id="active"><a href="/modules/news" id="current">Home</a></li>";
} else {
echo "<li><a href="$xoops_url/modules/news">Home</a></li>";
}
if ($xoops_pagetitle =="Forum"){
echo "<li id="active"><a href="/modules/newbb" id="current">Forum</a></li>";
} else {
echo "<li><a href="/modules/newbb">Forum</a></li>";
}
if ($xoops_pagetitle=="xxxx"){
echo "<li id="active"><a href="link1.php" id="current">link3</a></li>";
} else {
echo "<li><a href="#">link2</a></li>";
}
<{/php}>
</ul>
</div>
I can use another smarty tag for example $xoops_url
how?