-
Notifications
You must be signed in to change notification settings - Fork 0
/
_body_header_page.inc.php
185 lines (174 loc) · 7.79 KB
/
_body_header_page.inc.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?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.' );
global $baseurl, $skin_url, $disp, $preview, $Item;
// ---------------------------- 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 --------------------------------
$header_md = $Skin->change_class( 'header_page_content_mode' );
$trans = '';
if( $Skin->get_setting( 'nav_bg_transparent' ) == 1 ) {
$trans = 'class="nav_bgt"';
}
$affix_positioning_fix = '';
if( $Skin->get_setting( 'nav_sticky' ) == 1 )
{
$affix_positioning_fix = 'data-spy="affix"';
$affix_positioning_fix .= $Settings->get( 'site_skins_enabled' ) ? ' data-offset-top="42.4"' : 'data-offset-top="1"';
}
?>
<header id="nav" class="nav_page" <?php echo $affix_positioning_fix; ?>>
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav_tabs" 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
skin_widget( array(
// CODE for the widget:
'widget' => 'coll_title',
'block_start' => '<div class="navbar-brand">',
'block_end' => '</div>',
'block_title_start' => '<h3>',
'block_title_end' => '</h3>',
// 'item_class' => 'navbar-brand',
) );
?>
<!-- <a class="navbar-brand-img" href="<?php echo $baseurl; ?>">
<img src="<?php echo $skin_url.'logo_white.png'; ?>" />
</a> -->
</div>
<nav id="nav_tabs" class="nav_tabs collapse navbar-collapse">
<ul class="main_nav">
<?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="$wi_class$">',
'item_end' => '</li>',
'item_selected_start' => '<li class="active $wi_class$">',
'item_selected_end' => '</li>',
'item_title_before' => '',
'item_title_after' => '',
) );
// ----------------------------- END OF "Menu" CONTAINER -----------------------------
?>
</ul>
</nav>
<?php if( $Skin->get_setting( 'nav_search_icon' ) == 1 ) : ?>
<div class="search_icon">
<a href="#cd_search" class="search_tringger">
<span></span>
</a>
</div>
<div id="cd_search">
<?php
skin_widget( array(
// CODE for the widget:
'widget' => 'coll_search_form',
// Optional display params
'block_start' => '<div class="evo_widget $wi_class$ header_search">',
'block_end' => '</div>',
'block_display_title' => false,
'search_submit_before' => '<span class="hidden">',
'search_submit_after' => '</span>',
) );
?>
</div>
<?php endif; ?>
</div><!-- .container-fluid -->
</header><!-- #nav -->
<header id="main_header_page">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 <?php echo $header_md; ?>">
<div class="single_title_post">
<?php
if ( $preview ) {
echo "<h1>Post Preview</h1>"; // Show title post on the preview
} else if ( $disp == 'single' || $disp == 'page' ) {
$Item->title( array(
'before' => '<h1>',
'after' => '</h1>',
'link_type' => '#'
) );
} else if( $disp == '404' ) {
echo "<h1>404 Page</h1>";
} else if ( $disp == 'posts' ) {
echo "<h1>Posts Page</h1>";
} else {
request_title( array(
'title_before' => '<h1>',
'title_after' => '</h1>',
'title_none' => '',
'glue' => ' - ',
'title_single_disp' => false,
'title_page_disp' => false,
'format' => 'htmlbody',
'display_edit_links' => false,
'category_text' => '',
'categories_text' => '',
'catdir_text' => '',
'comments_text' => T_('Latest Replies'),
'front_text' => '',
'posts_text' => '',
'useritems_text' => T_('User\'s topics'),
'usercomments_text' => T_('User\'s replies'),
'register_text' => '',
'login_text' => '',
'lostpassword_text' => '',
'account_activation' => '',
'msgform_text' => T_('Contact'),
'thread_text' => T_('Contact'),
'user_text' => '',
'users_text' => '',
'search_text' => T_( 'Search Results' ),
) );
}
?>
</div>
</div><!-- .col -->
<?php if( $Skin->get_setting('header_breadcrumb') == 1 ) : ?>
<div class="col-xs-12 col-sm-12 <?php echo $header_md; ?>">
<div class="bc_content">
<?php
// ------------------------- "Breadcrumbs" CONTAINER EMBEDDED HERE --------------------------
// Breadcrumbs
skin_widget( array(
// CODE for the widget:
'widget' => 'breadcrumb_path',
// Optional display params
'block_start' => '<ul class="breadcrumb">',
'block_end' => '</ul><div class="clear"></div>',
'separator' => '',
'item_mask' => '<li><a href="$url$">$title$</a></li>',
'item_active_mask' => '<li class="active">$title$</li>',
) );
// ----------------------------- END OF "Page Top" CONTAINER -----------------------------
?>
</div>
</div><!-- .col -->
<?php endif; ?>
</div><!-- .row -->
</div><!-- .container -->
</header><!-- #main_header -->