/
navigation.php
executable file
·43 lines (37 loc) · 1.14 KB
/
navigation.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
<?php
/**
* navigation template part
*
* @package multiloquent\template_parts
*/
/**
* nav bar
*/
$mods = get_theme_mods();
if (! empty($mods['bootswatch']) && $mods['bootswatch'] == 'mdb') {
?>
<nav role="navigation" class="navbar fixed-top navbar-dark bg-primary">
<div class="">
<a title="navigation menu" href="javascript:void(0);" class="navbar-brand sidebar-toggle">
<span class="fa fa-bars"></span>
</a>
<?php echo '<h2 class="navbar-brand d-none d-sm-inline"><a class="navbar-brand" title="' . get_bloginfo('name') . '" href="' . esc_url(home_url('/')) . '">' . get_bloginfo('name') . '</a></h2>'; ?>
</div>
<div class="material-search">
<?php get_search_form();?>
</div>
</nav>
<?php
} else {
?>
<nav role="navigation" class="navbar fixed-top navbar-light bg-light">
<div class="">
<a title="navigation menu" href="javascript:void(0);" class="navbar-brand sidebar-toggle">
<span class="fa fa-bars"></span>
</a>
<?php echo '<h2 class="navbar-brand"><a class="navbar-brand" title="' . get_bloginfo('name') . '" href="' . esc_url(home_url('/')) . '">' . get_bloginfo('name') . '</a></h2>'; ?>
</div>
</nav>
<?php
}
?>