<?php global $wallow_options; ?>
<?php get_header(); ?>
<div id="content">
<?php // search reminder
if ( is_category() ) :
echo '<div class="wp-caption aligncenter"><p class="wp-caption-text">' . __( 'Category', 'wallow' ) . ':<strong> '; wp_title( '', true, 'right' ); echo ' </strong></p></div>';
elseif (is_tag()) :
echo '<div class="wp-caption aligncenter"><p class="wp-caption-text">' . __( 'Tag', 'wallow' ) . ':<strong> '; wp_title( '', true, 'right' ); echo ' </strong></p></div>';
elseif (is_search()) :
printf('<div class="wp-caption aligncenter"><p class="wp-caption-text">' . __( 'Search results for “%s”', 'wallow' ) . '</p></div>', '<strong>' . esc_html( get_search_query() ) . '</strong>' );
elseif (is_date()) :
echo '<div class="wp-caption aligncenter"><p class="wp-caption-text">' . __( 'Archives', 'wallow' ) . ':<strong> '; wp_title( '', true, 'right' ); echo ' </strong></p></div>';
endif;
?>
<?php if ( have_posts() ) {
while ( have_posts() ) : the_post(); ?>
<?php if ( !is_page() ) { printf( '<h2 class="posts_date">%1$s</h2>', get_the_date() ); } ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php if ( $wallow_options['wallow_pthumb'] ) the_post_thumbnail( array( $wallow_options['wallow_pthumb_size'], $wallow_options['wallow_pthumb_size'] ), array( 'class' => 'alignleft' ) ); ?>
<h3 class="storytitle">
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
</h3>
<div class="meta">
<?php _e( 'by', 'wallow' ); ?> <?php the_author() ?> — <?php _e( 'Categories', 'wallow' ); ?>: <?php the_category( ', ' ) ?> — <?php the_tags( __( 'Tags: ', 'wallow' ), ', ', ' — '); ?> <?php comments_popup_link( __( 'Leave a comment', 'wallow'), __( '1 Comment', 'wallow' ), __( '% Comments', 'wallow' )); // number of comments?> <?php edit_post_link( __( 'Edit', 'wallow' ), ' — ' ); ?>
</div>
<div class="storycontent">
<?php
switch ( $wallow_options['wallow_postexcerpt'] ) {
case 0: //the content
the_content();
break;
case 1: //the excerpt
the_excerpt();
break;
}
?>
</div>
<div>
<?php wp_link_pages( 'before=<div class="meta comment_tools">' . __( 'Pages', 'wallow' ) . ':&after=</div>' ); ?>
</div>
<div class="fixfloat"> </div>
</div>
<?php endwhile;
} else {
?><p><?php _e( 'Sorry, no posts matched your criteria.', 'wallow' );?></p><?php
} ?>
<div id="nav_pages">
<?php if ( function_exists( 'wp_pagenavi' ) ) { ?>
<?php wp_pagenavi(); ?>
<?php } else { ?>
<?php posts_nav_link( ' — ', '« ' . __( 'Newer Posts', 'wallow' ), __( 'Older Posts', 'wallow' ) . ' »'); ?>
<?php } ?>
</div>
</div>
<?php get_footer(); ?>