Esempio n. 1
0
function getMenu()
{
    DrawMenu(currentPageDirectory() . "sub_menu.txt");
}
Esempio n. 2
0
function DrawMenu($menuFileName)
{
    if (file_exists(currentPageDirectory() . $menuFileName)) {
        $menu = BuildMenu(currentPageDirectory() . $menuFileName);
    } else {
        $menu = BuildMenu($menuFileName);
    }
    $menu->Draw(currentPageName(), nunitRelease());
}
Esempio n. 3
0
<?php

getHeader();
?>

<div id="content">

<?php 
include currentPageDirectory() . currentPageName() . ".html";
?>

</div>

<?php 
if (file_exists(currentPageDirectory() . "sub_menu.txt")) {
    getSidebar();
}
?>

<?php 
getFooter();