-
Notifications
You must be signed in to change notification settings - Fork 0
/
infobar.php
80 lines (72 loc) · 2.15 KB
/
infobar.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
<?php
/* Weaver II
Inject - injects userdefined HTML
inject-infobar - adds both the infobar and the user pre-main area. Order of these
two can be swapped easily in a child theme simply by reversing the order here
*/
if (!weaverii_getopt_checked('wii_infobar_hide') && !weaverii_is_checked_page_opt('wvr-hide-page-infobar')) { // let's really not include it rather than display:none.
?>
<div id="infobar">
<?php
if (($h1 = weaverii_getopt('wii_info_html1'))!='') {
echo '<span id="infobar_html1">';
echo do_shortcode($h1);
echo ("</span>\n");
}
if (!weaverii_getopt_checked('wii_info_hide_breadcrumbs')) {
global $weaverii_crumbs;
if ( function_exists('yoast_breadcrumb') )
yoast_breadcrumb('<span id="breadcrumbs">','</span>');
else if ($weaverii_crumbs)
echo $weaverii_crumbs;
else
weaverii_breadcrumb();
}
if (($h1 = weaverii_getopt('wii_info_html2'))!='') {
echo '<span id="infobar_html2">';
echo do_shortcode($h1);
echo ("</span>\n");
}
?>
<span class='infobar_right'>
<?php
if (!weaverii_getopt_checked('wii_info_hide_pagenav')) {
echo ('<span id="infobar_paginate">');
if ( ! is_singular() ) {
if (function_exists ('wp_pagenavi')) {
wp_pagenavi();
} else
if ( function_exists( 'wp_paginate' ) ) {
wp_paginate( 'title=' );
} else {
echo weaverii_get_paginate_archive_page_links( 'plain', 2, 2 );
}
}
echo ("</span>\n");
}
if (weaverii_getopt('wii_info_search')) {
if (function_exists('weaverii_plus_search_form')) {
echo '<span id="infobar_search" style="padding-right:4px !important;display:inline-block;padding-left:20px;">';
echo weaverii_plus_search_form('',120);
echo '</span>';
} else {
echo '<span id="infobar_search">';
get_search_form();
echo '</span>';
}
}
if (weaverii_getopt_checked('wii_info_addlogin')) {
echo '<span id="infobar_login">';
wp_loginout();
echo '</span>';
}
if (($h1 = weaverii_getopt('wii_info_html3'))!='') {
echo '<span id="infobar_html3">';
echo do_shortcode($h1);
echo ("</span>\n");
}
?>
</span></div><div class="weaver-clear"></div><!-- #infobar -->
<?php
} // show info bar
?>