<?php /** * @package Joomla.Platform * @subpackage Form * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; JFormHelper::loadFieldClass('color'); /** * Color Form Field class for the Joomla Platform. * This implementation is designed to be compatible with HTML5's `<input type="color">` * * @link http://www.w3.org/TR/html-markup/input.color.html * @since 11.3 */ class JFormFieldColorPicker extends JFormFieldColor { /** * The form field type. * * @var string * @since 11.3 */ protected $type = 'ColorPicker'; /** * Name of the layout being used to render the field * * @var string * @since 3.5 */ protected $layout = 'form.field.colorpicker'; /** * Allow to override renderer include paths in child fields * * @return array * * @since 3.5 */ protected function getLayoutPaths() { return array(JPATH_ADMINISTRATOR . '/components/com_jce/layouts', JPATH_SITE . '/layouts'); } }