Location: PHPKode > projects > Anahita Social Engine > site/views/html.php
<?php
/**
 * @category	Anahita Social Engine™
 * @copyright	Copyright (C) 2008 - 2010 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     	http://www.anahitapolis.com
 */

class ComSocialengineViewHtml extends AnUikitViewHtml
{	
	protected function getMenuTitle()
	{
		
		$menu = KFactory::get('lib.joomla.application')->getMenu();
		
		if ($menu) 
		{
			$menuItems = $menu->getItems('link', 'index.php?option='.$this->getIdentifier()->package.'&view='.$this->getName(), true);					
			return ($menuItems) ? $menuItems->name : false; 
		} 
		
		return false;
	}
	
	protected function _setPageHeaderFromMenu()
	{
		$header = KFactory::get('lib.anahita.uikit.header.page')->setTitle($this->getMenuTitle());		
		$this->assign('header', $header);
	}
	
//end class
}

Return current item: Anahita Social Engine