This repository has been archived by the owner on Apr 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
executable file
·147 lines (131 loc) · 4.76 KB
/
header.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
<!DOCTYPE html><!-- HTML 5 -->
<?php
$options = get_option('themezee_options');
?>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="description" content="<?php echo $options['themeZee_description']; ?>">
<meta name="keywords" content="<?php echo $options['themeZee_keywords']; ?>">
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<title><?php bloginfo('name'); if(is_home() || is_front_page()) { echo ' - '; bloginfo('description'); } else { wp_title(); } ?></title>
<style type="text/css">
#topnavi {
position: static; float: right; margin-right: 10px;
}
</style>
<?php webonary_zeedisplay_link_style_sheets() ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<!-- wp_head -->
<?php wp_head();
$upload_dir = wp_upload_dir();
?>
<!-- wp_head end -->
</head>
<body <?php body_class(); ?> style="text-align:center">
<div align="center">
<!-- My IME complains about an unmatched div here and below, but matching the
divs causes problems with the site. I assume they are closed elsewhere.-->
<div id="wrapper" <?php if(!isMobile()) { ?>style=max-width:900px; <?php } ?>>
<div id="wrap">
<div id="head">
<div id="logo" align=left>
<?php
$options = get_option('themezee_options');
if ( isset($options['themeZee_logo']) and $options['themeZee_logo'] <> "") { ?>
<a href="<?php echo home_url(); ?>"><img src="<?php echo esc_url($options['themeZee_logo']); ?>" alt="Logo" /></a>
<?php } else { /* ?>
<a href="<?php echo home_url(); ?>/"><h1><?php bloginfo('name'); ?></h1></a>
<?php */ } ?>
</div>
<?php if (has_nav_menu('top_navi') && !isMobile()) {?>
<div style="display: table-cell; vertical-align: bottom; position: static; padding-bottom: 10px;">
<?php if (function_exists('qtrans_init')) { ?><div style="height: 50px;"><div id=navlanguage><nobr><?php echo qtrans_getLanguageLinks('text'); ?></nobr></div></div> <?php } ?>
<?php
if(is_active_sidebar('sidebar-header')) : ?>
<div style="height: 50px;">
<div id=navlanguage>
<ul>
<?php dynamic_sidebar('sidebar-header'); ?>
</ul>
<div style="clear: both;"></div>
</div>
</div>
<?php endif; ?>
<div id="topnavi">
<?php
// Get Top Navigation out of Theme Options
wp_nav_menu(array(
'theme_location' => 'top_navi',
'container' => false,
'echo' => true,
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'depth' => 0,
'fallback_cb' => ''));
?>
</div>
</div>
<?php } ?>
</div>
<?php if (has_nav_menu('top_navi') && isMobile()) {?>
<?php if (function_exists('qtrans_init')) { ?><div style="height: 50px;"><div id=navlanguage><nobr><?php echo qtrans_getLanguageLinks('text'); ?></nobr></div></div> <?php } ?>
<?php
if(is_active_sidebar('sidebar-header')) : ?>
<div style="height: 50px;">
<div id=navlanguage>
<ul>
<?php dynamic_sidebar('sidebar-header'); ?>
</ul>
<div style="clear: both;"></div>
</div>
</div>
<?php endif; ?>
<div style="clear: both;"></div>
<div id="topnavi">
<?php
// Get Top Navigation out of Theme Options
wp_nav_menu(array(
'theme_location' => 'top_navi',
'container' => false,
'echo' => true,
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'depth' => 0,
'fallback_cb' => ''));
?>
</div>
<?php } ?>
<?php if (has_nav_menu('top_navi')){?>
<div id="navbar" <?php if(!isMobile()) { ?>style="max-width: 900px;" <?php } ?>><div id="navtitle" <?php if(!isMobile()) { ?>style="padding: 12px 0 8px 10px;"<?php } ?>><?php bloginfo('name'); ?></div></div>
<?php } ?>
<?php if (has_nav_menu('main_navi')){?>
<div id="navi">
<?php
// Get Main Navigation out of Theme Options
wp_nav_menu(array(
'theme_location' => 'main_navi',
'container' => false,
'echo' => true,
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'depth' => 0,
'fallback_cb' => ''));
?>
</div>
<?php } ?>
<div style="clear: both;"></div>
<?php if( get_header_image() != '') : ?>
<div id="custom_header">
<img src="<?php echo get_header_image(); ?>" style="width:100%;"/>
</div>
<?php endif; ?>
<!-- My IME complains about an unmatched div, but matching the divs here causes
problems with the site. I assume they are closed elsewhere.-->