Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
params/radio.xml000064400000001777151161644510007667 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<form>
<fields name="fieldparams">
<fieldset name="fieldparams">
<field
name="options"
type="subform"
label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_LABEL"
description="PLG_FIELDS_RADIO_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_RADIO_PARAMS_OPTIONS_NAME_LABEL"
size="30"
/>
<field
name="value"
type="text"
label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_VALUE_LABEL"
size="30"
/>
</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.php000064400000000720151161644510006356 0ustar00<?php
/**
* @package Joomla.Plugin
* @subpackage Fields.Radio
*
* @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 Radio Plugin
*
* @since 3.7.0
*/
class PlgFieldsRadio extends FieldsListPlugin
{
}
radio.xml000064400000003052151161644510006370 0ustar00<?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 - 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_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"
label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_LABEL"
description="PLG_FIELDS_RADIO_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_RADIO_PARAMS_OPTIONS_NAME_LABEL"
size="30"
/>
<field
name="value"
type="text"
label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_VALUE_LABEL"
size="30"
/>
</form>
</field>
</fieldset>
</fields>
</config>
</extension>
tmpl/radio.php000064400000001141151161644510007330 0ustar00<?php
/**
* @package Joomla.Plugin
* @subpackage Fields.Radio
*
* @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;
$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));