Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
include menu in template
Hi,
How do I include a menu.php file to my template
Part of my template code:
echo '<div id="Header">
<a name="pgtop"></a>
<div id="Title"><a href="'.GetUrl($this->Context->Configuration, 'index.php').'">'.$this->Context->Configuration['BANNER_TITLE'].'</a></div>';
$this->CallDelegate('PreBodyRender');
echo '<div id="nav"><div class="width"><ul>';
while (list($Key, $Tab) = each($this->Tabs)) {
echo '<li'.$this->TabClass($this->CurrentTab, $Tab['Value']).'><a href="'.$Tab['Url'].'" '.$Tab['Attributes'].'>'.$Tab['Text'].'</a></li>';
}
echo '</ul></div></div></div>';
$this->CallDelegate('PreBodyRender');
echo '<div id="Main">';
?>
I need the menu.php to be included above <div id="nav">. So how do i place <?php include("menu.php"); ?> into that code correctly?
0
This discussion has been closed.
Comments