-
Notifications
You must be signed in to change notification settings - Fork 53
/
header-bbpress.php
101 lines (91 loc) · 3.59 KB
/
header-bbpress.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package iPanelThemes Knowledgebase
*/
global $ipt_theme_op_settings;
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
<?php echo $ipt_theme_op_settings['integration']['header']; ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<?php do_action( 'before' ); ?>
<header id="masthead" class="site-header" role="banner">
<nav class="navbar navbar-default navbar-static-top main-navigation" role="navigation" id="site_navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only"><?php _e( 'Toggle navigation', 'ipt_mst' ); ?></span>
<i class="ipticm ipt-icomoon-menu2"></i>
</button>
<?php if ( isset( $ipt_theme_op_settings ) && $ipt_theme_op_settings['navigation']['search_bar'] == true ) : ?>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#site-navbar-search">
<span class="sr-only"><?php _e( 'Toggle search', 'ipt_mst' ); ?></span>
<i class="ipticm ipt-icomoon-search"></i>
</button>
<?php endif; ?>
<?php if ( isset( $ipt_theme_op_settings ) && $ipt_theme_op_settings['navigation']['show_login'] == true ) : ?>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#site-navbar-user">
<span class="sr-only"><?php _e( 'Toggle User', 'ipt_mst' ); ?></span>
<i class="ipticm ipt-icomoon-user"></i>
</button>
<?php endif; ?>
<a class="navbar-brand" href="<?php echo home_url( '/' ); ?>">
<?php if ( get_header_image() ) : ?>
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="">
<?php else : ?>
<?php bloginfo( 'name' ); ?>
<?php endif; // End header image check. ?>
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-left navbar-ex1-collapse">
<?php
wp_nav_menu( array(
'menu' => 'primary',
'theme_location' => 'primary',
'depth' => 4,
'container' => '',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'IPT_Bootstrap_Walker_Nav_Menu::fallback',
'walker' => new IPT_Bootstrap_Walker_Nav_Menu())
);
?>
</div>
<!-- Dynamic Login Buttons -->
<?php ipt_kb_navbar_login(); ?>
<!-- /.navbar-dynamic -->
<!-- Search bar -->
<?php ipt_kb_navbar_search(); ?>
<!-- /.navbar-form -->
</div>
</nav>
</header><!-- #masthead -->
<div id="content" class="site-content container">
<?php bbp_breadcrumb( array(
// HTML
'before' => '<ol id="breadcrumbs" class="breadcrumb">',
'after' => '</ol>',
// Separator
'sep' => ' ',
'pad_sep' => 0,
'sep_before' => '',
'sep_after' => '',
// Crumbs
'crumb_before' => '<li>',
'crumb_after' => '</li>',
// Current
'current_before' => '<span class="text-muted">',
'current_after' => '</span>',
) ); ?>