/
header.php
86 lines (77 loc) · 3.59 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
<!DOCTYPE html>
<html dir="ltr" lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<title><?php if ( is_author() ) {
echo 'Posts de "'; wp_title(''); echo '" | '; bloginfo( 'name' );
} elseif ( is_category() || is_tag() || is_archive() ) {
echo 'Arquivo para "'; single_cat_title(); echo '" | '; bloginfo( 'name' );
} elseif ( is_search() ) {
echo 'Busca para "'.wp_specialchars($s).'" | '; bloginfo( 'name' );
} elseif ( is_404() ) {
echo 'Erro 404 - Conteúdo não encontrado | '; bloginfo( 'name' );
} elseif ( is_home() ) {
bloginfo( 'description' ); echo ' | '; bloginfo( 'name' );
} elseif ( is_single() ) {
wp_title('');
} else {
wp_title(''); echo ' | '; bloginfo( 'name' );
} ?></title>
<meta http-equiv="imagetoolbar" content="no" />
<meta property="fb:admins" content="159732357452275" />
<meta property="og:site_name" content="<?php bloginfo( 'name' ); ?>" />
<?php if ( is_option_setted('webprofile_feedburner') ) { ?>
<link rel="alternate" type="application/rss+xml" title="Feed RSS" href="http://feeds.feedburner.com/<?php theme_webprofile_feedburner(); ?>" />
<?php } else { ?>
<link rel="alternate" type="application/rss+xml" title="Feed RSS" href="<?php bloginfo('rss2_url'); ?>" />
<?php } ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/modernizr.js"></script>
<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/script.js"></script>
<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/jquery.float.box.js"></script>
<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/jquery.placeholder.js"></script>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="bg-stripe"></div>
<div id="wrapper">
<header>
<div id="headerlogo">
<?php if ( is_option_setted('logo_url') ) { ?>
<a href="<?php theme_logo_link(); ?>" title="Página inicial"><img src="<?php theme_logo_url(); ?>" alt="<?php bloginfo( 'name' ); ?>" /></a>
<?php } else { ?>
<a href="<?php bloginfo( 'siteurl' ); ?>" title="Página inicial"><?php bloginfo( 'name' ); ?></a>
<?php } ?>
</div>
<div class="desc">
<?php if ( is_home() || is_404() || is_category() || is_tag() || is_search() ) { ?>
<h1 id="headertitle"><?php theme_header_title(); ?></h1>
<?php } else { ?>
<p id="headertitle"><?php theme_header_title(); ?></p>
<?php } ?>
<?php if ( is_home() || is_404() || is_search() ) { ?>
<h2 id="headerdesc"><?php theme_header_desc(); ?></h2>
<?php } else { ?>
<p id="headerdesc"><?php theme_header_desc(); ?></p>
<?php } ?>
</div>
</header>
<nav>
<ul>
<li<?php if ( is_home() ) echo( ' class="current_page_item"' ); ?>><a href="<?php bloginfo( 'siteurl' ); ?>/">Blog</a></li>
<?php wp_list_pages('title_li=&depth=1'); ?>
</ul>
</nav>
<div id="search">
<form method="get" action="<?php bloginfo( 'siteurl' ); ?>/">
<input type="text" name="s" placeholder="Buscar" />
<input type="submit" value="" />
</form>
</div>
<?php if ( ! dynamic_sidebar( 'Top Banner' ) ) : ?>
<?php endif ?>