CoreFiles by mySites.guru
mod_popular.php25 lines, 760 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
0542ccddbfab0ad605c8178e3895b33b
sha1
fda4a0a4d1e8481c7019668de30fb8de8ccb0375
sha256
009376b6f828bb53d352b433c8c1c7f05cde31ee18ffc87f96c0035ed4774c45
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_popular
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Component\Content\Administrator\Model\ArticlesModel;
use Joomla\Module\Popular\Administrator\Helper\PopularHelper;

$list = PopularHelper::getList($params, new ArticlesModel(array('ignore_request' => true)));

// Get module data.
if ($params->get('automatic_title', 0))
{
	$module->title = PopularHelper::getTitle($params);
}

// Render the module
require ModuleHelper::getLayoutPath('mod_popular', $params->get('layout', 'default'));

No other release has this exact content. See every version of this file.