GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/Joomla/libraries/joomla/form/fields/ |
Upload File : |
<?php /** * @package Joomla.Platform * @subpackage Form * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Color Form Field class for the Joomla Platform. * This implementation is designed to be compatible with HTML5's <input type="color"> * * @package Joomla.Platform * @subpackage Form * @link http://www.w3.org/TR/html-markup/input.color.html * @since 11.3 */ class JFormFieldColor extends JFormField { /** * The form field type. * * @var string * @since 11.3 */ protected $type = 'Color'; /** * Method to get the field input markup. * * @return string The field input markup. * * @since 11.3 */ protected function getInput() { // Initialize some field attributes. $size = $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : ''; $classes = (string) $this->element['class']; $disabled = ((string) $this->element['disabled'] == 'true') ? ' disabled="disabled"' : ''; if (!$disabled) { JHtml::_('behavior.colorpicker'); $classes .= ' input-colorpicker'; } if (empty($this->value)) { // A color field can't be empty, we default to black. This is the same as the HTML5 spec. $this->value = '#000000'; } // Initialize JavaScript field attributes. $onchange = $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : ''; $class = $classes ? ' class="' . trim($classes) . '"' : ''; return '<input type="text" name="' . $this->name . '" id="' . $this->id . '"' . ' value="' . htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '"' . $class . $size . $disabled . $onchange . '/>'; } }