[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_media/layouts/toolbar/ -> upload.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_media
   6   *
   7   * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\Factory;
  14  use Joomla\CMS\Language\Text;
  15  
  16  Factory::getDocument()->getWebAssetManager()
  17      ->useScript('webcomponent.toolbar-button');
  18  
  19  $title = Text::_('JTOOLBAR_UPLOAD');
  20  ?>
  21  <joomla-toolbar-button>
  22      <button class="btn btn-success" onclick="MediaManager.Event.fire('onClickUpload');">
  23          <span class="icon-upload" aria-hidden="true"></span>
  24          <?php echo $title; ?>
  25      </button>
  26  </joomla-toolbar-button>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer