-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-portfolio.php
87 lines (72 loc) · 2.95 KB
/
archive-portfolio.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
<?php get_header( 'portfolio' ); ?>
<div id="content-interno" class="site-content" role="main">
<div class="archive-portfolio">
<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> -->
<!-- <div class="area-4-header">
<div id="link-login">
<a href="<?php // echo get_home_url( );?>/wp-admin/">
<div id="cadeado">
</div>
<span class="link-tgl">
<?php // echo __('[:en]Login Area[:pb]Acesso Restrito[:]');?>
</span>
</a>
</div>
</div> -->
<div class="area-3-header portfolio">
<div id="linguas">
<?php
if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('Widget no menu');
}
?>
</div><!-- #linguas -->
</div><!-- .area-3-header -->
</div><!-- .header-portfolio -->
<?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',
'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(); ?><br />
<?php
// Pega os dados e salva em variáveis
$metaportfolio_2alinhatitulo = get_post_meta($post->ID,'metaportfolio_2alinhatitulo',TRUE);
?>
<?php if (empty($metaportfolio_2alinhatitulo)) {
} else { ?>
<?php echo $metaportfolio_2alinhatitulo; ?>
<?php } ?>
</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> <!-- .archive-portfolio -->
</div><!-- #content -->
<?php get_footer( 'portfolio' ); ?>