[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/modules/mod_menu/ -> mod_menu.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  mod_menu
   6   *
   7   * @copyright   (C) 2009 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\Helper\ModuleHelper;
  14  use Joomla\Module\Menu\Site\Helper\MenuHelper;
  15  
  16  $list       = MenuHelper::getList($params);
  17  $base       = MenuHelper::getBase($params);
  18  $active     = MenuHelper::getActive($params);
  19  $default    = MenuHelper::getDefault();
  20  $active_id  = $active->id;
  21  $default_id = $default->id;
  22  $path       = $base->tree;
  23  $showAll    = $params->get('showAllChildren', 1);
  24  $class_sfx  = htmlspecialchars($params->get('class_sfx', ''), ENT_COMPAT, 'UTF-8');
  25  
  26  if (count($list)) {
  27      require ModuleHelper::getLayoutPath('mod_menu', $params->get('layout', 'default'));
  28  }


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