X7ROOT File Manager
Current Path:
/home/notabjze/narcev.com/layouts/joomla/toolbar
home
/
notabjze
/
narcev.com
/
layouts
/
joomla
/
toolbar
/
ðŸ“
..
📄
base.php
(406 B)
📄
basic.php
(2.57 KB)
📄
batch.php
(1.05 KB)
📄
containerclose.php
(268 B)
📄
containeropen.php
(676 B)
📄
dropdown.php
(1.96 KB)
📄
iconclass.php
(385 B)
📄
link.php
(1019 B)
📄
popup.php
(1.34 KB)
📄
separator.php
(826 B)
📄
standard.php
(2.13 KB)
📄
title.php
(576 B)
📄
versions.php
(1.72 KB)
Editing: basic.php
<?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\Factory; use Joomla\CMS\Language\Text; Factory::getDocument()->getWebAssetManager() ->useScript('core') ->useScript('webcomponent.toolbar-button'); extract($displayData, EXTR_OVERWRITE); /** * Layout variables * ----------------- * @var int $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 $dropdownItems The dropdown HTML * @var string $hasButtons * @var string $caretClass * @var string $toggleSplit */ $tagName = $tagName ?? 'button'; $taskAttr = ''; $title = ''; $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 ($id === 'toolbar-help') { $title = ' title="' . Text::_('JGLOBAL_OPENS_IN_A_NEW_WINDOW') . '"'; } if (!empty($task)) { $taskAttr = ' task="' . $task . '"'; } elseif (!empty($onclick)) { $htmlAttributes .= ' onclick="' . $onclick . '"'; } $direction = Factory::getLanguage()->isRtl() ? 'dropdown-menu-end' : ''; ?> <joomla-toolbar-button <?php echo $idAttr . $taskAttr . $listAttr . $formAttr . $validate . $msgAttr; ?>> <<?php echo $tagName; ?> class="<?php echo $btnClass ?? ''; ?>" <?php echo $htmlAttributes ?? ''; ?> <?php echo $title; ?> > <span class="<?php echo trim($class ?? ''); ?>" aria-hidden="true"></span> <?php echo $text ?? ''; ?> </<?php echo $tagName; ?>> <?php // If there is no toggle split then ensure the drop down items are rendered inside the custom element ?> <?php if(!($toggleSplit ?? true) && isset($dropdownItems) && trim($dropdownItems) !== '') : ?> <div class="dropdown-menu<?php echo ' ' . $direction; ?>"> <?php echo $dropdownItems; ?> </div> <?php endif; ?> </joomla-toolbar-button>
Upload File
Create Folder