-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader-testes.php
147 lines (111 loc) · 4.43 KB
/
header-testes.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
142
143
144
145
146
147
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Header Template
*
* Here we setup all logic and XHTML that is required for the header section of all screens.
*
* @package WooFramework
* @subpackage Template
*/
global $woo_options, $woocommerce;
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Page %s', 'woothemes' ), max( $paged, $page ) );
?></title>
<?php woo_meta(); ?>
<link href='http://fonts.googleapis.com/css?family=Bitter:400,700' rel='stylesheet' type='text/css'>
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>" />
<?php
wp_head();
woo_head();
?>
<script type="text/javascript">
(function() {
var po = document.createElement("script"); po.type = "text/javascript"; po.async = true;
po.src = "https://apis.google.com/js/plusone.js?publisherid=101664924913134585833";
var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<script type="text/javascript">
jQuery(document).ready(function () {
var length = jQuery('#sidebarcontent').height() - jQuery('#fixedscrollbox').height() + jQuery('#sidebarcontent').offset().top;
jQuery(window).scroll(function () {
var scroll = jQuery(this).scrollTop();
var height = jQuery('#fixedscrollbox').height() + 'px';
if (scroll < jQuery('#sidebarcontent').offset().top) {
jQuery('#fixedscrollbox').css({
'position': 'absolute',
'top': '0'
});
} else if (scroll > length) {
jQuery('#fixedscrollbox').css({
'position': 'absolute',
'bottom': '0',
'top': 'auto'
});
} else {
jQuery('#fixedscrollbox').css({
'position': 'fixed',
'top': '0',
'height': height
});
}
});
});
</script>
</head>
<body <?php body_class(); ?>>
<?php woo_top(); ?>
<div class="wrapper">
<?php woo_header_before(); ?>
<header id="header" class="col-full">
<?php woo_header_inside(); ?>
<div class="hgroup">
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</div>
<div class="header-direita">
<nav class="cart" id="logo-header">
<a href="http://www.fotospot.com.br"><img src="<?php bloginfo( 'stylesheet_directory' ); echo '/images/logo-fotospot-75px-transparent.png'; ?>" title="Fotospot - Fotografia Autoral" alt="Fotospot - Fotografia Autoral"></a>
</nav>
</div>
<?php woo_nav_before(); ?>
<span class="nav-toggle"><a href="#navigation"><span><?php _e( 'Navigation', 'woothemes' ); ?></span></a></span>
</header><!-- /#header -->
</div><!--/.wrapper-->
<nav id="navigation" class="col-full" role="navigation">
<div class="main-nav-inner">
<?php
if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'primary-menu' ) ) {
wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav', 'theme_location' => 'primary-menu' ) );
} else {
?>
<ul id="main-nav" class="nav">
<?php if ( is_page() ) $highlight = 'page_item'; else $highlight = 'page_item current_page_item'; ?>
<li class="<?php echo $highlight; ?>"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php _e( 'Home', 'woothemes' ); ?></a></li>
<?php wp_list_pages( 'sort_column=menu_order&depth=6&title_li=&exclude=' ); ?>
</ul><!-- /#nav -->
<?php } ?>
<?php get_search_form(); ?>
<?php woo_nav_after(); ?>
</div><!--/.main-nav-inner-->
</nav><!-- /#navigation -->
<?php woo_content_before(); ?>
<div class="wrapper">