File manager - Edit - /home/jardides/www/Jardi-design/images/administrator/fields.tar
Back
fields.xml 0000644 00000001500 15247116657 0006546 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <extension version="3.7" type="plugin" group="editors-xtd" method="upgrade"> <name>plg_editors-xtd_fields</name> <author>Joomla! Project</author> <creationDate>February 2017</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_EDITORS-XTD_FIELDS_XML_DESCRIPTION</description> <files> <filename plugin="fields">fields.php</filename> </files> <languages> <language tag="en-GB">en-GB.plg_editors-xtd_fields.ini</language> <language tag="en-GB">en-GB.plg_editors-xtd_fields.sys.ini</language> </languages> </extension> fields.php 0000644 00000003162 15247116657 0006543 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Editors-xtd.fields * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * Editor Fields button * * @since 3.7.0 */ class PlgButtonFields extends JPlugin { /** * Load the language file on instantiation. * * @var boolean * @since 3.7.0 */ protected $autoloadLanguage = true; /** * Display the button * * @param string $name The name of the button to add * * @return JObject The button options as JObject * * @since 3.7.0 */ public function onDisplay($name) { // Register FieldsHelper JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); // Guess the field context based on view. $jinput = JFactory::getApplication()->input; $context = $jinput->get('option') . '.' . $jinput->get('view'); // Validate context. $context = implode('.', FieldsHelper::extract($context)); if (!FieldsHelper::getFields($context)) { return; } $link = 'index.php?option=com_fields&view=fields&layout=modal&tmpl=component&context=' . $context . '&editor=' . $name . '&' . JSession::getFormToken() . '=1'; $button = new JObject; $button->modal = true; $button->class = 'btn'; $button->link = $link; $button->text = JText::_('PLG_EDITORS-XTD_FIELDS_BUTTON_FIELD'); $button->name = 'puzzle'; $button->options = "{handler: 'iframe', size: {x: 800, y: 500}}"; return $button; } } usergrouplist/usergrouplist.php 0000644 00000000740 15247162714 0013145 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Usergrouplist * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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 Usergrouplist Plugin * * @since 3.7.0 */ class PlgFieldsUsergrouplist extends FieldsPlugin { } usergrouplist/usergrouplist.xml 0000644 00000002440 15247162714 0013155 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_usergrouplist</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_USERGROUPLIST_XML_DESCRIPTION</description> <files> <filename plugin="usergrouplist">usergrouplist.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_usergrouplist.ini</language> <language tag="en-GB">en-GB.plg_fields_usergrouplist.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="multiple" type="radio" class="btn-group btn-group-yesno" default="0" label="PLG_FIELDS_USERGROUPLIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_USERGROUPLIST_PARAMS_MULTIPLE_DESC" > <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </config> </extension> usergrouplist/tmpl/usergrouplist.php 0000644 00000001262 15247162714 0014121 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Usergrouplist * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } JLoader::register('UsersHelper', JPATH_ADMINISTRATOR . '/components/com_users/helpers/users.php'); $value = (array) $value; $texts = array(); $groups = UsersHelper::getGroups(); foreach ($groups as $group) { if (in_array($group->value, $value)) { $texts[] = htmlentities(trim($group->text, '- ')); } } echo htmlentities(implode(', ', $texts)); usergrouplist/params/usergrouplist.xml 0000644 00000000707 15247162714 0014444 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="multiple" type="list" label="PLG_FIELDS_USERGROUPLIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_USERGROUPLIST_PARAMS_MULTIPLE_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </form> imagelist/params/imagelist.xml 0000644 00000001762 15247162714 0012524 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="directory" type="folderlist" directory="images" hide_none="true" hide_default="true" recursive="true" label="PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="/">/</option> </field> <field name="multiple" type="list" label="PLG_FIELDS_IMAGELIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_MULTIPLE_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="image_class" type="textarea" label="PLG_FIELDS_IMAGELIST_PARAMS_IMAGE_CLASS_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_IMAGE_CLASS_DESC" size="40" /> </fieldset> </fields> </form> imagelist/imagelist.xml 0000644 00000003476 15247162714 0011245 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_imagelist</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_IMAGELIST_XML_DESCRIPTION</description> <files> <filename plugin="imagelist">imagelist.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_imagelist.ini</language> <language tag="en-GB">en-GB.plg_fields_imagelist.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="directory" type="folderlist" directory="images" required="true" hide_none="true" hide_default="true" recursive="true" default="/" label="PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_DESC" > <option value="/">/</option> </field> <field name="multiple" type="radio" class="btn-group btn-group-yesno" default="0" label="PLG_FIELDS_IMAGELIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_MULTIPLE_DESC" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="image_class" type="textarea" label="PLG_FIELDS_IMAGELIST_PARAMS_IMAGE_CLASS_LABEL" description="PLG_FIELDS_IMAGELIST_PARAMS_IMAGE_CLASS_DESC" size="40" /> </fieldset> </fields> </config> </extension> imagelist/imagelist.php 0000644 00000002212 15247162714 0011217 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Imagelist * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields Imagelist Plugin * * @since 3.7.0 */ class PlgFieldsImagelist extends FieldsListPlugin { /** * 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('hide_default', 'true'); $fieldNode->setAttribute('directory', '/images/' . $fieldNode->getAttribute('directory')); return $fieldNode; } } imagelist/tmpl/imagelist.php 0000644 00000001261 15247162714 0012176 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Imagelist * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; $class = $fieldParams->get('image_class'); if ($class) { $class = ' class="' . $class . '"'; } if ($value == '') { return; } $value = (array) $value; $buffer = ''; foreach ($value as $path) { if (!$path || $path == '-1') { continue; } $buffer .= '<img src="images/' . $fieldParams->get('directory', '/') . '/' . htmlentities($path) . '"' . $class . '/>'; } echo $buffer; editor/params/editor.xml 0000644 00000002670 15247162714 0011343 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="buttons" type="list" label="PLG_FIELDS_EDITOR_PARAMS_SHOW_BUTTONS_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_SHOW_BUTTONS_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="hide" type="plugins" folder="editors-xtd" multiple="true" label="PLG_FIELDS_EDITOR_PARAMS_BUTTONS_HIDE_LABEL" description="JGLOBAL_SELECT_SOME_OPTIONS" /> <field name="width" type="text" label="PLG_FIELDS_EDITOR_PARAMS_WIDTH_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_WIDTH_DESC" size="5" /> <field name="height" type="text" label="PLG_FIELDS_EDITOR_PARAMS_HEIGHT_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_HEIGHT_DESC" size="5" /> <field name="filter" type="list" class="btn-group" label="PLG_FIELDS_TEXT_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXT_PARAMS_FILTER_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> </field> </fieldset> </fields> </form> editor/tmpl/editor.php 0000644 00000000563 15247162714 0011022 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Editor * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } echo JHTML::_('content.prepare', $value); editor/editor.xml 0000644 00000004462 15247162714 0010061 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_editor</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_EDITOR_XML_DESCRIPTION</description> <files> <filename plugin="editor">editor.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_editor.ini</language> <language tag="en-GB">en-GB.plg_fields_editor.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="buttons" type="radio" class="btn-group btn-group-yesno" default="0" label="PLG_FIELDS_EDITOR_PARAMS_SHOW_BUTTONS_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_SHOW_BUTTONS_DESC" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="hide" type="plugins" folder="editors-xtd" multiple="true" label="PLG_FIELDS_EDITOR_PARAMS_BUTTONS_HIDE_LABEL" description="JGLOBAL_SELECT_SOME_OPTIONS" /> <field name="width" type="text" default="100%" label="PLG_FIELDS_EDITOR_PARAMS_WIDTH_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_WIDTH_DESC" size="5" /> <field name="height" type="text" default="250px" label="PLG_FIELDS_EDITOR_PARAMS_HEIGHT_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_HEIGHT_DESC" size="5" /> <field name="filter" type="list" class="btn-group" default="JComponentHelper::filterText" label="PLG_FIELDS_EDITOR_PARAMS_FILTER_LABEL" description="PLG_FIELDS_EDITOR_PARAMS_FILTER_DESC" > <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> </field> </fieldset> </fields> </config> </extension> editor/editor.php 0000644 00000002247 15247162714 0010047 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Editor * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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 Editor Plugin * * @since 3.7.0 */ class PlgFieldsEditor 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('buttons', $field->fieldparams->get('buttons', 0) ? 'true' : 'false'); $fieldNode->setAttribute('hide', implode(',', $field->fieldparams->get('hide', array()))); return $fieldNode; } } calendar/calendar.xml 0000644 00000001545 15247162714 0010626 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_calendar</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_CALENDAR_XML_DESCRIPTION</description> <files> <filename plugin="calendar">calendar.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_calendar.ini</language> <language tag="en-GB">en-GB.plg_fields_calendar.sys.ini</language> </languages> </extension> calendar/calendar.php 0000644 00000002376 15247162714 0010620 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Calendar * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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 Calendar Plugin * * @since 3.7.0 */ class PlgFieldsCalendar 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; } // Set filter to user UTC $fieldNode->setAttribute('filter', 'USER_UTC'); // Set field to use translated formats $fieldNode->setAttribute('translateformat', '1'); $fieldNode->setAttribute('showtime', $field->fieldparams->get('showtime', 0) ? 'true' : 'false'); return $fieldNode; } } calendar/tmpl/calendar.php 0000644 00000001061 15247162714 0011562 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Calendar * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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); } $formatString = $field->fieldparams->get('showtime', 0) ? 'DATE_FORMAT_LC5' : 'DATE_FORMAT_LC4'; echo htmlentities(JHtml::_('date', $value, JText::_($formatString))); calendar/params/calendar.xml 0000644 00000000711 15247162714 0012103 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="showtime" type="radio" class="btn-group btn-group-yesno" label="PLG_FIELDS_CALENDAR_PARAMS_SHOWTIME_LABEL" description="PLG_FIELDS_CALENDAR_PARAMS_SHOWTIME_DESC" size="20" default="0" > <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </form> list/params/list.xml 0000644 00000002003 15247162714 0010503 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="multiple" type="list" label="PLG_FIELDS_LIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_LIST_PARAMS_MULTIPLE_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="options" type="subform" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" description="PLG_FIELDS_LIST_PARAMS_OPTIONS_DESC" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_LABEL" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_NAME_LABEL" size="30" type="text" /> <field name="value" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_VALUE_LABEL" size="30" type="text" /> </form> </field> </fieldset> </fields> </form> list/list.php 0000644 00000000715 15247162714 0007217 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.List * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields list Plugin * * @since 3.7.0 */ class PlgFieldsList extends FieldsListPlugin { } list/list.xml 0000644 00000003425 15247162714 0007231 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_list</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_LIST_XML_DESCRIPTION</description> <files> <filename plugin="list">list.php</filename> </files> <languages> <language tag="en-GB">en-GB.plg_fields_list.ini</language> <language tag="en-GB">en-GB.plg_fields_list.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="multiple" type="radio" class="btn-group btn-group-yesno" default="0" label="PLG_FIELDS_LIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_LIST_PARAMS_MULTIPLE_DESC" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="options" type="subform" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" description="PLG_FIELDS_LIST_PARAMS_OPTIONS_DESC" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_LABEL" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_NAME_LABEL" size="30" type="text" /> <field name="value" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_VALUE_LABEL" size="30" type="text" /> </form> </field> </fieldset> </fields> </config> </extension> list/tmpl/list.php 0000644 00000001145 15247162714 0010171 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.List * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $fieldValue = $field->value; if ($fieldValue == '') { return; } $fieldValue = (array) $fieldValue; $texts = array(); $options = $this->getOptionsFromField($field); foreach ($options as $value => $name) { if (in_array((string) $value, $fieldValue)) { $texts[] = JText::_($name); } } echo htmlentities(implode(', ', $texts)); integer/tmpl/integer.php 0000644 00000000712 15247162714 0011334 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Integer * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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(', ', array_map('intval', $value)); } else { $value = (int) $value; } echo $value; integer/params/integer.xml 0000644 00000001663 15247162714 0011662 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="multiple" type="list" label="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="first" type="number" label="PLG_FIELDS_INTEGER_PARAMS_FIRST_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_FIRST_DESC" size="5" /> <field name="last" type="number" label="PLG_FIELDS_INTEGER_PARAMS_LAST_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_LAST_DESC" size="5" /> <field name="step" type="number" label="PLG_FIELDS_INTEGER_PARAMS_STEP_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_STEP_DESC" size="5" /> </fieldset> </fields> </form> integer/integer.php 0000644 00000000716 15247162714 0010364 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Integer * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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 Integer Plugin * * @since 3.7.0 */ class PlgFieldsInteger extends FieldsPlugin { } integer/integer.xml 0000644 00000003576 15247162714 0010404 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_integer</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_INTEGER_XML_DESCRIPTION</description> <files> <filename plugin="integer">integer.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_integer.ini</language> <language tag="en-GB">en-GB.plg_fields_integer.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="multiple" type="radio" class="btn-group btn-group-yesno" default="0" label="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_MULTIPLE_DESC" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="first" type="number" default="1" label="PLG_FIELDS_INTEGER_PARAMS_FIRST_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_FIRST_DESC" size="5" required="true" /> <field name="last" type="number" default="100" label="PLG_FIELDS_INTEGER_PARAMS_LAST_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_LAST_DESC" size="5" required="true" /> <field name="step" type="number" default="1" label="PLG_FIELDS_INTEGER_PARAMS_STEP_LABEL" description="PLG_FIELDS_INTEGER_PARAMS_STEP_DESC" size="5" required="true" /> </fieldset> </fields> </config> </extension> media/tmpl/media.php 0000644 00000001145 15247162714 0010401 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Media * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; $class = $fieldParams->get('image_class'); if ($class) { $class = ' class="' . $class . '"'; } if ($value == '') { return; } $value = (array) $value; $buffer = ''; foreach ($value as $path) { if (!$path) { continue; } $buffer .= '<img src="' . htmlentities($path) . '"' . $class . '/>'; } echo $buffer; media/media.php 0000644 00000002031 15247162714 0007420 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Media * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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 Media Plugin * * @since 3.7.0 */ class PlgFieldsMedia 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('hide_default', 'true'); return $fieldNode; } } media/media.xml 0000644 00000003412 15247162714 0007435 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_media</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_MEDIA_XML_DESCRIPTION</description> <files> <filename plugin="media">media.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_media.ini</language> <language tag="en-GB">en-GB.plg_fields_media.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="directory" type="folderlist" directory="images" hide_none="true" recursive="true" label="PLG_FIELDS_MEDIA_PARAMS_DIRECTORY_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_DIRECTORY_DESC" /> <field name="preview" type="list" class="btn-group" default="tooltip" label="PLG_FIELDS_MEDIA_PARAMS_PREVIEW_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_PREVIEW_DESC" > <option value="tooltip">PLG_FIELDS_MEDIA_PARAMS_PREVIEW_TOOLTIP</option> <option value="true">PLG_FIELDS_MEDIA_PARAMS_PREVIEW_INLINE</option> <option value="false">JNO</option> </field> <field name="image_class" type="textarea" label="PLG_FIELDS_MEDIA_PARAMS_IMAGE_CLASS_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_IMAGE_CLASS_DESC" size="40" /> </fieldset> </fields> </config> </extension> media/params/media.xml 0000644 00000001717 15247162714 0010726 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="directory" type="folderlist" directory="images" hide_none="true" recursive="true" label="PLG_FIELDS_MEDIA_PARAMS_DIRECTORY_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_DIRECTORY_DESC" /> <field name="preview" type="list" label="PLG_FIELDS_MEDIA_PARAMS_PREVIEW_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_PREVIEW_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="tooltip">PLG_FIELDS_MEDIA_PARAMS_PREVIEW_TOOLTIP</option> <option value="true">PLG_FIELDS_MEDIA_PARAMS_PREVIEW_INLINE</option> <option value="false">JNO</option> </field> <field name="image_class" type="textarea" label="PLG_FIELDS_MEDIA_PARAMS_IMAGE_CLASS_LABEL" description="PLG_FIELDS_MEDIA_PARAMS_IMAGE_CLASS_DESC" size="40" /> </fieldset> </fields> </form> textarea/textarea.xml 0000644 00000004352 15247162714 0010735 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_textarea</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_TEXTAREA_XML_DESCRIPTION</description> <files> <filename plugin="textarea">textarea.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_textarea.ini</language> <language tag="en-GB">en-GB.plg_fields_textarea.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="rows" type="text" default="10" label="PLG_FIELDS_TEXTAREA_PARAMS_ROWS_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_ROWS_DESC" size="5" /> <field name="cols" type="text" default="10" label="PLG_FIELDS_TEXTAREA_PARAMS_COLS_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_COLS_DESC" size="5" /> <field name="maxlength" type="text" filter="integer" label="PLG_FIELDS_TEXTAREA_PARAMS_MAXLENGTH_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_MAXLENGTH_DESC" /> <field name="filter" type="list" class="btn-group" default="JComponentHelper::filterText" label="PLG_FIELDS_TEXTAREA_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_FILTER_DESC" > <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> <option value="alnum">JLIB_FILTER_PARAMS_ALNUM</option> <option value="integer">JLIB_FILTER_PARAMS_INTEGER</option> <option value="float">JLIB_FILTER_PARAMS_FLOAT</option> <option value="tel">JLIB_FILTER_PARAMS_TEL</option> </field> </fieldset> </fields> </config> </extension> textarea/params/textarea.xml 0000644 00000002562 15247162714 0012221 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="rows" type="text" label="PLG_FIELDS_TEXTAREA_PARAMS_ROWS_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_ROWS_DESC" size="5" /> <field name="cols" type="text" label="PLG_FIELDS_TEXTAREA_PARAMS_COLS_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_COLS_DESC" size="5" /> <field name="maxlength" type="text" filter="integer" label="PLG_FIELDS_TEXTAREA_PARAMS_MAXLENGTH_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_MAXLENGTH_DESC" /> <field name="filter" type="list" class="btn-group" label="PLG_FIELDS_TEXTAREA_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXTAREA_PARAMS_FILTER_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> <option value="alnum">JLIB_FILTER_PARAMS_ALNUM</option> <option value="integer">JLIB_FILTER_PARAMS_INTEGER</option> <option value="float">JLIB_FILTER_PARAMS_FLOAT</option> <option value="tel">JLIB_FILTER_PARAMS_TEL</option> </field> </fieldset> </fields> </form> textarea/textarea.php 0000644 00000000721 15247162714 0010720 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Textarea * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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 Textarea Plugin * * @since 3.7.0 */ class PlgFieldsTextarea extends FieldsPlugin { } textarea/tmpl/textarea.php 0000644 00000000565 15247162714 0011702 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Textarea * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } echo JHTML::_('content.prepare', $value); color/color.php 0000644 00000002026 15247162714 0007522 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Color * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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/color.xml 0000644 00000001471 15247162714 0007536 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>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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> color/tmpl/color.php 0000644 00000000640 15247162714 0010476 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Color * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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); text/tmpl/text.php 0000644 00000000637 15247162714 0010220 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Text * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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); text/params/text.xml 0000644 00000002023 15247162714 0010527 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="filter" type="list" class="btn-group" label="PLG_FIELDS_TEXT_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXT_PARAMS_FILTER_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> <option value="alnum">JLIB_FILTER_PARAMS_ALNUM</option> <option value="integer">JLIB_FILTER_PARAMS_INTEGER</option> <option value="float">JLIB_FILTER_PARAMS_FLOAT</option> <option value="tel">JLIB_FILTER_PARAMS_TEL</option> </field> <field name="maxlength" type="text" filter="integer" label="PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_LABEL" description="PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_DESC" /> </fieldset> </fields> </form> text/text.xml 0000644 00000003501 15247162714 0007246 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_text</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_TEXT_XML_DESCRIPTION</description> <files> <filename plugin="text">text.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_text.ini</language> <language tag="en-GB">en-GB.plg_fields_text.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="filter" type="list" class="btn-group" default="JComponentHelper::filterText" label="PLG_FIELDS_TEXT_PARAMS_FILTER_LABEL" description="PLG_FIELDS_TEXT_PARAMS_FILTER_DESC" > <option value="0">JNO</option> <option value="raw">JLIB_FILTER_PARAMS_RAW</option> <option value="safehtml">JLIB_FILTER_PARAMS_SAFEHTML</option> <option value="JComponentHelper::filterText">JLIB_FILTER_PARAMS_TEXT</option> <option value="alnum">JLIB_FILTER_PARAMS_ALNUM</option> <option value="integer">JLIB_FILTER_PARAMS_INTEGER</option> <option value="float">JLIB_FILTER_PARAMS_FLOAT</option> <option value="tel">JLIB_FILTER_PARAMS_TEL</option> </field> <field name="maxlength" type="text" filter="integer" label="PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_LABEL" description="PLG_FIELDS_TEXT_PARAMS_MAXLENGTH_DESC" /> </fieldset> </fields> </config> </extension> text/text.php 0000644 00000000705 15247162714 0007240 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Text * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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 Text Plugin * * @since 3.7.0 */ class PlgFieldsText extends FieldsPlugin { } sql/sql.xml 0000644 00000002656 15247162714 0006706 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_sql</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_SQL_XML_DESCRIPTION</description> <files> <filename plugin="sql">sql.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_sql.ini</language> <language tag="en-GB">en-GB.plg_fields_sql.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="query" type="textarea" filter="raw" label="PLG_FIELDS_SQL_PARAMS_QUERY_LABEL" description="PLG_FIELDS_SQL_PARAMS_QUERY_DESC" rows="10" required="true" /> <field name="multiple" type="radio" class="btn-group btn-group-yesno" default="0" label="PLG_FIELDS_SQL_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_SQL_PARAMS_MULTIPLE_DESC" > <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </config> </extension> sql/sql.php 0000644 00000004315 15247162715 0006670 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Sql * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields Sql Plugin * * @since 3.7.0 */ class PlgFieldsSql extends FieldsListPlugin { /** * 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('value_field', 'text'); $fieldNode->setAttribute('key_field', 'value'); return $fieldNode; } /** * The save event. * * @param string $context The context * @param JTable $item The table * @param boolean $isNew Is new item * @param array $data The validated data * * @return boolean * * @since 3.7.0 */ public function onContentBeforeSave($context, $item, $isNew, $data = array()) { // Only work on new SQL fields if ($context != 'com_fields.field' || !isset($item->type) || $item->type != 'sql' || !$isNew) { return true; } // If we are not a super admin, don't let the user create a SQL field if (!JAccess::getAssetRules(1)->allow('core.admin', JFactory::getUser()->getAuthorisedGroups())) { $item->setError(JText::_('PLG_FIELDS_SQL_CREATE_NOT_POSSIBLE')); return false; } $rules = $item->getRules()->getData(); // Only change the edit rule and when it is empty if (key_exists('core.edit', $rules) && !$rules['core.edit']->getData()) { // Set the denied flag on the root group $rules['core.edit']->mergeIdentity(1, false); JFactory::getApplication()->enqueueMessage(JText::_('PLG_FIELDS_SQL_RULES_ADAPTED'), 'warning'); } return true; } } sql/tmpl/sql.php 0000644 00000001771 15247162715 0007647 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Sql * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } $db = JFactory::getDbo(); $value = (array) $value; $condition = ''; foreach ($value as $v) { if (!$v) { continue; } $condition .= ', ' . $db->q($v); } $query = $fieldParams->get('query', ''); // Run the query with a having condition because it supports aliases $db->setQuery($query . ' having value in (' . trim($condition, ',') . ')'); try { $items = $db->loadObjectlist(); } catch (Exception $e) { // If the query failed, we fetch all elements $db->setQuery($query); $items = $db->loadObjectlist(); } $texts = array(); foreach ($items as $item) { if (in_array($item->value, $value)) { $texts[] = $item->text; } } echo htmlentities(implode(', ', $texts)); sql/params/sql.xml 0000644 00000001175 15247162715 0010165 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="query" type="textarea" filter="raw" label="PLG_FIELDS_SQL_PARAMS_QUERY_LABEL" description="PLG_FIELDS_SQL_PARAMS_QUERY_DESC" rows="10" required="true" /> <field name="multiple" type="list" label="PLG_FIELDS_SQL_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_SQL_PARAMS_MULTIPLE_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </form> radio/params/radio.xml 0000644 00000002000 15247162715 0010747 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="options" type="subform" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" description="PLG_FIELDS_RADIO_PARAMS_OPTIONS_DESC" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_LABEL" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_NAME_LABEL" size="30" type="text" /> <field name="value" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_VALUE_LABEL" size="30" type="text" /> </form> </field> </fieldset> </fields> <fields name="params"> <fieldset name="basic"> <field name="class" type="textarea" label="COM_FIELDS_FIELD_CLASS_LABEL" description="COM_FIELDS_FIELD_CLASS_DESC" class="input-xxlarge" size="40" default="btn-group" /> </fieldset> </fields> </form> radio/radio.php 0000644 00000000720 15247162715 0007462 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Radio * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields Radio Plugin * * @since 3.7.0 */ class PlgFieldsRadio extends FieldsListPlugin { } radio/tmpl/radio.php 0000644 00000001141 15247162715 0010434 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Radio * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } $value = (array) $value; $texts = array(); $options = $this->getOptionsFromField($field); foreach ($options as $optionValue => $optionText) { if (in_array((string) $optionValue, $value)) { $texts[] = JText::_($optionText); } } echo htmlentities(implode(', ', $texts)); radio/radio.xml 0000644 00000003054 15247162715 0007476 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_radio</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_RADIO_XML_DESCRIPTION</description> <files> <filename plugin="radio">radio.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_radio.ini</language> <language tag="en-GB">en-GB.plg_fields_radio.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="options" type="subform" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" description="PLG_FIELDS_RADIO_PARAMS_OPTIONS_DESC" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_LABEL" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_NAME_LABEL" size="30" type="text" /> <field name="value" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_VALUE_LABEL" size="30" type="text" /> </form> </field> </fieldset> </fields> </config> </extension> checkboxes/tmpl/checkboxes.php 0000644 00000001203 15247162715 0012473 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Checkboxes * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $fieldValue = $field->value; if ($fieldValue === '' || $fieldValue === null) { return; } $fieldValue = (array) $fieldValue; $texts = array(); $options = $this->getOptionsFromField($field); foreach ($options as $value => $name) { if (in_array((string) $value, $fieldValue)) { $texts[] = JText::_($name); } } echo htmlentities(implode(', ', $texts)); checkboxes/params/checkboxes.xml 0000644 00000001362 15247162715 0013021 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="options" type="subform" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" description="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_DESC" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_LABEL" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_NAME_LABEL" size="30" type="text" /> <field name="value" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_VALUE_LABEL" size="30" type="text" /> </form> </field> </fieldset> </fields> </form> checkboxes/checkboxes.php 0000644 00000000737 15247162715 0011532 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.Checkboxes * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; JLoader::import('components.com_fields.libraries.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields Checkboxes Plugin * * @since 3.7.0 */ class PlgFieldsCheckboxes extends FieldsListPlugin { } checkboxes/checkboxes.xml 0000644 00000003122 15247162715 0011532 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_checkboxes</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_CHECKBOXES_XML_DESCRIPTION</description> <files> <filename plugin="checkboxes">checkboxes.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_checkboxes.ini</language> <language tag="en-GB">en-GB.plg_fields_checkboxes.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="options" type="subform" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" description="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_DESC" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_LABEL" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_NAME_LABEL" size="30" type="text" /> <field name="value" label="PLG_FIELDS_CHECKBOXES_PARAMS_OPTIONS_VALUE_LABEL" size="30" type="text" /> </form> </field> </fieldset> </fields> </config> </extension> url/url.php 0000644 00000002161 15247162715 0006673 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.URL * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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 URL Plugin * * @since 3.7.0 */ class PlgFieldsUrl 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', 'url'); if (! $fieldNode->getAttribute('relative')) { $fieldNode->removeAttribute('relative'); } return $fieldNode; } } url/url.xml 0000644 00000003265 15247162715 0006712 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_url</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_URL_XML_DESCRIPTION</description> <files> <filename plugin="url">url.php</filename> <folder>params</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_url.ini</language> <language tag="en-GB">en-GB.plg_fields_url.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="schemes" type="list" multiple="true" label="PLG_FIELDS_URL_PARAMS_SCHEMES_LABEL" description="PLG_FIELDS_URL_PARAMS_SCHEMES_DESC" > <option value="http">HTTP</option> <option value="https">HTTPS</option> <option value="ftp">FTP</option> <option value="ftps">FTPS</option> <option value="url">URL</option> <option value="file">FILE</option> <option value="mailto">MAILTO</option> </field> <field name="relative" type="radio" class="btn-group btn-group-yesno" default="1" label="PLG_FIELDS_URL_PARAMS_RELATIVE_LABEL" description="PLG_FIELDS_URL_PARAMS_RELATIVE_DESC" > <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </config> </extension> url/tmpl/url.php 0000644 00000001056 15247162715 0007651 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.URL * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } $attributes = ''; if (!JUri::isInternal($value)) { $attributes = 'rel="nofollow noopener noreferrer" target="_blank"'; } echo '<a href="' . htmlspecialchars($value) . '" ' . $attributes . '>' . htmlspecialchars($value) . '</a>'; url/params/url.xml 0000644 00000001576 15247162715 0010200 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="fieldparams"> <fieldset name="fieldparams"> <field name="schemes" type="list" multiple="true" label="PLG_FIELDS_URL_PARAMS_SCHEMES_LABEL" description="PLG_FIELDS_URL_PARAMS_SCHEMES_DESC" > <option value="http">HTTP</option> <option value="https">HTTPS</option> <option value="ftp">FTP</option> <option value="ftps">FTPS</option> <option value="url">URL</option> <option value="file">FILE</option> <option value="mailto">MAILTO</option> </field> <field name="relative" type="list" label="PLG_FIELDS_URL_PARAMS_RELATIVE_LABEL" description="PLG_FIELDS_URL_PARAMS_RELATIVE_DESC" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> </fieldset> </fields> </form> user/user.xml 0000644 00000001463 15247162715 0007240 0 ustar 00 <?xml version="1.0" encoding="utf-8" ?> <extension type="plugin" version="3.7.0" group="fields" method="upgrade"> <name>plg_fields_user</name> <author>Joomla! Project</author> <creationDate>March 2016</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</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_USER_XML_DESCRIPTION</description> <files> <filename plugin="user">user.php</filename> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">en-GB.plg_fields_user.ini</language> <language tag="en-GB">en-GB.plg_fields_user.sys.ini</language> </languages> </extension> user/user.php 0000644 00000002021 15247162715 0007216 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.User * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @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 User Plugin * * @since 3.7.0 */ class PlgFieldsUser 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) { if (JFactory::getApplication()->isClient('site')) { // The user field is not working on the front end return; } return parent::onCustomFieldsPrepareDom($field, $parent, $form); } } user/tmpl/user.php 0000644 00000001245 15247162715 0010201 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.User * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; $value = $field->value; if ($value == '') { return; } $value = (array) $value; $texts = array(); foreach ($value as $userId) { if (!$userId) { continue; } $user = JFactory::getUser($userId); if ($user) { // Use the Username $texts[] = $user->name; continue; } // Fallback and add the User ID if we get no JUser Object $texts[] = $userId; } echo htmlentities(implode(', ', $texts)); user/params/user.xml 0000644 00000000356 15247162715 0010523 0 ustar 00 <?xml version="1.0" encoding="utf-8"?> <form> <fields name="params" label="COM_FIELDS_FIELD_BASIC_LABEL"> <fieldset name="basic"> <field name="show_on" type="hidden" filter="unset" /> </fieldset> </fields> </form>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings