Location: PHPKode > scripts > Photos > photos/objects/class.menu_item.inc.php
<?php

// This file is part of Photos
// Copyright (c) 2001-2004 Alex King
// see LICENSE.txt for more information

class menu_item {
	var $confirm_nav;
	var $icon;
	var $link;
	var $text;
	var $tooltip;
	
	function menu_item($icon = 'images/clear.gif', $link = '', $text = '', $tooltip = '', $confirm_nav = 'return confirmNav();') {
		$this->icon = $icon;
		$this->link = $link;
		$this->text = $text;
		$this->tooltip = $tooltip;
		$this->confirm_nav = $confirm_nav;
	}
	function show() {
		print('				<li><a href="'.$this->link.'" '
		     .'title="'.$this->tooltip.'">'
		     .'<img src="'.$this->icon.'" class="icon" />'
		     .$this->text
		     .'</a></li>'."\n"
		     );
	}
}

?>
Return current item: Photos