-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
66 lines (63 loc) · 2.32 KB
/
index.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
<?php get_header(); ?>
<section id="corpo" class="col-md-9">
<article class="nextMeetup">
<p class="banner">
<span class="fa fa-calendar"></span>
Prossimo Meetup: <strong></strong>
</p>
<span class="fa fa-refresh fa-spin"></span>
<div class="row">
<section class="col-sm-12 col-md-6">
<div class="content"></div>
<p><a class="link" href="" target="_blank">[...]</a></p>
</section>
<div class="col-sm-2 people">
<span class="fa fa-users"></span>
<p>Saremo in</p>
<p><strong>0</strong></p>
</div>
<div class="col-sm-2 location">
<span class="fa fa-map-marker"></span>
<p>Dove</p>
<p><strong>Booooh</strong></p>
</div>
<div class="col-sm-2 event">
<a href="" target="_blank">
<span class="fa fa-external-link"></span>
<p>Informazioni<br> e RSVP su <br><strong>Meetup</strong>!</p>
</a>
</div>
</div>
</article>
<?php if ( have_posts() ) : while ( have_posts() ) : 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 if ( has_post_thumbnail() ) { ?>
<figure>
<?php the_post_thumbnail(array(850,250)); ?>
</figure>
<?php } ?>
<?php the_excerpt(); ?>
<a href="<?php the_permalink(); ?>" class="btn btn-default">
Leggi tutto
<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; ?>
<section class="paginate">
<?php posts_nav_link(' ',' ','<span class="prevNext pull-left"><span class="fa fa-chevron-left"></span> Prev</span>'); ?>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
Pagina <?php echo($page); ?> di <?php echo($wp_query->max_num_pages); ?>
<?php posts_nav_link(' ','<span class="prevNext pull-right">Next <span class="fa fa-chevron-right"></span></span>',' '); ?>
</section>
</section>
<?php get_footer(); ?>