Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/list.tar
Назад
params/list.xml 0000604 00000002043 15245561311 0007522 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" filter="integer" > <option value="">COM_FIELDS_FIELD_USE_GLOBAL</option> <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="options" type="subform" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_LABEL" description="PLG_FIELDS_LIST_PARAMS_OPTIONS_DESC" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" type="text" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_NAME_LABEL" size="30" /> <field name="value" type="text" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_VALUE_LABEL" size="30" /> </form> </field> </fieldset> </fields> </form> tmpl/list.php 0000604 00000001130 15245561311 0007176 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.List * * @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; $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)); list.xml 0000604 00000003426 15245561311 0006245 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>(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_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" label="PLG_FIELDS_LIST_PARAMS_MULTIPLE_LABEL" description="PLG_FIELDS_LIST_PARAMS_MULTIPLE_DESC" class="btn-group btn-group-yesno" default="0" filter="integer" > <option value="1">JYES</option> <option value="0">JNO</option> </field> <field name="options" type="subform" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_LABEL" description="PLG_FIELDS_LIST_PARAMS_OPTIONS_DESC" layout="joomla.form.field.subform.repeatable-table" icon="list" multiple="true" > <form hidden="true" name="list_templates_modal" repeat="true"> <field name="name" type="text" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_NAME_LABEL" size="30" /> <field name="value" type="text" label="PLG_FIELDS_LIST_PARAMS_OPTIONS_VALUE_LABEL" size="30" /> </form> </field> </fieldset> </fields> </config> </extension> list.php 0000604 00000002040 15245561311 0006223 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage Fields.List * * @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.fieldslistplugin', JPATH_ADMINISTRATOR); /** * Fields list Plugin * * @since 3.7.0 */ class PlgFieldsList extends FieldsListPlugin { /** * Prepares the field * * @param string $context The context. * @param stdclass $item The item. * @param stdclass $field The field. * * @return object * * @since 3.9.2 */ public function onCustomFieldsPrepareField($context, $item, $field) { // Check if the field should be processed if (!$this->isTypeSupported($field->type)) { return; } // The field's rawvalue should be an array if (!is_array($field->rawvalue)) { $field->rawvalue = (array) $field->rawvalue; } return parent::onCustomFieldsPrepareField($context, $item, $field); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка