-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_responsivemenu.php
34 lines (28 loc) · 1.03 KB
/
mod_responsivemenu.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
34
<?php
/**
* @package Joomla.Site
* @subpackage responsivemenu
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Include the syndicate functions only once
require_once __DIR__ . '/helper.php';
$list = ModResponsiveMenuHelper::getList($params);
$base = ModResponsiveMenuHelper::getBase($params);
$active = ModResponsiveMenuHelper::getActive($params);
$active_id = $active->id;
$path = $base->tree;
$showAll = $params->get('showAllChildren');
$class_sfx = htmlspecialchars($params->get('class_sfx'));
if($params->get('loadcss') == '1')
{
$document = JFactory::getDocument();
$document->addStyleSheet( JURI::root( true ).'/media/mod_responsivemenu/css/responsivemenu.css' );
$document->addScript( JURI::root( true ).'/media/mod_responsivemenu/js/responsivemenu.js' );
}
if (count($list))
{
require JModuleHelper::getLayoutPath('mod_responsivemenu', $params->get('layout', 'default'));
}