-
Notifications
You must be signed in to change notification settings - Fork 7
/
loop-maps.php
23 lines (23 loc) · 1.01 KB
/
loop-maps.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<ul class="list-maps">
<?php while(have_posts()) : the_post(); ?>
<li id="post-<?php the_ID(); ?>" <?php post_class('post-item six columns'); ?>>
<article class="clearfix">
<?php if(has_post_thumbnail()) {
echo '<a href="' . get_permalink() .'" title="' . get_the_title() . '">' . get_the_post_thumbnail($post->ID, 'map-thumb') . '</a>';
} elseif(function_exists('jeo_get_mapbox_image')) {
echo '<a href="' . get_permalink() .'" title="' . get_the_title() . '"><img src="' . jeo_get_mapbox_image($post->ID) . '" class="wp-post-image" /></a>';
} ?>
<header class="post-header">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</header>
<section>
<?php the_excerpt(); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="button"><?php _e('View this map', 'ekuatorial'); ?></a>
</section>
</article>
</li>
<?php endwhile; ?>
</ul>
<div class="twelve columns">
<?php if(function_exists('wp_paginate')) wp_paginate(); ?>
</div>