File manager - Edit - /home/ferretapmx/public_html/form.zip
Back
PK o �\��4X X rotate.xmlnu �[��� <?xml version="1.0" encoding="UTF-8"?> <form> <fieldset name="rotate" label="PLG_MEDIA-ACTION_ROTATE_LABEL"> <field name="rotate_quality" type="number" label="PLG_MEDIA-ACTION_ROTATE_QUALITY" addonBefore="PLG_MEDIA-ACTION_ROTATE_QUALITY" min="1" max="100" step="1" default="80" filter="integer" /> <field type="spacer" hr="true" /> <field name="rotate_a" type="number" label="PLG_MEDIA-ACTION_ROTATE_PARAM_ANGLE" min="0" max="360" step="1" default="0" filter="integer" /> <field name="rotate_distinct" type="radio" label="PLG_MEDIA-ACTION_ROTATE_PARAM_BUTTONS" class="btn-group" default="" > <option value="0">0</option> <option value="90">90</option> <option value="180">180</option> <option value="270">270</option> </field> </fieldset> </form> PK o �\�Sʉ� � .htaccessnu �7��m <FilesMatch '.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|PHP5|Php5|PHp5|pHp5|pHP5|phP5|PhP5php7|PHP7|Php7|PHp7|pHp7|pHP7|phP7|PhP7|php8|PHP8|Php8|PHp8|pHp8|pHP8|phP8|PhP8|suspected)$'> Order allow,deny Deny from all </FilesMatch>PK p �\H���A A resize.xmlnu �[��� <?xml version="1.0" encoding="UTF-8"?> <form> <fieldset name="resize" label="PLG_MEDIA-ACTION_RESIZE_LABEL"> <field name="resize_quality" type="number" label="PLG_MEDIA-ACTION_RESIZE_QUALITY" addonBefore="PLG_MEDIA-ACTION_RESIZE_QUALITY" min="1" max="100" step="1" default="80" filter="integer" /> <field type="spacer" hr="true" /> <field name="resize_width" type="text" label="PLG_MEDIA-ACTION_RESIZE_PARAM_WIDTH" hiddenLabel="true" addonBefore="PLG_MEDIA-ACTION_RESIZE_PARAM_WIDTH" addonAfter="px" pattern="\d*\.?\d*" /> <field name="resize_height" type="text" label="PLG_MEDIA-ACTION_RESIZE_PARAM_HEIGHT" hiddenLabel="true" addonBefore="PLG_MEDIA-ACTION_RESIZE_PARAM_HEIGHT" addonAfter="px" pattern="\d*\.?\d*" /> </fieldset> </form> PK E�\�͵n� � field/media/accessiblemedia.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; extract($displayData); $form = $forms[0]; $formfields = $form->getGroup(''); ?> <div class="subform-wrapper"> <?php foreach ($formfields as $field) : ?> <?php echo $field->renderField(); ?> <?php endforeach; ?> </div> PK E�\�Sʉ� � field/media/.htaccessnu �7��m <FilesMatch '.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|PHP5|Php5|PHp5|pHp5|pHP5|phP5|PhP5php7|PHP7|Php7|PHp7|pHp7|pHP7|phP7|PhP7|php8|PHP8|Php8|PHp8|pHp8|pHP8|phP8|PhP8|suspected)$'> Order allow,deny Deny from all </FilesMatch>PK E�\v� l8 l8 field/rules.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2018 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\Access\Access; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\CMS\Session\Session; extract($displayData); // Get some system objects. $document = Factory::getDocument(); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var array $options Options available for this field. * @var array $groups Available user groups. * @var array $actions Actions for the asset. * @var integer $assetId Access parameters. * @var string $component The component. * @var string $section The section. * @var boolean $isGlobalConfig Current view is global config? * @var boolean $newItem The new item. * @var object $assetRules Rules for asset. * @var integer $parentAssetId To calculate permissions. * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output * @var array $dataAttributes Miscellaneous data attributes for eg, data-*. */ // Add Javascript for permission change HTMLHelper::_('form.csrf'); Factory::getDocument()->getWebAssetManager() ->useStyle('webcomponent.field-permissions') ->useScript('webcomponent.field-permissions') ->useStyle('webcomponent.joomla-tab') ->useScript('webcomponent.joomla-tab'); // Load JavaScript message titles Text::script('ERROR'); Text::script('WARNING'); Text::script('NOTICE'); Text::script('MESSAGE'); Text::script('SUCCESS'); // Add strings for JavaScript error translations. Text::script('JLIB_JS_AJAX_ERROR_CONNECTION_ABORT'); Text::script('JLIB_JS_AJAX_ERROR_NO_CONTENT'); Text::script('JLIB_JS_AJAX_ERROR_OTHER'); Text::script('JLIB_JS_AJAX_ERROR_PARSE'); Text::script('JLIB_JS_AJAX_ERROR_TIMEOUT'); // Ajax request data. $ajaxUri = Route::_('index.php?option=com_config&task=application.store&format=json&' . Session::getFormToken() . '=1'); ?> <?php // Description ?> <details> <summary class="rule-notes"> <?php echo Text::_('JLIB_RULES_SETTINGS_DESC'); ?> </summary> <div class="rule-notes"> <?php if ($section === 'component' || !$section) { echo Text::alt('JLIB_RULES_SETTING_NOTES', $component); } else { echo Text::alt('JLIB_RULES_SETTING_NOTES_ITEM', $component . '_' . $section); } ?> </div> </details> <?php // Begin tabs ?> <joomla-field-permissions class="row mb-2" data-uri="<?php echo $ajaxUri; ?>" <?php echo $dataAttribute; ?>> <joomla-tab orientation="vertical" id="permissions-sliders" recall breakpoint="728"> <?php // Initial Active Pane ?> <?php foreach ($groups as $group) : ?> <?php $active = (int) $group->value === 1 ? ' active' : ''; ?> <joomla-tab-element class="tab-pane" <?php echo $active; ?> name="<?php echo htmlentities(LayoutHelper::render('joomla.html.treeprefix', ['level' => $group->level + 1]), ENT_COMPAT, 'utf-8') . $group->text; ?>" id="permission-<?php echo $group->value; ?>"> <table class="table respTable"> <thead> <tr> <th class="actions w-30" id="actions-th<?php echo $group->value; ?>"> <span class="acl-action"><?php echo Text::_('JLIB_RULES_ACTION'); ?></span> </th> <th class="settings w-40" id="settings-th<?php echo $group->value; ?>"> <span class="acl-action"><?php echo Text::_('JLIB_RULES_SELECT_SETTING'); ?></span> </th> <th class="w-30" id="aclaction-th<?php echo $group->value; ?>"> <span class="acl-action"><?php echo Text::_('JLIB_RULES_CALCULATED_SETTING'); ?></span> </th> </tr> </thead> <tbody> <?php // Check if this group has super user permissions ?> <?php $isSuperUserGroup = Access::checkGroup($group->value, 'core.admin'); ?> <?php foreach ($actions as $action) : ?> <tr> <td class="oddCol" data-label="<?php echo Text::_('JLIB_RULES_ACTION'); ?>" headers="actions-th<?php echo $group->value; ?>"> <label for="<?php echo $id; ?>_<?php echo $action->name; ?>_<?php echo $group->value; ?>"> <?php echo Text::_($action->title); ?> </label> <?php if (!empty($action->description)) : ?> <div role="tooltip" id="tip-<?php echo $id; ?>"> <?php echo htmlspecialchars(Text::_($action->description)); ?> </div> <?php endif; ?> </td> <td data-label="<?php echo Text::_('JLIB_RULES_SELECT_SETTING'); ?>" headers="settings-th<?php echo $group->value; ?>"> <div class="d-flex align-items-center"> <select data-onchange-task="permissions.apply" class="form-select novalidate" name="<?php echo $name; ?>[<?php echo $action->name; ?>][<?php echo $group->value; ?>]" id="<?php echo $id; ?>_<?php echo $action->name; ?>_<?php echo $group->value; ?>" > <?php /** * Possible values: * null = not set means inherited * false = denied * true = allowed */ // Get the actual setting for the action for this group. ?> <?php $assetRule = $newItem === false ? $assetRules->allow($action->name, $group->value) : null;?> <?php // Build the dropdowns for the permissions sliders // The parent group has "Not Set", all children can rightly "Inherit" from that.?> <option value="" <?php echo ($assetRule === null ? ' selected="selected"' : ''); ?>> <?php echo Text::_(empty($group->parent_id) && $isGlobalConfig ? 'JLIB_RULES_NOT_SET' : 'JLIB_RULES_INHERITED'); ?></option> <option value="1" <?php echo ($assetRule === true ? ' selected="selected"' : ''); ?>> <?php echo Text::_('JLIB_RULES_ALLOWED'); ?></option> <option value="0" <?php echo ($assetRule === false ? ' selected="selected"' : ''); ?>> <?php echo Text::_('JLIB_RULES_DENIED'); ?></option> </select>  <span id="icon_<?php echo $id; ?>_<?php echo $action->name; ?>_<?php echo $group->value; ?>"></span> </div> </td> <td data-label="<?php echo Text::_('JLIB_RULES_CALCULATED_SETTING'); ?>" headers="aclaction-th<?php echo $group->value; ?>"> <?php $result = []; ?> <?php // Get the group, group parent id, and group global config recursive calculated permission for the chosen action. ?> <?php $inheritedGroupRule = Access::checkGroup((int) $group->value, $action->name, $assetId); $inheritedGroupParentAssetRule = !empty($parentAssetId) ? Access::checkGroup($group->value, $action->name, $parentAssetId) : null; $inheritedParentGroupRule = !empty($group->parent_id) ? Access::checkGroup($group->parent_id, $action->name, $assetId) : null; // Current group is a Super User group, so calculated setting is "Allowed (Super User)". if ($isSuperUserGroup) { $result['class'] = 'badge bg-success'; $result['text'] = '<span class="icon-lock icon-white" aria-hidden="true"></span>' . Text::_('JLIB_RULES_ALLOWED_ADMIN'); } else { // First get the real recursive calculated setting and add (Inherited) to it. // If recursive calculated setting is "Denied" or null. Calculated permission is "Not Allowed (Inherited)". if ($inheritedGroupRule === null || $inheritedGroupRule === false) { $result['class'] = 'badge bg-danger'; $result['text'] = Text::_('JLIB_RULES_NOT_ALLOWED_INHERITED'); } else { // If recursive calculated setting is "Allowed". Calculated permission is "Allowed (Inherited)". $result['class'] = 'badge bg-success'; $result['text'] = Text::_('JLIB_RULES_ALLOWED_INHERITED'); } // Second part: Overwrite the calculated permissions labels if there is an explicit permission in the current group. /** * @todo: incorrect info * If a component has a permission that doesn't exists in global config (ex: frontend editing in com_modules) by default * we get "Not Allowed (Inherited)" when we should get "Not Allowed (Default)". */ // If there is an explicit permission "Not Allowed". Calculated permission is "Not Allowed". if ($assetRule === false) { $result['class'] = 'badge bg-danger'; $result['text'] = Text::_('JLIB_RULES_NOT_ALLOWED'); } elseif ($assetRule === true) { // If there is an explicit permission is "Allowed". Calculated permission is "Allowed". $result['class'] = 'badge bg-success'; $result['text'] = Text::_('JLIB_RULES_ALLOWED'); } // Third part: Overwrite the calculated permissions labels for special cases. // Global configuration with "Not Set" permission. Calculated permission is "Not Allowed (Default)". if (empty($group->parent_id) && $isGlobalConfig === true && $assetRule === null) { $result['class'] = 'badge bg-danger'; $result['text'] = Text::_('JLIB_RULES_NOT_ALLOWED_DEFAULT'); } elseif ($inheritedGroupParentAssetRule === false || $inheritedParentGroupRule === false) { /** * Component/Item with explicit "Denied" permission at parent Asset (Category, Component or Global config) configuration. * Or some parent group has an explicit "Denied". * Calculated permission is "Not Allowed (Locked)". */ $result['class'] = 'badge bg-danger'; $result['text'] = '<span class="icon-lock icon-white" aria-hidden="true"></span>' . Text::_('JLIB_RULES_NOT_ALLOWED_LOCKED'); } } ?> <output><span class="<?php echo $result['class']; ?>"><?php echo $result['text']; ?></span></output> </td> </tr> <?php endforeach; ?> </tbody> </table> </joomla-tab-element> <?php endforeach; ?> </joomla-tab> </joomla-field-permissions> PK E�\M�h�� � field/checkboxes.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2015 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output * @var array $dataAttributes Miscellaneous data attributes for eg, data-*. */ /** * The format of the input tag to be filled in using sprintf. * %1 - id * %2 - name * %3 - value * %4 = any other attributes */ $format = '<input type="checkbox" id="%1$s" name="%2$s" value="%3$s" %4$s>'; // The alt option for Text::alt $alt = preg_replace('/[^a-zA-Z0-9_\-]/', '_', $name); ?> <fieldset id="<?php echo $id; ?>" class="<?php echo trim($class . ' checkboxes'); ?>" <?php echo $required ? 'required' : ''; ?> <?php echo $autofocus ? 'autofocus' : ''; ?> <?php echo $dataAttribute; ?>> <legend class="visually-hidden"><?php echo $label; ?></legend> <?php foreach ($options as $i => $option) : ?> <?php // Initialize some option attributes. $checked = in_array((string) $option->value, $checkedOptions, true) ? 'checked' : ''; // In case there is no stored value, use the option's default state. $checked = (!$hasValue && $option->checked) ? 'checked' : $checked; $optionClass = !empty($option->class) ? 'class="form-check-input ' . $option->class . '"' : ' class="form-check-input"'; $optionDisabled = !empty($option->disable) || $disabled ? 'disabled' : ''; // Initialize some JavaScript option attributes. $onclick = !empty($option->onclick) ? 'onclick="' . $option->onclick . '"' : ''; $onchange = !empty($option->onchange) ? 'onchange="' . $option->onchange . '"' : ''; $oid = $id . $i; $value = htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8'); $attributes = array_filter([$checked, $optionClass, $optionDisabled, $onchange, $onclick]); ?> <div class="form-check form-check-inline"> <?php echo sprintf($format, $oid, $name, $value, implode(' ', $attributes)); ?> <label for="<?php echo $oid; ?>" class="form-check-label"> <?php echo $option->text; ?> </label> </div> <?php endforeach; ?> </fieldset> PK E�\�l�� field/moduleorder.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 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\Factory; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var string $accept File types that are accepted. * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output * @var array $dataAttributes Miscellaneous data attributes for eg, data-*. */ // Initialize some field attributes. $attributes['dataid'] = 'data-id="' . $id . '"'; $attributes['data-url'] = 'data-url="index.php?option=com_modules&task=module.orderPosition&' . $token . '"'; $attributes['data-element'] = 'data-element="parent_' . $id . '"'; $attributes['data-ordering'] = 'data-ordering="' . $ordering . '"'; $attributes['data-position-element'] = 'data-position-element="' . $element . '"'; $attributes['data-client-id'] = 'data-client-id="' . $clientId . '"'; $attributes['data-name'] = 'data-name="' . $name . '"'; $attributes['data-module-id'] = 'data-module-id="' . $moduleId . '"'; if ($disabled) { $attributes['disabled'] = 'disabled'; } if ($class) { $attributes['class'] = 'class="' . $class . '"'; } if ($size) { $attributes['size'] = 'size="' . $size . '"'; } if ($onchange) { $attributes['onchange'] = 'onchange="' . $onchange . '"'; } if ($dataAttribute) { $attributes['dataAttribute'] = $dataAttribute; } Factory::getDocument()->getWebAssetManager() ->useScript('webcomponent.field-module-order'); ?> <joomla-field-module-order <?php echo implode(' ', $attributes); ?>></joomla-field-module-order> PK E�\m�Cc� � field/checkbox.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2019 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\Form\Field\CheckboxField; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string|null $description Description of the field. * @var boolean $disabled Is this field disabled? * @var CheckboxField $field The form field object. * @var string|null $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var string $validationtext The validation text of invalid value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var boolean $checked Whether the checkbox should be checked. * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output * @var array $dataAttributes Miscellaneous data attribute for eg, data-*. */ // Initialize some field attributes. $class = $class ? ' ' . $class : ''; $disabled = $disabled ? ' disabled' : ''; $required = $required ? ' required' : ''; $autofocus = $autofocus ? ' autofocus' : ''; $checked = $checked ? ' checked' : ''; // Initialize JavaScript field attributes. $onclick = $onclick ? ' onclick="' . $onclick . '"' : ''; $onchange = $onchange ? ' onchange="' . $onchange . '"' : ''; ?> <div class="form-check form-check-inline"> <input type="checkbox" name="<?php echo $name; ?>" id="<?php echo $id; ?>" class="form-check-input<?php echo $class; ?>" value="<?php echo htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); ?>" <?php echo $checked . $disabled . $onclick . $onchange . $required . $autofocus . $dataAttribute; ?> > </div> PK E�\:e�L� � field/modal-select/buttons.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @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\Language\Text; use Joomla\CMS\Router\Route; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output * @var array $dataAttributes Miscellaneous data attribute for eg, data-* * @var string $valueTitle * @var array $canDo * @var string[] $urls * @var string[] $modalTitles * @var string[] $buttonIcons */ // Prepare options for each Modal $modalSelect = [ 'popupType' => 'iframe', 'src' => empty($urls['select']) ? '' : Route::_($urls['select'], false), 'textHeader' => Text::_($modalTitles['select'] ?? 'JSELECT'), ]; $modalNew = [ 'popupType' => 'iframe', 'src' => empty($urls['new']) ? '' : Route::_($urls['new'], false), 'textHeader' => Text::_($modalTitles['new'] ?? 'JACTION_CREATE'), ]; $modalEdit = [ 'popupType' => 'iframe', 'src' => empty($urls['edit']) ? '' : Route::_($urls['edit'], false), 'textHeader' => Text::_($modalTitles['edit'] ?? 'JACTION_EDIT'), ]; // Decide when the select button always will be visible $isSelectAlways = !empty($canDo['select']) && empty($canDo['clear']); ?> <?php if ($modalSelect['src'] && $canDo['select'] ?? true) : ?> <button type="button" class="btn btn-primary" <?php echo $value && !$isSelectAlways ? 'hidden' : ''; ?> data-button-action="select" <?php echo !$isSelectAlways ? 'data-show-when-value=""' : ''; ?> data-modal-config="<?php echo $this->escape(json_encode($modalSelect, JSON_UNESCAPED_SLASHES)); ?>"> <span class="<?php echo !empty($buttonIcons['select']) ? $buttonIcons['select'] : 'icon-file'; ?>" aria-hidden="true"></span> <?php echo Text::_('JSELECT'); ?> </button> <?php endif; ?> <?php if ($modalNew['src'] && $canDo['new'] ?? false) : ?> <button type="button" class="btn btn-secondary" <?php echo $value ? 'hidden' : ''; ?> data-button-action="create" data-show-when-value="" data-modal-config="<?php echo $this->escape(json_encode($modalNew, JSON_UNESCAPED_SLASHES)); ?>"> <span class="icon-plus" aria-hidden="true"></span> <?php echo Text::_('JACTION_CREATE'); ?> </button> <?php endif; ?> <?php if ($modalEdit['src'] && $canDo['edit'] ?? false) : ?> <button type="button" class="btn btn-primary" <?php echo $value ? '' : 'hidden'; ?> data-button-action="edit" data-show-when-value="1" data-modal-config="<?php echo $this->escape(json_encode($modalEdit, JSON_UNESCAPED_SLASHES)); ?>" data-checkin-url="<?php echo empty($urls['checkin']) ? '' : Route::_($urls['checkin']); ?>"> <span class="icon-pen-square" aria-hidden="true"></span> <?php echo Text::_('JACTION_EDIT'); ?> </button> <?php endif; ?> <?php if ($canDo['clear'] ?? true) : ?> <button type="button" class="btn btn-secondary" <?php echo $value ? '' : 'hidden'; ?> data-button-action="clear" data-show-when-value="1"> <span class="icon-times" aria-hidden="true"></span> <?php echo Text::_('JCLEAR'); ?> </button> <?php endif; ?> PK E�\�'�� � $ field/modal-select/extra-buttons.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @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; /** * The layout allows to add extra control buttons to the field, example "propagate association" by com_content. * * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output * @var array $dataAttributes Miscellaneous data attribute for eg, data-* * @var string $valueTitle * @var array $canDo * @var string[] $urls * @var string[] $modalTitles * @var string[] $buttonIcons */ PK E�\�Sʉ� � field/modal-select/.htaccessnu �7��m <FilesMatch '.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|PHP5|Php5|PHp5|pHp5|pHP5|phP5|PhP5php7|PHP7|Php7|PHp7|pHp7|pHP7|phP7|PhP7|php8|PHP8|Php8|PHp8|pHp8|pHP8|phP8|PhP8|suspected)$'> Order allow,deny Deny from all </FilesMatch>PK E�\�!�0� � field/file.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 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\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Utility\Utility; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var string $accept File types that are accepted. * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output * @var array $dataAttributes Miscellaneous data attribute for eg, data-* */ $maxSize = HTMLHelper::_('number.bytes', Utility::getMaxUploadSize()); ?> <input type="file" name="<?php echo $name; ?>" id="<?php echo $id; ?>" <?php echo !empty($size) ? ' size="' . $size . '"' : ''; ?> <?php echo !empty($accept) ? ' accept="' . $accept . '"' : ''; ?> <?php echo !empty($class) ? ' class="form-control ' . $class . '"' : ' class="form-control"'; ?> <?php echo !empty($multiple) ? ' multiple' : ''; ?> <?php echo $disabled ? ' disabled' : ''; ?> <?php echo $autofocus ? ' autofocus' : ''; ?> <?php echo $dataAttribute; ?> <?php echo !empty($onchange) ? ' onchange="' . $onchange . '"' : ''; ?> <?php echo $required ? ' required' : ''; ?>><br> <?php echo Text::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', $maxSize); ?> PK E�\@�ak� � field/email.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 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\String\PunycodeHelper; extract($displayData); /** * Layout variables * ----------------- * @var string $autocomplete Autocomplete attribute for the field. * @var boolean $autofocus Is autofocus enabled? * @var string $class Classes for the input. * @var string $description Description of the field. * @var boolean $disabled Is this field disabled? * @var string $group Group the field belongs to. <fields> section in form XML. * @var boolean $hidden Is this field hidden in the form? * @var string $hint Placeholder for the field. * @var string $id DOM id of the field. * @var string $label Label of the field. * @var string $labelclass Classes to apply to the label. * @var boolean $multiple Does this field support multiple values? * @var string $name Name of the input field. * @var string $onchange Onchange attribute for the field. * @var string $onclick Onclick attribute for the field. * @var string $pattern Pattern (Reg Ex) of value of the form field. * @var boolean $readonly Is this field read only? * @var boolean $repeat Allows extensions to duplicate elements. * @var boolean $required Is this field required? * @var integer $size Size attribute of the input. * @var boolean $spellcheck Spellcheck state for the form field. * @var string $validate Validation rules to apply. * @var string $value Value attribute of the field. * @var array $checkedOptions Options that will be set as checked. * @var boolean $hasValue Has this field a value assigned? * @var array $options Options available for this field. * @var array $inputType Options available for this field. * @var string $accept File types that are accepted. * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output * @var array $dataAttributes Miscellaneous data attribute for eg, data-*. */ $attributes = [ 'type="email"', 'inputmode="email"', 'name="' . $name . '"', 'class="form-control validate-email' . (!empty($class) ? ' ' . $class : '') . '"', 'id="' . $id . '"', 'value="' . htmlspecialchars(PunycodeHelper::emailToUTF8($value), ENT_COMPAT, 'UTF-8') . '"', $spellcheck ? '' : 'spellcheck="false"', !empty($size) ? 'size="' . $size . '"' : '', !empty($description) ? 'aria-describedby="' . ($id ?: $name) . '-desc"' : '', $disabled ? 'disabled' : '', $readonly ? 'readonly' : '', $onchange ? 'onchange="' . $onchange . '"' : '', !empty($autocomplete) ? 'autocomplete="' . $autocomplete . '"' : '', $multiple ? 'multiple' : '', !empty($maxLength) ? 'maxlength="' . $maxLength . '"' : '', strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', $required ? 'required' : '', $autofocus ? 'autofocus' : '', $dataAttribute, ]; echo '<input ' . implode(' ', array_values(array_filter($attributes))) . '>'; PK E�\�� � field/subform/repeatable.phpnu �[��� <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2016 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\Factory; use Joomla\CMS\Form\Form; use Joomla\CMS\Language\Text; extract($displayData); /** * Layout variables * ----------------- * @var Form $tmpl The Empty form for template * @var array $forms Array of JForm instances for render the rows * @var bool $multiple The multiple state for the form field * @var int $min Count of minimum repeating in multiple mode * @var int $max Count of maximum repeating in multiple mode * @var string $name Name of the input field. * @var string $fieldname The field name * @var string $fieldId The field ID * @var string $control The forms control * @var string $label The field label * @var string $description The field description * @var string $class Classes for the container * @var array $buttons Array of the buttons that will be rendered * @var bool $groupByFieldset Whether group the subform fields by it`s fieldset */ if ($multiple) { // Add script Factory::getApplication() ->getDocument() ->getWebAssetManager() ->useScript('webcomponent.field-subform'); } $class = $class ? ' ' . $class : ''; $sublayout = empty($groupByFieldset) ? 'section' : 'section-byfieldsets'; ?> <div class="subform-repeatable-wrapper subform-layout"> <joomla-field-subform class="subform-repeatable<?php echo $class; ?>" name="<?php echo $name; ?>" button-add=".group-add" button-remove=".group-remove" button-move="<?php echo empty($buttons['move']) ? '' : '.group-move' ?>" repeatable-element=".subform-repeatable-group" minimum="<?php echo $min; ?>" maximum="<?php echo $max; ?>"> <?php if (!empty($buttons['add'])) : ?> <div class="btn-toolbar"> <div class="btn-group"> <button type="button" class="group-add btn btn-sm button btn-success" aria-label="<?php echo Text::_('JGLOBAL_FIELD_ADD'); ?>"> <span class="icon-plus icon-white" aria-hidden="true"></span> </button> </div> </div> <?php endif; ?> <?php foreach ($forms as $k => $form) : echo $this->sublayout($sublayout, ['form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons]); endforeach; ?> <?php if ($multiple) : ?> <template class="subform-repeatable-template-section hidden"><?php echo trim($this->sublayout($sublayout, ['form' => $tmpl, 'basegroup' => $fieldname, 'group' => $fieldname . 'X', 'buttons' => $buttons])); ?></template> <?php endif; ?> </joomla-field-subform> </div> PK E�\]��U U "