<?php
/**
 * @version		$Id: email.php 379 2009-06-17 07:16:53Z eddieajau $
 * @package		JXtended.Libraries
 * @subpackage	Form
 * @copyright	Copyright (C) 2008 - 2009 JXtended, LLC. All rights reserved.
 * @license		GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
 * @link		http://jxtended.com
 */

defined('JPATH_BASE') or die;

/**
 * Decorates an email link
 *
 * @static
 * @package		JXtended.Libraries
 * @subpackage	Forms
 */
class JXDecoratorEmail
{
	function render($value, $text = '', $options = null)
	{
		return JHTML::link('mailto:'.$value, ($text ? $text : $value), $options);
	}
}