first commit
This commit is contained in:
28
layouts/joomla/editors/buttons.php
Normal file
28
layouts/joomla/editors/buttons.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?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\Language\Text;
|
||||
|
||||
$buttons = $displayData;
|
||||
|
||||
?>
|
||||
<div class="editor-xtd-buttons" role="toolbar" aria-label="<?php echo Text::_('JTOOLBAR'); ?>">
|
||||
<?php if ($buttons) : ?>
|
||||
<?php foreach ($buttons as $button) :
|
||||
$options = (array) $button->get('options');
|
||||
$legacyModal = $button->get('modal');
|
||||
?>
|
||||
<?php echo $this->sublayout('button', $button); ?>
|
||||
<?php echo $legacyModal ? $this->sublayout('modal', $button) : ''; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user