menu.php
1.06 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
<?php
class menu
{
private $entries;
function menu ()
{
$this->entries = array (
'about' => array (_('About'), 'content.tpl.php'),
'news' => array (_('News'), 'content.tpl.php'),
'personal' => array (_('Personel'), 'content.tpl.php'),
'sources' => array (_('Sources'), 'source.tpl.php'),
'phil' => array (_('Philosophical'), 'content.tpl.php'),
'bookrev' => array (_('Bookreview'), 'content.tpl.php'),
'movierev' => array (_('Moviereview'), 'content.tpl.php'),
'anime' => array (_('Anime-series/movies'), 'content.tpl.php'),
'gnu' => array (_('GNU/Linux'), 'content.tpl.php'),
'guestbook' => array (_('Guestbook'), 'guestbook.tpl.php'),
'links' => array (_('Links'), 'content.tpl.php')
);
}
function menuGet ()
{
return $this->entries;
}
function menuGetIds ()
{
return array_keys ($this->entries);
}
function menuGetTextById ($id)
{
return $this->entries[$id][0];
}
function menuGetTplById ($id)
{
return $this->entries[$id][1];
}
}
?>