File manager - Edit - /home/opticamezl/www/newok/button.tar
Back
transition-button.php 0000644 00000005142 15173230237 0010765 0 ustar 00 <?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 */ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects extract($displayData, EXTR_OVERWRITE); /** * Layout variables * ----------------- * @var string $icon * @var string $title * @var string $value * @var string $task * @var array $options */ $disabled = empty($options['transitions']) || !empty($options['disabled']); $id = $options['id']; $tipTitle = $options['tip_title']; $tipContent = $options['tip_content']; $checkboxName = $options['checkbox_name']; $task = $options['task']; ?> <button type="button" class="tbody-icon data-state-<?php echo $this->escape($value ?? ''); ?>" aria-labelledby="<?php echo $id; ?>" <?php echo $disabled ? 'disabled' : ''; ?> <?php if (!$disabled) : ?> onclick="Joomla.toggleAllNextElements(this, 'd-none')" <?php endif; ?> > <span class="<?php echo $this->escape($icon ?? ''); ?>" aria-hidden="true"></span> </button> <div id="<?php echo $id; ?>" role="tooltip"> <?php echo HTMLHelper::_('tooltipText', $tipTitle ?: $title, $tipContent, 0, false); ?> </div> <?php if (!$disabled) : ?> <div class="d-none"> <span class="visually-hidden"> <label for="transition-select_<?php echo (int) $row ?? ''; ?>"> <?php echo Text::_('JWORKFLOW_EXECUTE_TRANSITION'); ?> </label> </span> <?php $default = [ HTMLHelper::_('select.option', '', $this->escape($options['title'])), HTMLHelper::_('select.option', '-1', '--------', ['disable' => true]), HTMLHelper::_('select.option', '<OPTGROUP>', Text::_('COM_CONTENT_RUN_TRANSITION')), ]; $transitions = array_merge($default, $options['transitions'], [HTMLHelper::_('select.option', '</OPTGROUP>')]); $attribs = [ 'id' => 'transition-select_' . (int) $row ?? '', 'list.attr' => [ 'class' => 'form-select form-select-sm w-auto', 'onchange' => "this.form.transition_id.value=this.value;Joomla.listItemTask('" . $checkboxName . $this->escape($row ?? '') . "', '" . $task . "')"] ]; echo HTMLHelper::_('select.genericlist', $transitions, '', $attribs); ?> </div> <?php endif; ?> iconclass.php 0000644 00000000602 15173230237 0007234 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @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\Layout\LayoutHelper; $displayData['html'] = false; echo LayoutHelper::render('joomla.icon.iconclass', $displayData); action-button.php 0000644 00000002700 15173230237 0010045 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects extract($displayData, EXTR_OVERWRITE); /** * Layout variables * ----------------- * @var string $icon * @var string $title * @var string $value * @var string $task * @var array $options */ Factory::getDocument()->getWebAssetManager()->useScript('list-view'); $disabled = !empty($options['disabled']); $taskPrefix = $options['task_prefix']; $checkboxName = $options['checkbox_name']; $id = $options['id']; $tipTitle = $options['tip_title']; ?> <button type="button" class="js-grid-item-action tbody-icon data-state-<?php echo $this->escape($value ?? ''); ?>" aria-labelledby="<?php echo $id; ?>" <?php echo $disabled ? 'disabled' : ''; ?> data-item-id="<?php echo $checkboxName . $this->escape($row ?? ''); ?>" data-item-task="<?php echo $this->escape(isset($task) ? $taskPrefix . $task : ''); ?>" > <span class="<?php echo $this->escape($icon ?? ''); ?>" aria-hidden="true"></span> </button> <div id="<?php echo $id; ?>" role="tooltip"> <?php echo HTMLHelper::_('tooltipText', $tipTitle ?: $title, $title, 0, false); ?> </div>
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings