[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  mod_messages
   6   *
   7   * @copyright   (C) 2019 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\Language\Text;
  14  use Joomla\CMS\Router\Route;
  15  
  16  $hideLinks = $app->input->getBool('hidemainmenu');
  17  
  18  if ($hideLinks || $countUnread < 1) {
  19      return;
  20  }
  21  
  22  $route = 'index.php?option=com_messages&view=messages';
  23  ?>
  24  <a class="header-item-content" href="<?php echo Route::_($route); ?>" title="<?php echo Text::_('MOD_MESSAGES_PRIVATE_MESSAGES'); ?>">
  25      <div class="header-item-icon">
  26          <div class="w-auto">
  27              <span class="icon-envelope icon-fw" aria-hidden="true"></span>
  28              <small class="header-item-count"><?php echo $countUnread; ?></small>
  29          </div>
  30      </div>
  31      <div class="header-item-text">
  32          <?php echo Text::_('MOD_MESSAGES_PRIVATE_MESSAGES'); ?>
  33      </div>
  34  </a>


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