%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/old/modules/mod_pwebbox/form/fields/ |
Upload File : |
<?php /** * @package pwebbox * @version 2.0.0 * * @copyright Copyright (C) 2015 Perfect Web. All rights reserved. http://www.perfect-web.co * @license GNU General Public Licence http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die( 'Restricted access' ); JFormHelper::loadFieldClass('List'); /** * IcoMoon select list */ class JFormFieldPwebIcoMoon extends JFormFieldList { public $type = 'PwebIcoMoon'; protected function getInput() { $doc = JFactory::getDocument(); if (is_file(JPATH_ROOT.'/media/jui/css/icomoon.css')) { $doc->addStyleSheet(JUri::root(true).'/media/mod_pwebbox/css/icomoon.css'); $doc->addStyleDeclaration( '#'.$this->id.','. '#'.$this->id.'_chzn ul li,'. '#'.$this->id.'_chzn .chzn-single span'. '{font-size:18px;font-family:\'IcoMoon\'}'. '.icon-48-module{height:auto;width:auto}' ); $html = parent::getInput(); } else { JHtml::_('behavior.framework'); $doc->addScriptDeclaration( 'window.addEvent("domready",function(){'. '$$("#'.$this->formControl.'_'.$this->group.'_icon3").setProperty("disabled","disabled").each(function(el){'. '$$("label[for="+el.get("id")+"]").addClass("disabled").removeEvents("click");'. '});'. '});' ); $doc->addStyleDeclaration( 'label.disabled{color:#aaa}' ); $html = '<span class="badge badge-warning">'.JText::_('MOD_PWEBBOX_ICOMOON_NOT_INSTALLED').'</span>'; if (version_compare(JVERSION, '3.0.0') == -1) { $html = '<div class="fltlft">'.$html.'</div>'; } } if ($this->element['hidden']) { require_once 'fieldhelper.php'; return modPwebboxFieldHelper::generateFieldWithLabel($this->id, $html, $this->element['label'], $this->element['description'], $this->required, $this->element['pweb_showon']); } return $html; } protected function getOptions() { $options = array(); $css = file_get_contents(JPATH_ROOT.'/media/jui/css/icomoon.css'); if (preg_match_all('/\.(icon-[^:]+):before\s*\{\s*content:\s*"\\\([^"]+)";\s*\}/i', $css, $matches, PREG_SET_ORDER)) { foreach ($matches as $icon) { $options[] = JHtml::_('select.option', $icon[2], '&#x'.$icon[2].';'); } } // Merge any additional options in the XML definition. $options = array_merge(parent::getOptions(), $options); return $options; } }