[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/modules/mod_multilangstatus/tmpl/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  mod_multilangstatus
   6   *
   7   * @copyright   (C) 2011 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\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  use Joomla\CMS\Router\Route;
  16  
  17  $hideLinks = $app->input->getBool('hidemainmenu');
  18  
  19  if (!$multilanguageEnabled || $hideLinks) {
  20      return;
  21  }
  22  
  23  $modalHTML = HTMLHelper::_(
  24      'bootstrap.renderModal',
  25      'multiLangModal',
  26      array(
  27          'title'      => Text::_('MOD_MULTILANGSTATUS'),
  28          'url'        => Route::_('index.php?option=com_languages&view=multilangstatus&tmpl=component'),
  29          'height'     => '400px',
  30          'width'      => '800px',
  31          'bodyHeight' => 70,
  32          'modalWidth' => 80,
  33          'footer'     => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">' . Text::_('JTOOLBAR_CLOSE') . '</button>',
  34      )
  35  );
  36  
  37  $app->getDocument()->getWebAssetManager()
  38      ->registerAndUseScript('mod_multilangstatus.admin', 'mod_multilangstatus/admin-multilangstatus.min.js', [], ['type' => 'module', 'defer' => true]);
  39  ?>
  40  <a data-bs-target="#multiLangModal" class="header-item-content multilanguage" title="<?php echo Text::_('MOD_MULTILANGSTATUS'); ?>" data-bs-toggle="modal" role="button">
  41      <div class="header-item-icon">
  42          <span class="icon-language" aria-hidden="true"></span>
  43      </div>
  44      <div class="header-item-text">
  45          <?php echo Text::_('MOD_MULTILANGSTATUS'); ?>
  46      </div>
  47  </a>
  48  <?php echo $modalHTML; ?>


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