forked from InfoAmazonia/infoamazonia-wptheme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
loop-maps.php
22 lines (22 loc) · 910 Bytes
/
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
<ul class="list-maps clearfix">
<?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(); ?>
</section>
</article>
</li>
<?php endwhile; ?>
</ul>
<div class="twelve columns">
<?php if(function_exists('wp_paginate')) wp_paginate(); ?>
</div>