HTML interesse |
|
Ik heb die code nu in header.php gezet:
<map id="top2in" name="top2in">
<area shape="rect" alt="" coords="11,10,43,21" href="http://www.offtopique.be/forums/profile.php?mode=editprofile" title="Profiel" />
<area shape="rect" alt="" coords="51,10,121,22" href="http://www.offtopique.be/forums/privmsg.php?folder=inbox" title="Privéberichten" />
<area shape="rect" alt="" coords="132,9,160,20" href="http://www.offtopique.be/forums/memberlist.php" title="Leden" />
<area shape="rect" alt="" coords="171,11,206,21" href="http://www.offtopique.be/forums/search.php" title="Zoeken" />
<area shape="rect" alt="" coords="216,10,262,21" href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" />
<area shape="default" nohref="nohref" alt="" />
</map>
<map id="top2out" name="top2out">
<area shape="rect" alt="" coords="12,11,56,21" href="http://www.offtopique.be/forums/profile.php?mode=register" title="Registreer" />
<area shape="rect" alt="" coords="66,10,94,21" href="http://www.offtopique.be/forums/memberlist.php" title="Leden" />
<area shape="rect" alt="" coords="104,10,139,22" href="http://www.offtopique.be/forums/search.php" title="Zoeken" />
<area shape="rect" alt="" coords="149,9,193,22" href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" />
<area shape="default" nohref="nohref" alt="" />
</map>
<?php
if(loggin()) {
echo "<img src='http://www.offtopique.be/forums/templates/offtopique/images/top2in.gif' usemap='#top2in' alt='' style='border-style:none' />";
} elseif(!loggin()) {
echo "<img src='http://www.offtopique.be/forums/templates/offtopique/images/top2out.gif' usemap='#top2out' alt='' style='border-style:none' />";
}
?>
<map id="top2in" name="top2in"> <area shape="rect" alt="" coords="11,10,43,21" href="http://www.offtopique.be/forums/profile.php?mode=editprofile" title="Profiel" /> <area shape="rect" alt="" coords="51,10,121,22" href="http://www.offtopique.be/forums/privmsg.php?folder=inbox" title="Privéberichten" /> <area shape="rect" alt="" coords="132,9,160,20" href="http://www.offtopique.be/forums/memberlist.php" title="Leden" /> <area shape="rect" alt="" coords="171,11,206,21" href="http://www.offtopique.be/forums/search.php" title="Zoeken" /> <area shape="rect" alt="" coords="216,10,262,21" href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" /> <area shape="default" nohref="nohref" alt="" /> </map> <map id="top2out" name="top2out"> <area shape="rect" alt="" coords="12,11,56,21" href="http://www.offtopique.be/forums/profile.php?mode=register" title="Registreer" /> <area shape="rect" alt="" coords="66,10,94,21" href="http://www.offtopique.be/forums/memberlist.php" title="Leden" /> <area shape="rect" alt="" coords="104,10,139,22" href="http://www.offtopique.be/forums/search.php" title="Zoeken" /> <area shape="rect" alt="" coords="149,9,193,22" href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" /> <area shape="default" nohref="nohref" alt="" /> </map> <?php if(loggin()) { echo "<img src='http://www.offtopique.be/forums/templates/offtopique/images/top2in.gif' usemap='#top2in' alt='' style='border-style:none' />"; } elseif(!loggin()) { echo "<img src='http://www.offtopique.be/forums/templates/offtopique/images/top2out.gif' usemap='#top2out' alt='' style='border-style:none' />"; } ?>
Nu wil ik dit bestand includen in mijn overall_header.tpl, maar in een .tpl bestand kan je geen PHP gebruiken. Hoe moet ik dat oplossen? |