CoreFiles by mySites.guru
default.php36 lines, 1,007 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
b90671c8acd699014171c4cd459c907d
sha1
a8a55fde1c72b2b80dc64779483afe4d85adeb7e
sha256
6f285612681c1ec515ca131a6752a57810c0af67d4693ac6aca4f4092df1a72e
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_login
 *
 * @copyright   (C) 2008 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;

/**
 * Get the login modules
 * If you want to use a completely different login module change the value of name
 * in your layout override.
 */
$loginmodule = \Joomla\Component\Login\Administrator\Model\LoginModel::getLoginModule('mod_login');
echo ModuleHelper::renderModule($loginmodule, ['id' => 'section-box']);


/**
 * Get any other modules in the login position.
 * If you want to use a different position for the modules, change the name here in your override.
 */
$modules = ModuleHelper::getModules('login');

foreach ($modules as $module) {
// Render the login modules

    if ($module->module != 'mod_login') {
        echo ModuleHelper::renderModule($module, ['id' => 'section-box']);
    }
}

The same content is in 217 releases, Joomla 4.2.7-rc1 to 6.3.0-alpha1. See them all, or every version of this file.