">Add menu item</a> </p> <p><?php echo $menu->description; ?> </p> <?php if (count($menu->items) > 0) { ?> <ul> <?php for ($i = 0; $i < count($menu->items); $i++) { echo $menu->items[$i]->getItemHtml(true); } ?> </ul> <?php } else { ?> <p>This menu currently has no items. Use the <strong>Add menu item</strong> link above to add items to the menu.</p> <?php } } else { ?> <p>The menu could not be found.</p> <p><a href="<?php echo PathMap::map_path('sitemenus', 'index'); ?> ">Return to menu list</a></p> <?php }
$aPath = str_replace('index.php?q=', '', $aPath); $aPath = explode('/', $aPath); $i = 0; while ($aPath[$i] != 'fabriqinstall' && $i < count($aPath)) { $appPath .= $aPath[$i] . '/'; $i++; } $_FAPP['url'] = "http://{$_SERVER['HTTP_HOST']}"; $_FAPP['apppath'] = str_replace('//', '/', $appPath); } // require the core files FabriqStack::requireCore(); // check if user is logged in and if not give viewer // unathenticated role FabriqStack::checkUserStatus(); // determine the controller and action to render PathMap::map_path(); // determine which template to set initially FabriqTemplates::init(); // include the controller and action files if (file_exists('sites/' . FabriqStack::site() . '/app/controllers/application.controller.php')) { require_once 'sites/' . FabriqStack::site() . '/app/controllers/application.controller.php'; } else { require_once 'app/controllers/application.controller.php'; } FabriqStack::processQueue(); FabriqTemplates::render(); // close the database connection if ($installed) { $db->close(); }