-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop.php
More file actions
37 lines (37 loc) · 1.32 KB
/
loop.php
File metadata and controls
37 lines (37 loc) · 1.32 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
<?php if (have_posts()) { ?>
<?php while (have_posts()) { ?>
<?php the_post(); ?>
<article class="post-item">
<aside class="date">
<div class="post-date">
<span class="month"><?php the_time('M'); ?></span>
<span class="day"><?php the_time('d'); ?></span>
</div>
<div class="post-comments">
<i class="icon-comment"> <?php comments_number( '0', '1', '%' ); ?></i><span>Comments</span>
</div>
</aside>
<div class="post-loop">
<div class="post-header"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
<?php if (has_post_thumbnail()) : ?>
<div class="post-thumb">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<div class="featured-image"><?php the_post_thumbnail('inner', array('class' => 'scale', 'alt' => get_the_title(), 'title' => get_the_title())); ?></div>
</a>
</div>
<?php endif; ?>
<div class="clear"></div>
<div class="post-snippet">
<?php the_excerpt(); ?>
</div>
</div>
</article>
<?php } ?>
<?php if (!is_home() && !is_front_page()) { ?>
<div class="navigation">
<div class="left"><?php previous_posts_link('< Newer Posts'); ?></div>
<div class="right"><?php next_posts_link('Older Posts >'); ?></div>
<div class="clear"></div>
</div>
<?php } ?>
<?php } ?>