/
archive.php
131 lines (94 loc) · 3.79 KB
/
archive.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
<?php
/*Template Name: Blog*/
get_header();
?>
<section id="archive-offlimits" class="small-12 columns pl0">
<h1 class="p3 black_bg">Blog</h1>
<?php
$prefiesta = get_term_by('name','Prefiesta','category');
$args = array( 'category__not_in' => $prefiesta -> term_id, 'number_of_posts' => -1 );
$q = new WP_Query( $args );
if( $q -> have_posts() ) :
while( $q -> have_posts() ) :
$q -> the_post();
?>
<article class="small-12 medium-6 columns p0 h_55vh h_sm_80vh p4 black_hover_bg acento_hover_bd">
<a href="<?php echo get_the_permalink(get_the_ID()); ?>" class="white ">
<div class="small-12 columns pt0 text-right fontXS p0">
<div class="small-3 small-offset-9 columns black_bg p1 fontXS">
<?php echo get_the_date('d\.m\.Y', get_the_ID() ); ?>
</div>
</div>
<div id="archive-offlimits-thumb" class="small-12 columns imgLiquidFill imgLiquid h_20vh w_100 mb2" >
<?php echo get_the_post_thumbnail(get_the_ID(),'thumb'); ?>
</div>
<div id="archive-offlimits-titulo-fecha" class="small-12 columns p0 mb1">
<div class="small-9 columns p0 text-left fontL">
<?php echo apply_filters( 'the_title', get_the_title()); ?>
</div>
</div>
<div class="small-12 columns p0">
<div id="archive-offlimits-contenido" class="small-9 columns fontRM text-left p0">
<?php echo apply_filters( 'the_excerpt', wp_trim_words(get_the_excerpt(),17)); ?>
</div>
<div id="archive-offlimits-contenido" class="small-3 columns fontRM text-right p0 ">
<span class="pr1">Ver más</span><i class="fa fa-plus"></i>
</div>
</div>
</a>
</article>
<?php
endwhile;
endif;
// prefiesta
?>
<section id="blog-prefiesta" class="small-12 columns p0 mt2">
<div class="small-12 columns mr1 mb2">
<div class="h_15vh m0 p3 black_bg w_a f_l">
<div class="vcenter">
<h1 class="m0 p0">
Prefiesta
</h1>
</div>
</div>
<div class="h_15vh m0 p3 black_bg w_a f_l ml1 mb2">
<div class="vcenter">
<h4 class="m0 pt1">
15 de abril, 2016
</h4>
</div>
</div>
</div>
<?php
$args = array( 'category__in' => $prefiesta -> term_id, 'number_of_posts' => -1 );
$q = new WP_Query( $args );
if( $q -> have_posts() ) :
while( $q -> have_posts() ) :
$q -> the_post();
?>
<article class="small-12 medium-6 large-4 columns p0 h_50vh h_sm_80vh p4 black_hover_bg acento_hover_bd">
<a href="<?php echo get_the_permalink(get_the_ID()); ?>" class="white">
<div class="small-12 columns pt0 text-right p0">
<div class="small-3 small-offset-9 columns black_bg p1 fontXS">
<?php echo get_the_date('d\.m\.Y', get_the_ID() ); ?>
</div>
</div>
<div id="archive-offlimits-thumb" class="small-12 columns imgLiquidFill imgLiquid h_25vh mb2" >
<?php echo get_the_post_thumbnail(get_the_ID(),'thumb'); ?>
</div>
<div id="archive-offlimits-titulo-fecha" class="small-12 columns p0 mb1">
<div class="small-12 columns text-center fontL">
<?php echo apply_filters( 'the_title', get_the_title()); ?>
</div>
</div>
</a>
</article>
<?php
endwhile;
endif;
?>
</section>
</section>
<?php
get_footer();
?>