This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
header.php
executable file
·79 lines (67 loc) · 2.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
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till </header>
*
* @package WordPress
* @subpackage wbruno
* @since wbruno 0.0.1
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title><?php if (is_home()) {
echo bloginfo('name');
} elseif (is_404()) {
echo '404 Not Found';
} elseif (is_category()) {
echo 'Category:'; wp_title('');
} elseif (is_search()) {
echo 'Search Results';
} elseif ( is_day() || is_month() || is_year() ) {
echo 'Archives:'; wp_title('');
} else {
echo wp_title('');
} ?></title>
<meta charset="<?php bloginfo('charset') ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="author" content="William Bruno" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
<?php if (is_category() || is_tag() || is_month() || is_paged() || is_404()) { ?>
<link rel="canonical" href= "<?php echo home_url(); ?>"/>
<meta name="robots" content="noindex, follow" />
<?php } ?>
<?php if(is_search()) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php }?>
<?php if ( is_singular() ) { ?>
<link rel="canonical" href="<?php the_permalink(); ?>" />
<?php } ?>
<link rel="dns-prefetch" href="http://google-analytics.com" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/src/javascript/html5-shiv.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> role="document">
<div id="wrap">
<header id="header" class="fleft" role="banner">
<div id="author-blog">
<?php if (is_category() || is_tag() || is_month() || is_paged() || is_page() || is_single()): ?>
<a href="<?php echo home_url(); ?>" id="blog-name"><?php bloginfo('name'); ?></a>
<?php else: ?>
<h1 id="blog-name"><?php bloginfo('name'); ?></h1>
<?php endif; ?>
<img src="http://wbruno.com.br/wp-content/uploads/2014/02/67d0e7b8c79946ef6ab00c8c36b00efc.jpg" alt="<?php bloginfo('name'); ?>" width="200" />
<p><?php bloginfo( 'description' ); ?></p>
<span id="switch">black theme</span>
</div><!-- #author-blog -->
<ul id="header-sidebar">
<?php dynamic_sidebar('header-sidebar'); ?>
</ul><!-- #header-sidebar -->
</header><!-- #header -->