%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 : /var/www/html/old/plugins/editors/jckeditor/fields/ |
Upload File : |
<?php /* * copyright (C) 2009, 2010 Paolo Casaschi * for credits, license and more details */ defined('JPATH_BASE') or die; jimport('joomla.form.formfield'); /** * Form Field class for the Joomla Framework. * * @package Joomla.Framework * @subpackage Form * @since 1.6 */ class JFormFieldJSColor extends JFormField { /** * The form field type. * * @var string * @since 1.6 */ protected $type = 'JSColor'; /** * Method to get the field input markup. * * @return string The field input markup. * @since 1.6 */ protected function getInput() { global $JElementJSColorJSWritten; if (!$JElementJSColorJSWritten) { //Fixes issue where Joomla decided not to define the DS. defined( 'DS' ) or define('DS',DIRECTORY_SEPARATOR); $jsFile = dirname(__FILE__) . DS . ".." . DS . "jscolor" . DS . "jscolor.js"; $jsUrl = str_replace(JPATH_ROOT, JURI::root(true), $jsFile); $jsUrl = str_replace(DS, "/", $jsUrl); $document = JFactory::getDocument(); $document->addScript( $jsUrl ); $JElementJSColorJSWritten = TRUE; } // Initialize JavaScript field attributes. $onchange = $this->element['onchange'] ? ' onchange="'.(string) $this->element['onchange'].'"' : ''; $class = ' class="color"'; return '<input type="text" name="'.$this->name.'" id="'.$this->id.'"' . ' value="'.htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8').'"' . $class.$onchange.'/>'; } }