Permalink
Browse files

Added new EXPERIMENTALS hooks: ":navbar" instead of navbar.html and a…

… navbar dropdown-page called ":dropdownpage". These hooks permits to create differents "navbar" and "drop-down page" (eg. for a index menu) per namespaces (like the sidebar).
  • Loading branch information...
LotarProject committed Sep 27, 2015
1 parent f15fce4 commit c10c0488c2581f8c6e04320c2716edf301f046f9
Showing with 14 additions and 2 deletions.
  1. +1 −1 tpl_functions.php
  2. +13 −1 tpl_navbar.php
@@ -477,7 +477,7 @@ function bootstrap3_dropdown_page($page) {
$dropdown = '<ul class="nav navbar-nav dw__dropdown_page">' .
'<li class="dropdown dropdown-large">' .
'<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="">' .
p_get_first_heading($page) .
p_get_first_heading(page_findnearest($page)) .
' <span class="caret"></span></a>' .
'<ul class="dropdown-menu dropdown-menu-large" role="menu">' .
'<li><div class="container">'.
@@ -49,9 +49,14 @@
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav" id="dw__navbar">
<?php echo bootstrap3_navbar() // Include the navbar for different namespaces ?>
<?php echo bootstrap3_dropdown_page('dropdownpage') ?>
<?php if(file_exists(dirname(__FILE__) . '/navbar.html')): ?>
<ul class="nav navbar-nav">
<?php tpl_includeFile('navbar.html') ?>
</ul>
<?php endif; ?>
<div class="navbar-right">
@@ -60,9 +65,16 @@
<?php endif; ?>
<?php
// Admin Menu
include_once(dirname(__FILE__).'/tpl_admin.php');
// Tools Menu
include_once(dirname(__FILE__).'/tpl_tools_menu.php');
// Theme Switcher Menu
include_once(dirname(__FILE__).'/tpl_theme_switcher.php');
// Translation Menu
include_once(dirname(__FILE__).'/tpl_translation.php');
?>

0 comments on commit c10c048

Please sign in to comment.