-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_body_header.inc.php
More file actions
115 lines (101 loc) · 4.04 KB
/
_body_header.inc.php
File metadata and controls
115 lines (101 loc) · 4.04 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
/**
* This is the BODY header include template.
*
* For a quick explanation of b2evo 2.0 skins, please start here:
* {@link http://b2evolution.net/man/skin-development-primer}
*
* This is meant to be included in a page template.
*
* @package evoskins
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
// ---------------------------- SITE HEADER INCLUDED HERE ----------------------------
// If site headers are enabled, they will be included here:
siteskin_include( '_site_body_header.inc.php' );
// ------------------------------- END OF SITE HEADER --------------------------------
?>
<div class="container-fluid">
<div class="row">
<div class="headpicture">
<div class="headipic_section <?php
if( $Skin->get_setting( 'header_content_pos' ) == 'center_pos' ) {
echo 'center';
} elseif( $Skin->get_setting( 'header_content_pos' ) == 'left_pos' ){
echo 'left';
} elseif( $Skin->get_setting( 'header_content_pos' ) == 'right_pos' ){
echo 'right';
}
?>">
<?php
if( $Skin->get_setting( 'header_content_pos' ) == 'column_pos' ) {
echo '<div class="container">';
}
skin_container( NT_('Header'), array(
) );
if( $Skin->get_setting( 'header_content_pos' ) == 'column_pos' ) {
echo '</div>';
}
?>
</div>
</div>
<nav class="top-menu container-fluid">
<div class="row">
<!-- Brand and toggle get grouped for better mobile display -->
<?php if( $Skin->get_setting( 'top_menu_position' ) == 'menu_inline' ) {
echo '<div class="container menu_inline_container">';
} ?>
<div class="navbar-header<?php if( $Skin->get_setting( 'top_menu_position' ) == 'menu_center' ) { echo ' navbar-header-center'; } ?>">
<button type="button" class="navbar-toggle navbar-toggle-hamb collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php
if( $Skin->get_setting( 'top_menu_brand' ) ) {
// ------------------------- "Menu" Collection title --------------------------
skin_widget( array(
// CODE for the widget:
'widget' => 'coll_title',
// Optional display params
'block_start' => '<div class="navbar-brand">',
'block_end' => '</div>',
'item_class' => 'navbar-brand',
) );
// ------------------------- "Menu" Collection logo --------------------------
}
?>
</div><!-- /.navbar-header -->
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse<?php if( $Skin->get_setting( 'top_menu_position' ) == 'menu_center' ) { echo ' menu_center'; } ?>" id="navbar-collapse-1">
<ul class="navbar-nav evo_container evo_container__menu" id="menu">
<?php
// ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
// Display container and contents:
// Note: this container is designed to be a single <ul> list
skin_container( NT_('Menu'), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => '',
'block_end' => '',
'block_display_title' => false,
'list_start' => '',
'list_end' => '',
'item_start' => '<li class="evo_widget $wi_class$">',
'item_end' => '</li>',
'item_selected_start' => '<li class="active evo_widget $wi_class$">',
'item_selected_end' => '</li>',
'item_title_before' => '',
'item_title_after' => '',
) );
// ----------------------------- END OF "Menu" CONTAINER -----------------------------
?>
</ul>
</div><!-- .collapse -->
<?php if( $Skin->get_setting( 'top_menu_position' ) == 'menu_inline' ) {
echo '</div><!-- .container -->';
} ?>
</div><!-- .row -->
</nav><!-- .top-menu -->
</div>
</div>