-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmenu.php
More file actions
55 lines (45 loc) · 1.34 KB
/
menu.php
File metadata and controls
55 lines (45 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/**
* This file is part of the Achievo ATK distribution.
* Detailed copyright and licensing information can be found
* in the doc/COPYRIGHT and doc/LICENSE files which should be
* included in the distribution.
*
* This file is the skeleton menu loader, which you can copy to your
* application dir and modify if necessary. By default, it checks
* the menu settings and loads the proper menu.
*
* @package atk
* @subpackage skel
*
* @author Ivo Jansch <ivo@achievo.org>
* @author Peter C. Verhage <peter@ibuildings.nl>
*
* @copyright (c)2000-2004 Ibuildings.nl BV
* @license http://www.achievo.org/atk/licensing ATK Open Source License
*
* @version $Revision$
* $Id$
*/
/**
* @internal includes
*/
$config_atkroot = "./";
include_once("atk.inc");
atksession();
atksecure();
require "theme.inc";
atkimport("atk.ui.atktheme");
$output = &atkOutput::getInstance();
$page = &atkinstance("atk.ui.atkpage");
$page->unregister_all_scripts();
$theme = &atkTheme::getInstance();
$ui = &atkinstance("atk.ui.atkui");
/* general menu stuff */
/* load menu layout */
atkimport("atk.menu.atkmenu");
$menu = &atkMenu::getMenu();
if (is_object($menu)) $output->output($menu->render());
else atkerror("no menu object created!");;
$output->outputFlush();
?>