-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop.php
More file actions
69 lines (61 loc) · 2.96 KB
/
loop.php
File metadata and controls
69 lines (61 loc) · 2.96 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
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<!-- article -->
<article id="post-<?php the_ID(); ?>" class="article-content">
<div class="text-holder">
<!-- post thumbnail -->
<?php if (!(is_page() || is_single()) && has_post_thumbnail()) : // Check if thumbnail exists ?>
<div class="post-thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="post-thumbnail-link">
<img src="<?php echo get_the_post_thumbnail_url($post_id); ?>" alt="<?php the_title(); ?>" />
</a>
</div>
<?php endif; ?>
<!-- ./post thumbnail -->
<div class="post-header">
<?php if (!is_page()) { ?>
<div class="post-meta">
<span class="posted-calendar">
<a href="#"><i class="fa fa-calendar"></i></a> <a href="#"><time class="post-date"><?php the_time(get_option('date_format')); ?></time></a>
</span>
<span class="article-categories">
<a href="#"><i class="fa fa-archive"></i></a> <?php the_category(', '); ?>
</span>
<span class="article-tags">
<?php the_tags(' <a href="#"><i class="fa fa-tag"></i></a> ', ', '); ?>
</span>
<!--span class="comments-link">
<?php if (comments_open( get_the_ID() ) ): ?><a href="#"><i class="fa fa-comment"></i></a> <?php comments_popup_link( __( 'Lascia un commento', 'templated_spatial' ), __( 'Un commento', 'templated_spatial' ), __( '% commenti', 'templated_spatial' )); endif; ?>
</span-->
</div>
<!-- ./post-meta -->
<?php } ?>
<h2 class="post-title"><?php the_title(); ?></h2>
</div>
<!-- ./post-header -->
<div class="post-content">
<?php if (is_archive()) { the_excerpt(); } else { the_content(); } ?>
</div>
<!-- ./post-content -->
<footer class="post-footer">
<?php if (is_archive()) { ?>
<p class="read-more">
<a href="<?php the_permalink() ?>"><?php _e( 'Continua a leggere', 'templated_spatial' ); ?> »</a>
</p>
<?php }
edit_post_link(__( 'Modifica', 'templated_spatial' ), '<span class="edit-link">', '</span>', null, 'post-edit-link' );
?>
</footer>
<!-- ./post-footer -->
<div class="clearfix"></div>
</div>
<!-- ./text-holder -->
</article>
<!-- /article -->
<?php endwhile; ?>
<?php else: ?>
<!-- article -->
<article>
<h2><?php _e( 'Nessun articolo inserito.', 'templated_spatial' ); ?></h2>
</article>
<!-- /article -->
<?php endif; ?>