PageRenderTime 75ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/contentmanager/code/trunk/administrator/components/com_contentmanager/libraries/jxtended/form/html/decorators/email.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 26 lines | 9 code | 2 blank | 15 comment | 0 complexity | 3abdba04ba69fbff1399de97c9909b18 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: email.php 160 2009-07-09 00:06:09Z eddieajau $
  4. * @package JXtended.Libraries
  5. * @subpackage Form
  6. * @copyright Copyright (C) 2008 - 2009 JXtended, LLC. All rights reserved.
  7. * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
  8. * @link http://jxtended.com
  9. */
  10. defined('JPATH_BASE') or die;
  11. /**
  12. * Decorates an email link
  13. *
  14. * @static
  15. * @package JXtended.Libraries
  16. * @subpackage Forms
  17. */
  18. class JXDecoratorEmail
  19. {
  20. function render($value, $text = '', $options = null)
  21. {
  22. return JHTML::link('mailto:'.$value, ($text ? $text : $value), $options);
  23. }
  24. }