forked from starburst1977/readium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
114 lines (97 loc) · 4.65 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
<?php
if(ot_get_option('site_isotype')) {
$isotype = ot_get_option('site_isotype');
}
else {
$isotype = get_stylesheet_directory_uri() . '/assets/img/santiagum-isotype.png';
}
if(ot_get_option('site_favicon')) {
$favicon = ot_get_option('site_favicon');
}
else {
$favicon = get_stylesheet_directory_uri() . '/assets/img/santiagum-favicon.png';
}
if(ot_get_option('site_tw_url')) {
$twitter_username = parse_url(ot_get_option('site_tw_url'));
$twitter_username = $twitter_username['path'];
}
else {
$twitter_username = false;
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="index, follow, archive">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo w_title('—'); ?></title>
<!-- meta -->
<meta name="description" content="<?php bloginfo('description'); ?>" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="<?php bloginfo('name'); ?>">
<meta name="twitter:description" content="<?php bloginfo('description'); ?>">
<meta name="twitter:site" content="<?php bloginfo('url'); ?>">
<?php if($twitter_username) : ?>
<meta name="twitter:creator" content="<?php echo str_replace('/', '@', $twitter_username); ?>">
<?php endif; ?>
<meta name="google-site-verification" content="">
<meta property="og:site_name" content="<?php bloginfo('name'); ?>">
<meta property="og:type" content="blog">
<?php if(is_single() OR is_page()) : ?>
<meta property="og:title" content="<?php the_title(); ?>">
<meta property="og:description" content="<?php echo w_get_excerpt(80); ?>">
<meta property="og:url" content="<?php the_permalink(); ?>">
<?php else : ?>
<meta property="og:title" content="<?php bloginfo('name'); ?>">
<meta property="og:description" content="<?php bloginfo('description'); ?>">
<meta property="og:url" content="<?php bloginfo('url'); ?>">
<?php endif; ?>
<meta property="og:image" content="<?php echo w_check_thumbnail(); ?>">
<!-- /meta -->
<!-- styles -->
<link href="<?php echo $favicon; ?>" rel="shortcut icon">
<link href="<?php echo get_stylesheet_directory_uri(); ?>/assets/css/main.css" rel="stylesheet">
<link href="<?php echo get_stylesheet_directory_uri(); ?>/assets/js/styles/github.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
<!-- /styles -->
<!-- wp head -->
<?php wp_head(); ?>
<!-- /wp head -->
</head>
<body <?php body_class(); ?>>
<!-- aside nav -->
<aside>
<h5>Search</h5>
<form role="search" method="get" action="<?php bloginfo('url'); ?>/">
<input type="search" class="search-field" placeholder="Search for..." value="" name="s" title="Search for:" />
</form>
<h5>Pages</h5>
<ul class="list-pages">
<li><a href="<?php bloginfo('url'); ?>">Home</li>
<?php wp_list_pages(array('title_li' => false)); ?>
</ul>
<h5>Categories</h5>
<ul class="list-categories">
<?php wp_list_categories(array('title_li' => false, 'show_count' => 1)); ?>
</ul>
<h5>Archives</h5>
<?php
$archives = wp_get_archives(array('show_post_count' => 1, 'echo' => 0));
$archives =
$archives = str_replace('</a> (', '</a> <span>', $archives);
$archives = str_replace(')', '</span>', $archives);
?>
<ul class="list-archives">
<?php echo $archives; ?>
</ul>
</aside>
<!-- /aside nav -->
<!-- wrapper -->
<div class="wrapper">
<a href="<?php bloginfo('url'); ?>" class="logo-santiagum"><span class="logo" style="background-image: url(<?php echo $isotype; ?>);"></span></a>