CoreFiles by mySites.guru
shortcuts.php35 lines, 1,069 bytes, from Joomla_6.1.1-Stable-Full_Package.zip
Raw History Compare with 6.1.0
md5
9608594c4db0c7cb48e1352218f13580
sha1
be2b421206b0114bc9ac3a795d85ec281794de98
sha256
60df74805648e463075308e51f0602a2c50d4f2023d636bc21a6ba288b6c55e9
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_workflow
 *
 * @copyright   (C) 2026 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::getApplication()->getDocument()->getWebAssetManager()
    ->useScript('webcomponent.toolbar-button');

$shortcutsPopupOptions = json_encode([
    'src'             => '#shortcuts-popup-content',
    'width'           => '800px',
    'height'          => 'fit-content',
    'textHeader'      => Text::_('COM_WORKFLOW_GRAPH_SHORTCUTS_TITLE'),
    'preferredParent' => 'body',
]);
?>
<joomla-toolbar-button>
    <button
        class="btn btn-info action-button"
        data-joomla-dialog="<?php echo htmlspecialchars($shortcutsPopupOptions, ENT_QUOTES, 'UTF-8'); ?>"
    >
        <span class="fa fa-keyboard" aria-hidden="true"></span>
        <?php echo Text::_('COM_WORKFLOW_GRAPH_SHORTCUTS'); ?>
    </button>
</joomla-toolbar-button>

The same content is in 30 releases, Joomla 6.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.