-
Notifications
You must be signed in to change notification settings - Fork 6
/
loop-latest.php
31 lines (31 loc) · 1.1 KB
/
loop-latest.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
<ul class="list-posts">
<?php while(have_posts()) : the_post(); ?>
<li id="post-<?php the_ID(); ?>" <?php post_class('post-item four columns'); ?>>
<article>
<header class="post-header">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p class="meta clearfix">
<span class="date">
<span class="icon-calendar"></span>
<span class="date-content"><?php echo get_the_date(_x('m/d/Y', 'reduced date format', 'opendev')); ?></span>
</span>
</p>
</header>
<section class="post-content">
<?php the_excerpt(); ?>
</section>
<footer class="post-actions">
<div class="buttons">
<a class="button" href="<?php the_permalink(); ?>"><?php _e('Read more', 'opendev'); ?></a>
<?php if(jeo_has_marker_location()) : ?>
<a class="button" href="<?php echo jeo_get_share_url(array('p' => $post->ID)); ?>"><?php _e('Share', 'opendev'); ?></a>
<?php endif; ?>
</div>
</footer>
</article>
</li>
<?php endwhile; ?>
</ul>
<div class="twelve columns">
<?php if(function_exists('wp_paginate')) wp_paginate(); ?>
</div>