-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathmod_bootstrapnav.php
More file actions
36 lines (31 loc) · 1.16 KB
/
Copy pathmod_bootstrapnav.php
File metadata and controls
36 lines (31 loc) · 1.16 KB
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
35
36
<?php
/**
* @version 1.1
* @package mod_bootstrapnav
* @copyright Copyright (C) 2014. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @author Brad Traversy <support@bootstrapjoomla.com> - http://www.bootstrapjoomla.com
*/
//No Direct Access
defined('_JEXEC') or die;
// Include the syndicate functions only once
require_once __DIR__ . '/helper.php';
$list = ModBootstrapnavHelper::getList($params);
$base = ModBootstrapnavHelper::getBase($params);
$active = ModBootstrapnavHelper::getActive($params);
$active_id = $active->id;
$path = $base->tree;
$showAll = $params->get('showAllChildren');
$class_sfx = htmlspecialchars($params->get('class_sfx'));
$nav_type = $params->get('nav_type');
$color = $params->get('color','navbar-white');
$fixed = $params->get('fixed','navbar-default');
$float = $params->get('float');
$brand_type = $params->get('brand_type');
$brand_text = $params->get('brand_text');
$brand_image = $params->get('brand_image');
$use_css = $params->get('use_css',0);
if (count($list))
{
require JModuleHelper::getLayoutPath('mod_bootstrapnav', $params->get('layout', 'default'));
}