| Current Path : /proc/1908984/root/proc/2603263/cwd/ |
| Current File : //proc/1908984/root/proc/2603263/cwd/color.tar |
tmpl/color.php 0000644 00000000623 15234531536 0007357 0 ustar 00 <?php
/**
* @package Joomla.Plugin
* @subpackage Fields.Color
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$value = $field->value;
if ($value == '')
{
return;
}
if (is_array($value))
{
$value = implode(', ', $value);
}
echo htmlentities($value);
color.php 0000644 00000002011 15234531536 0006374 0 ustar 00 <?php
/**
* @package Joomla.Plugin
* @subpackage Fields.Color
*
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JLoader::import('components.com_fields.libraries.fieldsplugin', JPATH_ADMINISTRATOR);
/**
* Fields Color Plugin
*
* @since 3.7.0
*/
class PlgFieldsColor extends FieldsPlugin
{
/**
* Transforms the field into a DOM XML element and appends it as a child on the given parent.
*
* @param stdClass $field The field.
* @param DOMElement $parent The field node parent.
* @param JForm $form The form.
*
* @return DOMElement
*
* @since 3.7.0
*/
public function onCustomFieldsPrepareDom($field, DOMElement $parent, JForm $form)
{
$fieldNode = parent::onCustomFieldsPrepareDom($field, $parent, $form);
if (!$fieldNode)
{
return $fieldNode;
}
$fieldNode->setAttribute('validate', 'color');
return $fieldNode;
}
}
color.xml 0000644 00000001430 15234531536 0006411 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?>
<extension type="plugin" version="3.7.0" group="fields" method="upgrade">
<name>plg_fields_color</name>
<author>Joomla! Project</author>
<creationDate>March 2016</creationDate>
<copyright>(C) 2016 Open Source Matters, Inc.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>3.7.0</version>
<description>PLG_FIELDS_COLOR_XML_DESCRIPTION</description>
<files>
<filename plugin="color">color.php</filename>
<folder>tmpl</folder>
</files>
<languages>
<language tag="en-GB">en-GB.plg_fields_color.ini</language>
<language tag="en-GB">en-GB.plg_fields_color.sys.ini</language>
</languages>
</extension>
blue.less 0000644 00000001163 15234553226 0006373 0 ustar 00 /*******************************************
*** Style color Blue ***
*******************************************/
// Color Themes
// --------------------------------------------------
@YTcolorTheme1: #0f8db3;
@YTcolorTheme2: #669a6b;
@background1: @YTcolorTheme1;
@background2: @YTcolorTheme2;
@base-url: "../images/styling/blue";
// Links
// -------------------------
@linkColor: @YTcolorTheme1;
@linkColorHover: @YTcolorTheme2;
@linkColor2: @YTcolorTheme2;
green.less 0000644 00000001164 15234553226 0006545 0 ustar 00 /*******************************************
*** Style color Green ***
*******************************************/
// Color Themes
// --------------------------------------------------
@YTcolorTheme1: #9dc02e;
@YTcolorTheme2: #ff0bf6;
@background1: @YTcolorTheme1;
@background2: @YTcolorTheme2;
@base-url: "../images/styling/green";
// Links
// -------------------------
@linkColor: @YTcolorTheme1;
@linkColorHover: @YTcolorTheme2;
@linkColor2: @YTcolorTheme2;
orange.less 0000644 00000001165 15234553226 0006721 0 ustar 00 /*******************************************
*** Style color Orange ***
*******************************************/
// Color Themes
// --------------------------------------------------
@YTcolorTheme1: #ff5c01;
@YTcolorTheme2: #fe1d39;
@background1: @YTcolorTheme1;
@background2: @YTcolorTheme2;
@base-url: "../images/styling/orange";
// Links
// -------------------------
@linkColor: @YTcolorTheme1;
@linkColorHover: @YTcolorTheme2;
@linkColor2: @YTcolorTheme2;
red.less 0000644 00000001160 15234553226 0006213 0 ustar 00 /*******************************************
*** Style color Red ***
*******************************************/
// Color Themes
// --------------------------------------------------
@YTcolorTheme1: #ff6364;
@YTcolorTheme2: #ff0bf6;
@background1: @YTcolorTheme1;
@background2: @YTcolorTheme2;
@base-url: "../images/styling/red";
// Links
// -------------------------
@linkColor: @YTcolorTheme1;
@linkColorHover: @YTcolorTheme2;
@linkColor2: @YTcolorTheme2;
variables_color.less 0000644 00000001160 15234553226 0010607 0 ustar 00 /*******************************************
*** Style color Red ***
*******************************************/
// Color Themes
// --------------------------------------------------
@YTcolorTheme1: #ff6364;
@YTcolorTheme2: #ff0bf6;
@background1: @YTcolorTheme1;
@background2: @YTcolorTheme2;
@base-url: "../images/styling/red";
// Links
// -------------------------
@linkColor: @YTcolorTheme1;
@linkColorHover: @YTcolorTheme2;
@linkColor2: @YTcolorTheme2;
yellow.less 0000644 00000001164 15234553226 0006760 0 ustar 00 /*******************************************
*** Style color Yellow ***
*******************************************/
// Color Themes
// --------------------------------------------------
@YTcolorTheme1: #f4b533;
@YTcolorTheme2: #f6820a;
@background1: @YTcolorTheme1;
@background2: @YTcolorTheme2;
@base-url: "../images/styling/yellow";
// Links
// -------------------------
@linkColor: @YTcolorTheme1;
@linkColorHover: @YTcolorTheme2;
@linkColor2: @YTcolorTheme2;