Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
PK���[f4��--list.phpnu�[���<?php
/**
* @package Joomla.Plugin
* @subpackage Fields.List
*
* @copyright Copyright (C) 2005 - 2020 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
{
/**
* 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);
}
}
PK���[6_�77list.xmlnu�[���<?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 - 2020 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"
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>
PK���[oƔ�##params/list.xmlnu�[���<?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>
PK���[�f�dee
tmpl/list.phpnu�[���<?php
/**
* @package Joomla.Plugin
* @subpackage Fields.List
*
* @copyright Copyright (C) 2005 - 2020 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));
PK���[f4��--list.phpnu�[���PK���[6_�77elist.xmlnu�[���PK���[oƔ�##�params/list.xmlnu�[���PK���[�f�dee
6tmpl/list.phpnu�[���PK,�