Location: PHPKode > projects > Anahita Social Engine > dependencies/plg_system_socialengine/socialengine/uikit/view/uikit.php
<?php
/**
 * @version		1.0.0
 * @category	Anahita Social Engine™
 * @copyright	Copyright (C) 2008 - 2009 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 AnUikitViewUikit extends AnUikitViewHtml
{
	public function __construct($options)
	{
		parent::__construct($options);
		
		if  ( count($this->getIdentifier()->path) == 1 ) {
			$path = dirname(KLoader::path($this->getIdentifier())).DS.$this->getIdentifier()->name.DS.'tmpl';
			$this->addTemplatePath($path);
		}
		
		if  ( count($this->getIdentifier()->path) == 1 )
			$name	  = $this->getIdentifier()->name;
		else			
			$name 	  = $this->getIdentifier()->path[ count($this->getIdentifier()->path) - 1];

		$path 	  = 'templates'.DS.KFactory::get('lib.joomla.application')->getTemplate().DS.'html'.DS.'uikit'.DS.$name;

		$this->addTemplatePath($path);
				
	}
}
Return current item: Anahita Social Engine