| Server IP : 54.36.91.62 / Your IP : 216.73.217.94 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/dansnotreville-fr/nice/layouts/joomla/toolbar/ |
Upload File : |
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2013 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, EXTR_OVERWRITE);
/**
* Layout variables
* -----------------
* @var string $id
* @var string $onclick
* @var string $class
* @var string $text
* @var string $btnClass
* @var string $tagName
* @var string $htmlAttributes
* @var string $task The task which should be executed
* @var bool $listCheck Boolean, whether selection from a list is needed
* @var string $form CSS selector for a target form
* @var bool $formValidation Whether the form need to be validated before run the task
* @var string $message Confirmation message before run the task
*/
Factory::getDocument()->getWebAssetManager()
->useScript('core')
->useScript('webcomponent.toolbar-button');
$tagName = $tagName ?? 'button';
$taskAttr = '';
$idAttr = !empty($id) ? ' id="' . $id . '"' : '';
$listAttr = !empty($listCheck) ? ' list-selection' : '';
$formAttr = !empty($form) ? ' form="' . $this->escape($form) . '"' : '';
$validate = !empty($formValidation) ? ' form-validation' : '';
$msgAttr = !empty($message) ? ' confirm-message="' . $this->escape($message) . '"' : '';
if (!empty($task)) {
$taskAttr = ' task="' . $task . '"';
} elseif (!empty($onclick)) {
$htmlAttributes .= ' onclick="' . $onclick . '"';
}
?>
<joomla-toolbar-button <?php echo $idAttr . $taskAttr . $listAttr . $formAttr . $validate . $msgAttr; ?>>
<?php if (!empty($group)) : ?>
<a href="#" class="dropdown-item">
<span class="<?php echo trim($class ?? ''); ?>"></span>
<?php echo $text ?? ''; ?>
</a>
<?php else : ?>
<<?php echo $tagName; ?>
class="<?php echo $btnClass ?? ''; ?>"
<?php echo $htmlAttributes ?? ''; ?>
>
<span class="<?php echo trim($class ?? ''); ?>" aria-hidden="true"></span>
<?php echo $text ?? ''; ?>
</<?php echo $tagName; ?>>
<?php endif; ?>
</joomla-toolbar-button>