Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/old/www/i-plan.ru/administrator/components/com_jumi/module/tmpl/
Upload File :
Current File : /var/www/iplanru/data/old/www/i-plan.ru/administrator/components/com_jumi/module/tmpl/info.php

<?php
/**
* @version $Id: info.php 92 2009-02-15 17:08:02Z martin2hajek $
* @package Joomla! 1.5.x, Jumi plugin
* @copyright (c) 2009 Martin Hajek
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*
* Usage: in xml files write
* <param name="name visible" type="info" description="tooltip" myvar="anything" />
* 
*/ 
defined('_JEXEC') or die( 'Restricted access' );

class JElementInfo extends JElement
{
	function fetchElement( $name, $value, &$node, $control_name )
	{	//Just display Jumi Root	
		$myvar = ( isset( $node->_attributes['myvar'] ) ) ? $node->_attributes['myvar'] : '';
		if ( !$myvar ) {
			return '';
		}		
		return isset($GLOBALS['_JUMI_ROOT']) ? $GLOBALS['_JUMI_ROOT'].DS : JPATH_ROOT.DS;
	}
}