-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_categories_list.php
35 lines (25 loc) · 965 Bytes
/
mod_categories_list.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
29
30
31
32
33
<?php
/**
* @package Categories list Module
* @version 1.1.0 - May 2020
* @author web-eau.net
* @website www.web-eau.net
* @copyright (C) 2016-2019- web-eau.net
* @license GNU/GPL http://www.gnu.org/licenses/gpl-2.0.html
*/
// no direct access
defined('_JEXEC') or die;
/*// Include the helper functions only once
require_once dirname(__FILE__).'/helper.php';
$list = modCategoriesListHelper::getList($params);
if (!empty($list)) {
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
$startLevel = reset($list)->getParent()->level;
require JModuleHelper::getLayoutPath('mod_categories_list', $params->get('layout', 'default'));
}*/
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Module\CategoriesList\Site\Helper\CategoriesListHelper;
$list = CategoriesListHelper::getList($params);
if (!empty($list)) {
require ModuleHelper::getLayoutPath('mod_categories_list', $params->get('layout', 'default'));
}