uawdijnntqw1x1x1
IP : 216.73.217.102
Hostname : webm003.cluster107.gra.hosting.ovh.net
Kernel : Linux webm003.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
opticamezl
/
www
/
newok
/
07d6c
/
.
/
..
/
tmp
/
..
/
cache
/
..
/
cli
/
..
/
cli
/
..
/
cli
/
..
/
cli
/
..
/
api
/
..
/
radio.tar
/
/
tmpl/radio.php000064400000001174151721515000007327 0ustar00<?php /** * @package Joomla.Plugin * @subpackage Fields.Radio * * @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; use Joomla\CMS\Language\Text; $value = $field->value; if ($value == '') { return; } $value = (array) $value; $texts = []; $options = $this->getOptionsFromField($field); foreach ($options as $optionValue => $optionText) { if (in_array((string) $optionValue, $value)) { $texts[] = Text::_($optionText); } } echo htmlentities(implode(', ', $texts)); services/provider.php000064400000002432151721515000010730 0ustar00<?php /** * @package Joomla.Plugin * @subpackage Fields.radio * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\Fields\Radio\Extension\Radio; return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since 4.3.0 */ public function register(Container $container) { $container->set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $plugin = new Radio( $dispatcher, (array) PluginHelper::getPlugin('fields', 'radio') ); $plugin->setApplication(Factory::getApplication()); return $plugin; } ); } }; params/radio.xml000064400000002434151721515000007647 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" 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" required="true" /> <field name="value" type="text" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_VALUE_LABEL" /> </form> </field> </fieldset> </fields> <fields name="params"> <fieldset name="basic"> <field name="class" type="textarea" label="COM_FIELDS_FIELD_CLASS_LABEL" default="btn-group" validate="CssIdentifier" /> <fieldset name="formoptions"> <field name="form_layout" type="list" label="COM_FIELDS_FIELD_FORM_LAYOUT_LABEL" class="form-select" > <option value="joomla.form.field.radio.buttons">PLG_FIELDS_RADIO_PARAMS_FORM_LAYOUT_BUTTONS</option> <option value="joomla.form.field.radio.switcher">PLG_FIELDS_RADIO_PARAMS_FORM_LAYOUT_SWITCHER</option> </field> </fieldset> </fieldset> </fields> </form> src/Extension/Radio.php000064400000002423151721515000011054 0ustar00<?php /** * @package Joomla.Plugin * @subpackage Fields.radio * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\Fields\Radio\Extension; use Joomla\Component\Fields\Administrator\Plugin\FieldsListPlugin; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Fields Radio Plugin * * @since 3.7.0 */ final class Radio extends FieldsListPlugin { /** * Before prepares the field value. * * @param string $context The context. * @param \stdclass $item The item. * @param \stdclass $field The field. * * @return void * * @since 3.7.0 */ public function onCustomFieldsBeforePrepareField($context, $item, $field) { if (!$this->getApplication()->isClient('api')) { return; } if (!$this->isTypeSupported($field->type)) { return; } $options = $this->getOptionsFromField($field); $field->apivalue = []; if (!empty($field->value)) { $field->apivalue = [$field->value => $options[$field->value]]; } } } radio.xml000064400000002775151721515000006374 0ustar00<?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="fields" method="upgrade"> <name>plg_fields_radio</name> <author>Joomla! Project</author> <creationDate>2016-03</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_RADIO_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\Fields\Radio</namespace> <files> <folder>params</folder> <folder plugin="radio">services</folder> <folder>src</folder> <folder>tmpl</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_fields_radio.ini</language> <language tag="en-GB">language/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" 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" /> <field name="value" type="text" label="PLG_FIELDS_RADIO_PARAMS_OPTIONS_VALUE_LABEL" /> </form> </field> </fieldset> </fields> </config> </extension>
/home/opticamezl/www/newok/07d6c/./../tmp/../cache/../cli/../cli/../cli/../cli/../api/../radio.tar