CoreFiles by mySites.guru
upload.php26 lines, 696 bytes, from Joomla_5.4.2-Stable-Full_Package.zip
Raw History Compare with 5.4.1
md5
f2884e2dc4118e0415aa88950f2eb031
sha1
ca562226d36d17077f2b05cd26b9bbd58c331e42
sha256
6135b567948ea806d56e8677e5feaa661748aa15e61fe6409bf7608574517084
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_media
 *
 * @copyright   (C) 2017 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('webcomponent.toolbar-button');

$title = Text::_('JTOOLBAR_UPLOAD');
?>
<joomla-toolbar-button>
    <button class="btn btn-success" onclick="MediaManager.Event.fire('onClickUpload');">
        <span class="icon-upload" aria-hidden="true"></span>
        <?php echo $title; ?>
    </button>
</joomla-toolbar-button>

The same content is in 233 releases, Joomla 4.2.0-beta3 to 6.3.0-alpha1. See them all, or every version of this file.