-
Notifications
You must be signed in to change notification settings - Fork 0
/
header-home.php
152 lines (124 loc) · 6.65 KB
/
header-home.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
148
149
150
151
152
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package artunlimited
*/
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie ie6 lte-ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="ie ie7 lte-ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="ie ie8 lte-ie8"> <![endif]-->
<!--[if IE 9 ]> <html class="ie ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html <?php language_attributes(); ?> class="js no-flexbox flexbox-legacy canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients no-cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths pointerevents"><!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link href='http://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Gentium+Book+Basic' rel='stylesheet' type='text/css'>
<!--[if lt IE 9 ]><script src="/lib/respond.min.js"></script><![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="overlay"></div>
<div id="page" class="hfeed site site-home">
<div id="portfolio-banner">
<div class="barra-portfolio handle">
<a class="etiqueta-barra-portfolio" data-show="false">
</a>
</div>
</div><!-- #portfolio-banner -->
<div class="slide-out-div" id="portfolio-container">
<div class="barra-portfolio handle" id="portfolio-open">
<a id="portfolio-click" class="etiqueta-barra-portfolio" data-show="false">
</a>
</div>
<div class="home-portfolio" id="portfolio-content">
<div class="header-portfolio">
<div id="busca-aba" class="portfolio">
<div id="lupa-aba"></div>
<form id="searchform" action="<?php bloginfo('url'); ?>/" method="get">
<input class="inlineSearch" type="text" name="s" value="busca" onblur="if (this.value == '') {this.value = 'busca';}" onfocus="if (this.value == 'busca') {this.value = '';}" />
<input type="hidden" name="post_type" value="portfolio" />
<!-- <input class="inlineSubmit" id="searchsubmit" type="submit" alt="Search" value="Buscar" /> -->
</form>
</div><!-- #busca-aba -->
</div><!-- .header-categories -->
<?php
/* $paged é a variável para paginação do Loop CPT Projetos */ $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
/* $args_loop_cpt_projetos são os argumentos para o Loop */
$args_loop_cpt_projetos = array(
'post_type' => 'portfolio',
'post_parent' => 0,
'orderby' => 'date',
'order' => 'DESC',
'posts_per_page' => '66',
'paged' => $paged
);
$loop_cpt_projetos = new WP_Query( $args_loop_cpt_projetos ); if ( $loop_cpt_projetos->have_posts() ) {
while ( $loop_cpt_projetos->have_posts() ) : $loop_cpt_projetos->the_post();
?>
<div class="cada-projeto">
<div class="thumb-cada-projeto">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumb-projetos'); ?></a>
</div><!-- .thumb-cada-projeto -->
<div class="rodape-cada-projeto">
<h3><a class="titulo-resumo" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<span class="data-cada-post"><?php the_time( 'Y' ); ?></span>
</div><!-- .rodape-cada-projeto -->
</div><!-- .cada-projeto -->
<?php
// Fim do Loop
endwhile;
}
?>
</div> <!-- .home-portfolio -->
</div>
<header id="masthead" class="site-header" role="banner">
<div id="logo">
<a class="a-logo" href="javascript:scroll_to('#page');"></a>
</div><!-- #logo -->
<div class="area-4-header">
<div id="link-login">
<a href="<?php echo get_home_url();?>/wp-admin/">
<div id="cadeado">
</div><!-- #cadeado -->
<spam class="link-tgl">
<?php echo __('[:en]Login Area[:pb]Acesso Restrito[:]');?>
</span>
</a>
</div><!-- #link-login -->
</div><!-- .area-4-header -->
<div class="area-3-header">
<div id="linguas">
<?php
if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('Widget no menu');
}
?>
</div><!-- #linguas -->
</div><!-- .area-3-header -->
<nav id="site-navigation" class="navigation-main" role="navigation">
<?php // wp_nav_menu( array( 'theme_location' => 'primary', 'items_wrap' => '<ul class="menu"><li class="first-menu-item"></li>%3$s</ul>' ) ); ?>
<ul class="menu">
<li class="first-menu-item menu-item menu-item-type-post_type menu-item-object-page menu-item-336" id="menu-item-336"><a href="javascript:scroll_to('#nav-quem-somos');"><?php echo __('[:en]About us[:pb]Quem somos[:]') ?></a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-30" id="menu-item-1327"><a href="<?php echo home_url('index.php/portfolio'); ?>"><?php echo __('[:en]Portfolio[:pb]Portfólio[:]'); ?></a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-28" id="menu-item-28"><a href="javascript:scroll_to('#nav-clientes-parceiros');"><?php echo __('[:en]Clients and partners[:pb]Clientes e Parceiros[:]'); ?></a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-30" id="menu-item-30"><a href="javascript:scroll_to('#nav-premios');"><?php echo __('[:en]Awards[:pb]Prêmios[:]'); ?></a></li>
<!-- <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-288" id="menu-item-288"><a href="javascript:scroll_to('#nav-noticias');"><?php // echo __('[:en]News[:pb]Notícias[:]'); ?></a></li> -->
<li class="last-menu-item menu-item menu-item-type-post_type menu-item-object-page menu-item-29" id="menu-item-29"><a href="javascript:scroll_to('#nav-contatos');"><?php echo __('[:en]Contact[:pb]Contatos[:]'); ?></a></li>
</ul>
</nav><!-- #site-navigation -->
<div class="botao-portfolio-menu">
<a class="etiqueta-barra-botao-portfolio-menu" href="<?php echo get_home_url('index.php/portfolio'); ?>">
</a>
</div>
</header><!-- #masthead -->
<?php do_action( 'before' ); ?>
<div id="main">