forked from joomdigi/mod_bootstrapnav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_bootstrapnav.php
37 lines (33 loc) · 1.51 KB
/
mod_bootstrapnav.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
35
36
37
<?php
/**
* @version 1.7
* @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 <[email protected]> - 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');
$background_color = $params->get('background_color', '#f9f9f9');
$text_color = $params->get('text_color', '#333333');
$active_background_color = $params->get('active_background_color', '#f4f4f4');
$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);
$show_subnav = $params->get('show_subnav', 1);
if (count($list)) {
require JModuleHelper::getLayoutPath('mod_bootstrapnav', $params->get('layout', 'default'));
}