-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
141 lines (112 loc) · 6.87 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
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" <?php language_attributes();?>> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" <?php language_attributes();?>> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" <?php language_attributes();?>> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes();?>> <!--<![endif]-->
<head>
<!-- Base
================================================== -->
<title><?php echo get_bloginfo('name'); ?> <?php wp_title(); ?></title>
<meta http-equiv="Content-Type" content="<?php echo get_bloginfo('html_type'); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Mobile Specific
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css" />
<!--[if IE 7]>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie7.css" type="text/css" media="screen" />
<![endif]-->
<!-- Favicons
================================================== -->
<?php
if ( function_exists( 'get_option_tree') ) {
$apex_fav16 = get_option_tree( 'img_favicon16' );
if($apex_fav16==""){$apex_fav16 = get_template_directory_uri().'/images/favicon.ico';}
$apex_fav57 = get_option_tree( 'img_favicon57' );
if($apex_fav57==""){$apex_fav57 = get_template_directory_uri().'/images/apple-touch-icon.png';}
$apex_fav72 = get_option_tree( 'img_favicon72' );
if($apex_fav72==""){$apex_fav72 = get_template_directory_uri().'/images/apple-touch-icon-72x72.png';}
$apex_fav114 = get_option_tree( 'img_favicon114' );
if($apex_fav114==""){$apex_fav114 = get_template_directory_uri().'/images/apple-touch-icon-114x114.png';}
}
?>
<link rel="shortcut icon" href="<?php echo $apex_fav16 ?>">
<link rel="apple-touch-icon" href="<?php echo $apex_fav57 ?>">
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo $apex_fav72 ?>">
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo $apex_fav114 ?>">
<!--/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/-->
<?php wp_head(); ?>
<?php
if ( function_exists( 'get_option_tree') ) {
$apex_logo = get_option_tree( 'img_logo' );
if($apex_logo==""){$apex_logo = get_template_directory_uri().'/images/logo.png';}
$apex_logotext = get_option_tree( 'text_logotagline' );
$apex_layout_topline = get_option_tree( 'value_headertopline' );
if($apex_layout_topline=="full"){$tl_full = "full"; $tl_wide = "wide";}else{$tl_full = ""; $tl_wide = "";}
$apex_layout_content = get_option_tree( 'value_contentlayout' );
if($apex_layout_content=="full"){$lc_full = "full"; $lc_wide = "wide";}else{$lc_full = ""; $lc_wide = "";}
$apex_default_bgimage = get_option_tree( 'img_bgdefault' );
}
$pagecustoms = getOptions();
if (isset($pagecustoms["background_image"])){$apex_bgimage = $pagecustoms['background_image'];}else{$apex_bgimage = "";}
if (isset($pagecustoms["portfolio_layout"])){$apex_portfoliolayout = $pagecustoms['portfolio_layout'];}else{$apex_portfoliolayout = "";}
if($apex_portfoliolayout==0){$foliocol = "portfolio4column"; }else{$foliocol = "portfolio2column";}
?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-4993510-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body <?php body_class(); ?>>
<a name="top"></a>
<div id="top-hover" class="container">
<span class="company">Collyard Chiropractic
<span class="contact">| <a href="tel:7632740377" class="linkbg">763-274-0377</a></span>
</span>
<span class="to-top">
<a href="#top" class="linkbg" title="Jump Back to the Top of the Page">∧ Back to the Top</a>
</span>
</div>
<!-- Site Backgrounds
================================================== -->
<!-- Change to class="poswrapheaderline wide" and class="headerline full" for a full-width header line -->
<div class="poswrapheaderline <?php echo $tl_wide ?>"><div class="headerline <?php echo $tl_full ?>"></div></div>
<?php if ($apex_bgimage=="" && $apex_default_bgimage=="") { ?><div class="tiledbackground"></div><?php } ?>
<?php if ($apex_bgimage=="" && $apex_default_bgimage!="") { ?><img src="<?php echo $apex_default_bgimage ?>" alt="" id="background" /><?php } else
if ($apex_bgimage!="" && $apex_default_bgimage=="") { ?><img src="<?php echo $apex_bgimage ?>" alt="" id="background" /><?php } else
if ($apex_bgimage!="" && $apex_default_bgimage!="") { ?><img src="<?php echo $apex_bgimage ?>" alt="" id="background" /><?php } ?>
<!-- Change to class="poswrapper wide" and class="whitebackground full" for a full-width site background -->
<div class="poswrapper <?php echo $lc_wide ?>"><div class="whitebackground <?php echo $lc_full ?>"></div></div>
<div class="container main <?php echo $foliocol ?>">
<!-- Header | Logo, Menu
================================================== -->
<div class="sixteen columns header">
<div class="logo"><a href="<?php echo home_url(); ?>"><img src="<?php echo $apex_logo ?>" alt="" /></a></div>
<div class="logotext"><?php echo $apex_logotext ?></div>
<h3 class="logophone" style="display: none;">
<a href="tel:7632740337" class="linkbg">763-274-0337</a>
</h3>
<div class="mainmenu">
<!-- Regular Main Menu -->
<?php wp_nav_menu( array( 'menu' => 'navigation', 'container_class' => 'ddsmoothmenu', 'container_id' => 'mainmenu', 'theme_location' => 'navigation' ) ); ?>
<!-- Responsive Main Menu -->
<form id="responsive-menu" action="#" method="post">
<select>
<option value=""><?php _e('Navigation', 'apex'); ?></option>
</select>
</form>
</div>
<div class="headerdivider"></div>
</div>