Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/www/i-plan.ru/modules/mod_yuicons/
Upload File :
Current File : /var/www/iplanru/data/www/i-plan.ru/modules/mod_yuicons/helper.php

<?php

defined('_JEXEC') or die;


class modYuiconsHelper
{
	public static function getItems($ipath)
	{
		$item=explode("\r\n",$ipath);
		foreach ($item as $value)
			$h[]=modYuiconsHelper::getItem($value);
		return implode("\r",$h);
	}
	
	public static function getItem($str)
	{
		list($pic,$link,$title,$width)=explode("|",$str);
		if (empty($width)) $width="33";
		return "<div style=\"width: {$width}%;\">
						<a href=\"".JRoute::_($link)."\" title=\"Нажмите для перехода\">
							<img src=\"{$pic}\">
						</a>
						<span>
							<a href=\"".JRoute::_($link)."\" title=\"Нажмите для перехода\">{$title}</a>
						</span>
						
					</div>
				";
	}
}