Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (33 sloc) 1.325 kb
8e17723 @retlehs roots 3.0.0
retlehs authored
1 <?php /* If there are no posts to display, such as an empty archive page */ ?>
2 <?php if (!have_posts()) : ?>
39b0eb1 @swalkinshaw Whitespace fixes
swalkinshaw authored
3 <div class="notice">
4 <p class="bottom"><?php _e('Sorry, no results were found.', 'roots'); ?></p>
5 </div>
6 <?php get_search_form(); ?>
8e17723 @retlehs roots 3.0.0
retlehs authored
7 <?php endif; ?>
8
9 <?php /* Start loop */ ?>
119c207 @retlehs progress on #24 to add i18n and wpml support
retlehs authored
10 <?php while (have_posts()) : the_post(); ?>
39b0eb1 @swalkinshaw Whitespace fixes
swalkinshaw authored
11 <?php roots_post_before(); ?>
12 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
13 <?php roots_post_inside_before(); ?>
14 <header>
15 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
16 <?php roots_entry_meta(); ?>
17 </header>
18 <div class="entry-content">
19 <?php the_excerpt(); ?>
20 </div>
21 <footer>
22 <?php $tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php } ?>
23 </footer>
24 <?php roots_post_inside_after(); ?>
25 </article>
26 <?php roots_post_after(); ?>
8e17723 @retlehs roots 3.0.0
retlehs authored
27 <?php endwhile; // End the loop ?>
28
29 <?php /* Display navigation to next/previous pages when applicable */ ?>
30 <?php if ($wp_query->max_num_pages > 1) : ?>
39b0eb1 @swalkinshaw Whitespace fixes
swalkinshaw authored
31 <nav id="post-nav">
32 <div class="post-previous"><?php next_posts_link( __( '&larr; Older posts', 'roots' ) ); ?></div>
33 <div class="post-next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'roots' ) ); ?></div>
34 </nav>
35 <?php endif; ?>
Something went wrong with that request. Please try again.