-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-blog.php
103 lines (81 loc) · 2.94 KB
/
header-blog.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
<!DOCTYPE html>
<html <?php language_attributes(); ?> xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta charset="utf-8">
<title><?php wp_title(''); ?></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" type="text/css">
<meta name="twitter:widgets:csp" content="on">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script>window.twttr = (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
t = window.twttr || {};
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "https://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
t._e = [];
t.ready = function(f) {
t._e.push(f);
};
return t;
}(document, "script", "twitter-wjs"));</script>
<?php wp_enqueue_script("jquery");
wp_enqueue_style('wptheme', get_template_directory_uri() . '/style.css' );
if(wp_is_mobile()){
wp_enqueue_style('wpthememob', get_template_directory_uri() . '/mobile-style.css' );
}
?>
<meta property="og:title" content="<?php wp_title(); ?>"/>
<meta property="og:site_name" content="<?php echo get_bloginfo( 'name' ); ?>"/>
<?php wp_head(); ?>
<?php
if(!wp_is_mobile()){
echo '<style>' . of_get_option('ph_custom_css') .'</style>';
}else{
echo '<style>' . of_get_option('ph_mobile_custom_css') .'</style>';
}
?>
</head>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '427029257462972',
xfbml : true,
version : 'v2.0'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class='container'>
<header>
<div class='header-wrap'>
<div class='site-logo-blog'>
<a href='<?php echo esc_url( home_url( '/blog/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>' rel='home'><img src='<?php echo esc_url( of_get_option('ph_blog_logo') ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>'></a>
</div>
<div class='tagline-blog'>
<span><?php echo of_get_option('ph_blog_tag'); ?></span>
</div>
</div>
<hr>
<div class="clear-both"></div>
</header>
</div>
<body class='<?php
if (!isset($class)) $class = ''; #WHFIX 24/03/2015:
body_class( $class ); ?>'>
<div id='wrapper'>
<div class='container ph-blog'>