Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 36 lines (34 sloc) 1.384 kb
3289973 @milohuang 1.0.0
authored
1 <?php /* If there are no posts to display, such as an empty archive page */ ?>
2 <?php if (!have_posts()) : ?>
3 <div class="notice">
4 <p class="bottom"><?php _e('Sorry, no results were found.', 'reverie'); ?></p>
5 </div>
6 <?php get_search_form(); ?>
7 <?php endif; ?>
8
9 <?php /* Start loop */ ?>
10 <?php while (have_posts()) : the_post(); ?>
11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
12 <header>
13 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
14 <?php reverie_entry_meta(); ?>
15 </header>
16 <div class="entry-content">
17 <?php if (is_archive() || is_search()) : // Only display excerpts for archives and search ?>
18 <?php the_excerpt(); ?>
19 <?php else : ?>
20 <?php the_content('Continue reading...'); ?>
21 <?php endif; ?>
22 </div>
23 <footer>
24 <?php $tag = get_the_tags(); if (!$tag) { } else { ?><p><?php the_tags(); ?></p><?php } ?>
25 </footer>
26 <div class="divider"></div>
27 </article>
28 <?php endwhile; // End the loop ?>
29
30 <?php /* Display navigation to next/previous pages when applicable */ ?>
160b4d0 Reverie Framework 3.0
Zhen Huang authored
31 <?php if ( function_exists('reverie_pagination') ) { reverie_pagination(); } else if ( is_paged() ) { ?>
32 <nav id="post-nav">
33 <div class="post-previous"><?php next_posts_link( __( '&larr; Older posts', 'reverie' ) ); ?></div>
34 <div class="post-next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'reverie' ) ); ?></div>
35 </nav>
36 <?php } ?>
Something went wrong with that request. Please try again.