/
home
/
assocoweys
/
fiacat
/
plugins
/
system
/
jqueryeasy
/
fields
/
Upload File
HOME
<?php /** * @copyright Copyright (C) 2011 Simplify Your Web, Inc. All rights reserved. * @license GNU General Public License version 3 or later; see LICENSE.txt */ // no direct access defined( '_JEXEC' ) or die; jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); JFormHelper::loadFieldClass('dynamicsingleselectjqe'); class JFormFieldjQuerySelect extends JFormFieldDynamicSingleSelectJQE { public $type = 'jQuerySelect'; protected function getOptions() { $options = array(); $lang = JFactory::getLanguage(); $lang->load('plg_system_jqueryeasy.sys', JPATH_SITE); $path = '/plugins/system/jqueryeasy'; $options[] = array(0, JText::_('JNO'), '', JURI::root(true).$path.'/images/select_no.png'); $options[] = array(1, JText::_('PLG_SYSTEM_JQUERYEASY_VALUE_JQUERY'), '', JURI::root(true).$path.'/images/select_jquery.png'); $options[] = array(2, JText::_('PLG_SYSTEM_JQUERYEASY_VALUE_JQUERYUI'), '', JURI::root(true).$path.'/images/select_jquery_ui.png'); $options[] = array(3, JText::_('PLG_SYSTEM_JQUERYEASY_VALUE_JQUERYMOBILE'), '', JURI::root(true).$path.'/images/select_jquery_mobile.png', '', 'disabled'); return $options; } public function setup(SimpleXMLElement $element, $value, $group = null) { $return = parent::setup($element, $value, $group); if ($return) { $this->width = 101; $this->height = 96; } return $return; } } ?>