[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_login/tmpl/login/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_login
   6   *
   7   * @copyright   (C) 2008 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  
  15  /**
  16   * Get the login modules
  17   * If you want to use a completely different login module change the value of name
  18   * in your layout override.
  19   */
  20  $loginmodule = \Joomla\Component\Login\Administrator\Model\LoginModel::getLoginModule('mod_login');
  21  echo ModuleHelper::renderModule($loginmodule, array('id' => 'section-box'));
  22  
  23  
  24  /**
  25   * Get any other modules in the login position.
  26   * If you want to use a different position for the modules, change the name here in your override.
  27   */
  28  $modules = ModuleHelper::getModules('login');
  29  
  30  foreach ($modules as $module) {
  31  // Render the login modules
  32  
  33      if ($module->module != 'mod_login') {
  34          echo ModuleHelper::renderModule($module, array('id' => 'section-box'));
  35      }
  36  }


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