Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/layouts.zip
Назад
PK R!]�{$� � fields/render.phpnu &1i� <?php /** * @package Joomla.Site * @subpackage com_contact * * @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; // Check if we have all the data if (!key_exists('item', $displayData) || !key_exists('context', $displayData)) { return; } // Setting up for display $item = $displayData['item']; if (!$item) { return; } $context = $displayData['context']; if (!$context) { return; } JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); $parts = explode('.', $context); $component = $parts[0]; $fields = null; if (key_exists('fields', $displayData)) { $fields = $displayData['fields']; } else { $fields = $item->jcfields ?: FieldsHelper::getFields($context, $item, true); } if (!$fields) { return; } // Check if we have mail context in first element $isMail = (reset($fields)->context == 'com_contact.mail'); if (!$isMail) { // Print the container tag echo '<dl class="fields-container contact-fields dl-horizontal">'; } // Loop through the fields and print them foreach ($fields as $field) { // If the value is empty do nothing if (!strlen($field->value) && !$isMail) { continue; } $layout = $field->params->get('layout', 'render'); echo FieldsHelper::render($context, 'field.' . $layout, array('field' => $field)); } if (!$isMail) { // Close the container echo '</dl>'; } PK R!]�%�B� � field/render.phpnu &1i� <?php /** * @package Joomla.Site * @subpackage com_contact * * @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; if (!key_exists('field', $displayData)) { return; } $field = $displayData['field']; $label = JText::_($field->label); $value = $field->value; $class = $field->params->get('render_class'); $showLabel = $field->params->get('showlabel'); $labelClass = $field->params->get('label_render_class'); if ($field->context == 'com_contact.mail') { // Prepare the value for the contact form mail $value = html_entity_decode($value); echo ($showLabel ? $label . ': ' : '') . $value . "\r\n"; return; } if (!strlen($value)) { return; } ?> <dt class="contact-field-entry <?php echo $class; ?>"> <?php if ($showLabel == 1) : ?> <span class="field-label <?php echo $labelClass; ?>"><?php echo htmlentities($label, ENT_QUOTES | ENT_IGNORE, 'UTF-8'); ?>: </span> <?php endif; ?> </dt> <dd class="contact-field-entry <?php echo $class; ?>"> <span class="field-value"><?php echo $value; ?></span> </dd> PK Y!]d�d� � joomla/form/renderfield.phpnu &1i� <?php /** * @package JCE * @subpackage Admin * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @copyright Copyright (c) 2009-2024 Ryan Demmer. All rights reserved * @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; extract($displayData); /** * Layout variables * --------------------- * $options : (array) Optional parameters * $label : (string) The html code for the label (not required if $options['hiddenLabel'] is true) * $input : (string) The input field html code */ if (!empty($options['showonEnabled'])) { // joomla 3 HTMLHelper::_('jquery.framework'); HTMLHelper::_('script', 'jui/cms.js', array('version' => 'auto', 'relative' => true)); // joomla 4 HTMLHelper::_('script', 'jui/showon.js', array('version' => 'auto', 'relative' => true)); } $class = empty($options['class']) ? '' : ' ' . $options['class']; $rel = empty($options['rel']) ? '' : ' ' . $options['rel']; ?> <div class="control-group<?php echo $class; ?>"<?php echo $rel; ?>> <?php if (empty($options['hiddenLabel'])): ?> <div class="control-label"><?php echo $label; ?></div> <?php endif;?> <div class="controls"><?php echo $input; ?></div> <?php if (!empty($options['description'])): ?> <small class="description"><?php echo Text::_($options['description']); ?></small> <?php endif;?> </div>PK �]!]_�mlf f stats.phpnu &1i� <?php /** * @package Joomla.Plugin * @subpackage System.stats * * @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; extract($displayData); /** * Layout variables * ----------------- * @var array $statsData Array containing the data that will be sent to the stats server */ $versionFields = array('php_version', 'db_version', 'cms_version'); ?> <dl class="dl-horizontal js-pstats-data-details" style="display:none;"> <?php foreach ($statsData as $key => $value) : ?> <dt><?php echo JText::_('PLG_SYSTEM_STATS_LABEL_' . strtoupper($key)); ?></dt> <dd><?php echo in_array($key, $versionFields) ? (preg_match('/\d+(?:\.\d+)+/', $value, $matches) ? $matches[0] : $value) : $value; ?></dd> <?php endforeach; ?> </dl> PK �]!]�e��� � field/data.phpnu &1i� <?php /** * @package Joomla.Plugin * @subpackage System.stats * * @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; 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 $options Options available for this field. * @var array $statsData Statistics that will be sent to the stats server */ JHtml::_('jquery.framework'); ?> <a href="#" onclick="jQuery(this).next().toggle(200); return false;"><?php echo JText::_('PLG_SYSTEM_STATS_MSG_WHAT_DATA_WILL_BE_SENT'); ?></a> <?php echo $field->render('stats', compact('statsData')); PK �]!]oT= field/uniqueid.phpnu &1i� <?php /** * @package Joomla.Plugin * @subpackage System.stats * * @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; 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 $options Options available for this field. */ ?> <input type="hidden" name="<?php echo $name; ?>" id="<?php echo $id; ?>" value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>" /> <a class="btn" onclick="document.getElementById('<?php echo $id; ?>').value='';Joomla.submitbutton('plugin.apply');"> <span class="icon-refresh"></span> <?php echo JText::_('PLG_SYSTEM_STATS_RESET_UNIQUE_ID'); ?> </a>PK �]!]֙Q message.phpnu &1i� <?php /** * @package Joomla.Plugin * @subpackage System.stats * * @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 PlgSystemStats $plugin Plugin rendering this layout * @var \Joomla\Registry\Registry $pluginParams Plugin parameters * @var array $statsData Array containing the data that will be sent to the stats server */ ?> <div class="alert alert-info js-pstats-alert" style="display:none;"> <button data-dismiss="alert" class="close" type="button">×</button> <h2><?php echo JText::_('PLG_SYSTEM_STATS_LABEL_MESSAGE_TITLE'); ?></h2> <p> <?php echo JText::_('PLG_SYSTEM_STATS_MSG_JOOMLA_WANTS_TO_SEND_DATA'); ?> <a href="#" class="js-pstats-btn-details alert-link"><?php echo JText::_('PLG_SYSTEM_STATS_MSG_WHAT_DATA_WILL_BE_SENT'); ?></a> </p> <?php echo $plugin->render('stats', compact('statsData')); ?> <p><?php echo JText::_('PLG_SYSTEM_STATS_MSG_ALLOW_SENDING_DATA'); ?></p> <p class="actions"> <a href="#" class="btn js-pstats-btn-allow-always"><?php echo JText::_('PLG_SYSTEM_STATS_BTN_SEND_ALWAYS'); ?></a> <a href="#" class="btn js-pstats-btn-allow-once"><?php echo JText::_('PLG_SYSTEM_STATS_BTN_SEND_NOW'); ?></a> <a href="#" class="btn js-pstats-btn-allow-never"><?php echo JText::_('PLG_SYSTEM_STATS_BTN_NEVER_SEND'); ?></a> </p> </div> PK ^!]K�?�� � range.phpnu &1i� <?php /** * @package Regular Labs Library * @version 21.4.10972 * * @author Peter van Westen <info@regularlabs.com> * @link http://www.regularlabs.com * @copyright Copyright © 2021 Regular Labs All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('JPATH_BASE') or die; /** * Layout variables * ----------------- * @var array $displayData * @var string $field * @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 $prepend * @var string $append */ extract($displayData); // Including fallback code for HTML5 non supported browsers. JHtml::_('jquery.framework'); JHtml::_('script', 'system/html5fallback.js', ['version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9']); // Initialize some field attributes. $attributes_range = [ $class ? 'class="' . $class . '"' : '', $disabled ? 'disabled' : '', $readonly ? 'readonly' : '', ! empty($onchange) ? 'onchange="' . $onchange . '"' : '', ! empty($max) ? 'max="' . $max . '"' : '', ! empty($step) ? 'step="' . $step . '"' : '', ! empty($min) ? 'min="' . $min . '"' : '', $autofocus ? 'autofocus' : '', ]; $attributes_number = [ 'class="input-mini text-right"', ! empty($size) ? 'size="' . $size . '"' : '', $disabled ? 'disabled' : '', $readonly ? 'readonly' : '', strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '', ! empty($onchange) ? 'onchange="' . $onchange . '"' : '', isset($max) ? 'max="' . $max . '"' : '', ! empty($step) ? 'step="' . $step . '"' : '', isset($min) ? 'min="' . $min . '"' : '', $required ? 'required aria-required="true"' : '', $autocomplete, $autofocus ? 'autofocus' : '', ]; $chars = strlen($max) ?: $size ?: 4; $width = $chars * 8; $classes = []; if ($prepend) { $classes[] = 'input-prepend'; } if ($append) { $classes[] = 'input-append'; } if (strpos($prepend, 'icon-') === 0) { $prepend = '<span class="' . $prepend . '"></span>'; } if (strpos($append, 'icon-') === 0) { $append = '<span class="' . $append . '"></span>'; } if ($prepend && preg_match('#^[A-Z][A-Z0-9_]+$#', $prepend)) { $prepend = JText::_($prepend); } if ($append && preg_match('#^[A-Z][A-Z0-9_]+$#', $append)) { $append = JText::_($append); } $input = '<input type="number" name="' . $name . '" id="' . $id . '" value="' . $value . '" oninput="document.querySelector(\'input[data-for=\\\'' . $name . '\\\']\').value=this.value;"' . ' ' . implode(' ', $attributes_number) . ' />'; ?> <span class="<?php echo implode(' ', $classes); ?>"> <?php if ($prepend): ?> <span class="add-on"><?php echo $prepend; ?></span> <?php endif; ?> <?php echo $input; ?> <?php if ($append): ?> <span class="add-on"><?php echo $append; ?></span> <?php endif; ?> </span> <input type="range" data-for="<?php echo $name; ?>" value="<?php echo $value; ?>" oninput="document.querySelector('input[name=\'<?php echo $name; ?>\']').value=this.value;" <?php echo implode(' ', $attributes_range); ?> /> PK ^!]ͳ�ؽ � repeatable-table/section.phpnu &1i� <?php /** * @package Regular Labs Library * @version 21.4.10972 * * @author Peter van Westen <info@regularlabs.com> * @link http://www.regularlabs.com * @copyright Copyright © 2021 Regular Labs All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('_JEXEC') or die; /** * Layout variables * ----------------- * @var array $displayData * @var JForm $form The form instance for render the section * @var string $basegroup The base group name * @var string $group Current group name * @var array $buttons Array of the buttons that will be rendered */ extract($displayData); $fields = $form->getGroup(''); ?> <tr class="subform-repeatable-group subform-repeatable-group-<?php echo $unique_subform_id; ?>" data-base-name="<?php echo $basegroup; ?>" data-group="<?php echo $group; ?>" > <td> <a class="sortable-handler group-move group-move-<?php echo $unique_subform_id; ?>" style="cursor: move;" aria-label="<?php echo JText::_('JGLOBAL_FIELD_MOVE'); ?>"> <span class="icon-menu" aria-hidden="true"></span> </a> </td> <td data-column="<?php echo strip_tags($fields[$group . '__field']->label); ?>"> <?php echo $fields[$group . '__field']->renderField(['hiddenLabel' => true]); ?> <?php if (isset($fields[$group . '__field_name'])) : ?> <?php echo $fields[$group . '__field_name']->renderField(['hiddenLabel' => true]); ?> <?php endif; ?> </td> <?php if (isset($fields[$group . '__field_comparison'])) : ?> <td data-column="<?php echo strip_tags($fields[$group . '__field_comparison']->label); ?>"> <?php echo $fields[$group . '__field_comparison']->renderField(['hiddenLabel' => true]); ?> </td> <?php endif; ?> <td data-column="<?php echo strip_tags($fields[$group . '__field_value']->label); ?>"> <?php echo $fields[$group . '__field_value']->renderField(['hiddenLabel' => true]); ?> </td> <td> <div class="btn-group"> <a class="btn btn-mini button btn-danger group-remove group-remove-<?php echo $unique_subform_id; ?>" aria-label="<?php echo JText::_('JGLOBAL_FIELD_REMOVE'); ?>"> <span class="icon-minus" aria-hidden="true"></span> </a> </div> </td> </tr> PK ^!]aw� repeatable-table.phpnu &1i� <?php /** * @package Regular Labs Library * @version 21.4.10972 * * @author Peter van Westen <info@regularlabs.com> * @link http://www.regularlabs.com * @copyright Copyright © 2021 Regular Labs All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('_JEXEC') or die; /** * Layout variables * ----------------- * @var array $displayData * @var JForm $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 $fieldname The field name * @var string $control The forms control * @var string $label The field label * @var string $description The field description * @var array $buttons Array of the buttons that will be rendered * @var bool $groupByFieldset Whether group the subform fields by it`s fieldset */ extract($displayData); // Add script if ($multiple) { JHtml::_('jquery.ui', ['core', 'sortable']); JHtml::_('script', 'system/subform-repeatable.js', ['version' => 'auto', 'relative' => true]); } // Build heading $fields = $tmpl->getGroup(''); $column_count = 4; $table_head = []; $table_head[] = '<th style="width:10%;">' . strip_tags($fields[$id . '__' . $fieldname . 'X__field']->label) . '</th>'; if (isset($fields[$id . '__' . $fieldname . 'X__field_comparison'])) { $table_head[] = '<th style="width:10%;">' . strip_tags($fields[$id . '__' . $fieldname . 'X__field_comparison']->label) . '</th>'; $column_count++; } $table_head[] = '<th>' . strip_tags($fields[$id . '__' . $fieldname . 'X__field_value']->label) . '</th>'; $sublayout = 'section'; // Label will not be shown for sections layout, so reset the margin left JFactory::getDocument()->addStyleDeclaration( '.subform-table-sublayout-section .controls { margin-left: 0px }' ); ?> <div class="row-fluid"> <div class="subform-repeatable-wrapper subform-table-layout subform-table-sublayout-<?php echo $sublayout; ?> form-vertical"> <div class="subform-repeatable" data-bt-add="a.group-add-<?php echo $unique_subform_id; ?>" data-bt-remove="a.group-remove-<?php echo $unique_subform_id; ?>" data-bt-move="a.group-move-<?php echo $unique_subform_id; ?>" data-repeatable-element="tr.subform-repeatable-group-<?php echo $unique_subform_id; ?>" data-rows-container="tbody.rows-container-<?php echo $unique_subform_id; ?>" data-minimum="<?php echo $min; ?>" data-maximum="<?php echo $max; ?>" > <table class="adminlist table table-striped "> <thead> <tr> <th style="width:1%;"></th> <?php echo implode('', $table_head); ?> <th style="width:1%;"></th> </tr> </thead> <tbody class="rows-container-<?php echo $unique_subform_id; ?>"> <?php foreach ($forms as $k => $form): echo $this->sublayout( $sublayout, [ 'form' => $form, 'basegroup' => $id . '__' . $fieldname, 'group' => $id . '__' . $fieldname . $k, 'buttons' => $buttons, 'unique_subform_id' => $unique_subform_id, ] ); endforeach; ?> </tbody> <tfoot> <tr> <th colspan="<?php echo $column_count; ?>"> <div class="btn-group btn-group-full"> <a class="btn btn-mini btn-full button btn-success group-add group-add-<?php echo $unique_subform_id; ?>" aria-label="<?php echo JText::_('JGLOBAL_FIELD_ADD'); ?>" > <span class="icon-plus" aria-hidden="true"></span> </a> </div> </th> </tr> </tfoot> </table> <?php if ($multiple) : ?> <template class="subform-repeatable-template-section"><?php echo trim( $this->sublayout( $sublayout, [ 'form' => $tmpl, 'basegroup' => $id . '__' . $fieldname, 'group' => $id . '__' . $fieldname . 'X', 'buttons' => $buttons, 'unique_subform_id' => $unique_subform_id, ] ) ); ?></template> <?php endif; ?> </div> </div> </div> PK �t!]�C=U� � ! plugins/fields/mediajce/video.phpnu &1i� <?php defined('_JEXEC') or die; use Joomla\Utilities\ArrayHelper; array_walk($displayData, function (&$value, $key) { $value = htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); }); echo '<video ' . ArrayHelper::toString($displayData) . '></video>';PK �t!]�J� � "