-
Notifications
You must be signed in to change notification settings - Fork 5
/
nav-fixedtop.php
62 lines (60 loc) · 2.31 KB
/
nav-fixedtop.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
// navbar-fixedtop Navigation Template
// @since Bootplate v0.6
?>
<nav class="navbar navbar-full navbar-fixed-top <?php echo get_bootplate_nav_style(); ?> hamburger-cross">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggler hidden-sm-up is-closed navbar-toggle collapsed" data-toggle="collapse" data-target="#primary-menu" aria-expanded="false" aria-controls="primary-menu">
<span class="sr-only screen-reader-text">Toggle Menu</span>
<span class="hamb-top"></span>
<span class="hamb-middle"></span>
<span class="hamb-bottom"></span>
</button>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="navbar-brand" rel="home"><?php echo bootplate_get_logo(); ?></a>
</div>
<div id="primary-menu" class="collapse navbar-collapse pull-sm-right navbar-toggleable-xs">
<?php if(is_bootplate_nav_position('nav-left')) : ?>
<ul class="nav navbar-nav">
<?php
if(has_nav_menu( 'primary-left' )) {
wp_nav_menu(
array(
'menu' => 'primary-left',
'theme_location' => 'primary-left',
'depth' => 2,
'container' => false,
'menu_class' => false,
'items_wrap' => '%3$s',
//'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker()
)
);
}
?>
</ul>
<?php endif; ?>
<?php if(is_bootplate_nav_position('nav-right')) : ?>
<ul class="nav navbar-nav navbar-right">
<?php
if(has_nav_menu( 'primary' )) {
wp_nav_menu(
array(
'menu' => 'primary',
'theme_location' => 'primary',
'depth' => 2,
'container' => false,
'menu_class' => false,
'items_wrap' => '%3$s',
//'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker()
)
);
}
?>
<?php if( get_theme_mod( 'bootplate_enable_search' ) == 1) : ?><li><a href="<?php echo site_url('/search/'); ?>"><span class="bp-search"></span><span class="hidden-sm-up"><?php _e('Site Search', 'bootplate'); ?></span></a></li><?php endif; ?>
</ul>
<?php endif; ?>
</div><!-- /#primary-menu -->
</div><!--/.container-->
</nav>