-
Notifications
You must be signed in to change notification settings - Fork 1
/
archive-talklab.php
85 lines (76 loc) · 2.59 KB
/
archive-talklab.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
<?php get_header(); ?>
<section id="corpo" class="col-md-9 talklab">
<?php
$args = array (
'post_type' => 'talklab',
'posts_per_page' => '1',
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post();
?>
<article>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="veespoCard">
<veespo-card
target="appsterdam-milan.talk-lab.tl-<?php echo(get_the_ID()); ?>"
title="<?php the_title(); ?>"
description="<?php echo(get_the_excerpt()); ?>"
image="<?php echo( wp_get_attachment_url( get_post_thumbnail_id($post->ID, 'thumbnail') )); ?>"
url="<?php the_permalink(); ?>"
background="#C30101"
color="#ffffff"
></veespo-card>
</div>
<?php the_content(); ?>
<a href="<?php the_permalink(); ?>#disqus_thread" class="btn btn-default btn-block">
Discussione
<span class="fa fa-comment"></span>
</a>
</article>
<?php endwhile; else: ?>
<article>
<h2>Ops...</h2>
<p>Qui non ci sono i droidi che state cercando!</p>
</article>
<?php
endif;
wp_reset_postdata();
?>
<?php
$args = array (
'post_type' => 'talklab',
'posts_per_page' => '5',
'offset' => '1',
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<article>
<p class="metadata">
<small><span class="fa fa-calendar"></span> Scritto il <?php the_time('d F Y'); ?></small>
<small class="pull-right"><span class="fa fa-comments"> <?php comments_number('0','1','%'); ?></span></small>
</p>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<a href="<?php the_permalink(); ?>" class="btn btn-default">
Slide e giudizi
<span class="fa fa-chevron-right"></span>
</a>
</article>
<?php endwhile; else: ?>
<article>
<h2>Ops...</h2>
<p>Qui non ci sono i droidi che state cercando!</p>
</article>
<?php
endif;
wp_reset_postdata();
?>
<section class="paginate">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
Pagina <?php echo($page); ?> di <?php echo($wp_query->max_num_pages); ?>
</section>
</section>
<?php
add_action('wp_footer','veespoCardCode');
get_footer();
?>