| Current Path : /home/balossw/www/site2/modules/mod_sp_mednet_features/fields/ |
| Current File : /home/balossw/www/site2/modules/mod_sp_mednet_features/fields/icon.php |
<?php
/**
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (C) 2010 - 2016 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2
*/
defined('JPATH_BASE') or die;
jimport('joomla.form.formfield');
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');
class JFormFieldIcon extends JFormField {
protected $type = 'icon';
protected function getInput()
{
include(dirname(__FILE__) . '/hp-icons.php');
asort($sp_mednet_feature_icons);
foreach($sp_mednet_feature_icons as $icon)
{
$options[] = JHTML::_( 'select.option', $icon, ucfirst(str_replace('icon-', '', $icon)) );
}
return JHTML::_('select.genericlist', $options, 'jform[params]['.$this->fieldname.']', '', 'value', 'text', $this->value);
}
}