menu.php 1.06 KB
<?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];
		}
	}

?>