-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproyectos-roockies.php
More file actions
102 lines (66 loc) · 1.83 KB
/
proyectos-roockies.php
File metadata and controls
102 lines (66 loc) · 1.83 KB
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
<?php
/*
Template Name: Proyectos Rookies
*/
get_header();
?>
<section id="content" class="content columns small-12 large-9">
<div class="columns p-t-1 p-0">
<!-- -->
<div class="bread columns p-0-3 h-10">
<?php
get_template_part('secciones/general/breadcrumbs');
?>
</div>
<!-- -->
<?php
if ( have_posts() ):
while ( have_posts() ): the_post();
?>
<h3 class="columns text-left">
<?php echo get_the_title(); ?>
</h3>
<div class="columns font-s font-md-m">
<?php echo get_the_content(); ?>
</div>
<?php
endwhile;
endif;
?>
<div class="columns p-l-0 p-r-0 p-t-2 p-b-2 h-a">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = cpt('proyectos-roockies', $paged);
$q = new WP_Query( $args );
if ( $q->have_posts()):
while ( $q->have_posts()): $q->the_post();
?>
<div class="columns p-t-1 p-b-1 small-12 medium-6 h-a end">
<a class="columns p-0 h-a card p-0-3" href="<?php echo get_the_permalink();?>">
<div class="columns p-0 imgLiquid imgLiquidFill h-45-v h-md-40-v">
<?php echo get_the_post_thumbnail(); ?>
</div>
<div class="columns p-t-1 p-l-0 p-r-0 h-50">
<h5 class="columns p-0 h-a font-light">
<?php
echo get_post_meta(get_the_ID(),"nombre-proyecto",true);
?>
</h5>
<div class="columns p-0 p-t-1 h-a font-s font-sm-m font-md-s">
<?php
echo "Click para conocer el proyecto ...";
?>
</div>
</div>
</a>
</div>
<?php
endwhile;
get_template_part("secciones/general/paginacion-cpt");
endif;
?>
</div>
</div>
</section>
<?php
get_footer();