-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmod_cat_items.php
28 lines (22 loc) · 927 Bytes
/
mod_cat_items.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php defined('_JEXEC') or die;
/*
* @package mod_cat_items
* @copyright Copyright (C) 2019 Aleksey A. Morozov (AlekVolsk). All rights reserved.
* @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt
*/
use Joomla\CMS\Helper\ModuleHelper;
require_once __DIR__ . '/helper.php';
$cacheparams = new \stdClass;
$cacheparams->cachemode = 'safeuri';
$cacheparams->class = 'ModCatItemsHelper';
$cacheparams->method = 'getList';
$cacheparams->methodparams = $params;
$cacheparams->modeparams = ['id' => 'int', 'Itemid' => 'int'];
$list = ModuleHelper::moduleCache($module, $params, $cacheparams);
if (!$list) {
return;
}
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
$showImage = $params->get('showImage', 0);
$showDate = $params->get('showDate', 0);
require ModuleHelper::getLayoutPath('mod_cat_items', $params->get('layout', 'default'));