1
CiberEspia
php in theme.html

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 
"active">/modules/news" id="current">Home"
} else { 
    echo 
"
  • $xoops_url/modules/news">Home
  • "


    if (
    $xoops_pagetitle =="Forum"){ 
        echo 
    "active">/modules/newbb" id="current">Forum"
    } else { 
        echo 
    "
  • /modules/newbb">Forum
  • "


    if (
    $xoops_pagetitle=="xxxx"){ 
        echo 
    "active">link1.php" id="current">link3"
    } else { 
        echo 
    "
  • #">link2
  • "; 

    <{/
    php}> 
    ul
    div>


    I can use another smarty tag for example $xoops_url
    how?

    2
    Mithrandir
    Re: php in theme.html

    why do you use <{php}> tags?

    <div id="navcontainer">
    <
    ul id="navlist">
    <{if 
    $xoops_pagetitle == "News"}>
        <
    li id="active"><a href="/modules/news"
    id="current">Homea>li>
    <{else}> 
        <
    li><a
    href
    ="$xoops_url/modules/news">Homea>li>
    <{/if}>
    <{if 
    $xoops_pagetitle == "Forum"}>
        <
    li id="active"><a href="/modules/newbb"
    id="current">Foruma>li>
    <{else}> 
        <
    li><a
    href
    ="/modules/newbb">Foruma>li>
    <{/if}>
    ul
    div>

    Should work fine.

    Login

    Who's Online

    370 user(s) are online (211 user(s) are browsing Support Forums)


    Members: 0


    Guests: 370


    more...

    Donat-O-Meter

    Stats
    Goal: $100.00
    Due Date: Nov 30
    Gross Amount: $0.00
    Net Balance: $0.00
    Left to go: $100.00
    Make donations with PayPal!

    Latest GitHub Commits