1. <?php global $wallow_options; ?>
  2.  
  3. <?php get_header(); ?>
  4.  
  5. <div id="content">
  6.  
  7. <?php // search reminder
  8. if ( is_category() ) :
  9. echo '<div class="wp-caption aligncenter"><p class="wp-caption-text">' . __( 'Category', 'wallow' ) . ':<strong> '; wp_title( '', true, 'right' ); echo ' </strong></p></div>';
  10. elseif (is_tag()) :
  11. echo '<div class="wp-caption aligncenter"><p class="wp-caption-text">' . __( 'Tag', 'wallow' ) . ':<strong> '; wp_title( '', true, 'right' ); echo ' </strong></p></div>';
  12. elseif (is_search()) :
  13. printf('<div class="wp-caption aligncenter"><p class="wp-caption-text">' . __( 'Search results for &#8220;%s&#8221;', 'wallow' ) . '</p></div>', '<strong>' . esc_html( get_search_query() ) . '</strong>' );
  14. elseif (is_date()) :
  15. echo '<div class="wp-caption aligncenter"><p class="wp-caption-text">' . __( 'Archives', 'wallow' ) . ':<strong> '; wp_title( '', true, 'right' ); echo ' </strong></p></div>';
  16. endif;
  17. ?>
  18.  
  19. <?php if ( have_posts() ) {
  20. while ( have_posts() ) : the_post(); ?>
  21.  
  22. <?php if ( !is_page() ) { printf( '<h2 class="posts_date">%1$s</h2>', get_the_date() ); } ?>
  23.  
  24. <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  25. <?php if ( $wallow_options['wallow_pthumb'] ) the_post_thumbnail( array( $wallow_options['wallow_pthumb_size'], $wallow_options['wallow_pthumb_size'] ), array( 'class' => 'alignleft' ) ); ?>
  26. <h3 class="storytitle">
  27. <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
  28. </h3>
  29. <div class="meta">
  30. <?php _e( 'by', 'wallow' ); ?> <?php the_author() ?> &#8212; <?php _e( 'Categories', 'wallow' ); ?>: <?php the_category( ', ' ) ?> &#8212; <?php the_tags( __( 'Tags: ', 'wallow' ), ', ', ' &#8212; '); ?> <?php comments_popup_link( __( 'Leave a comment', 'wallow'), __( '1 Comment', 'wallow' ), __( '% Comments', 'wallow' )); // number of comments?> <?php edit_post_link( __( 'Edit', 'wallow' ), ' &#8212; ' ); ?>
  31. </div>
  32. <div class="storycontent">
  33. <?php
  34. switch ( $wallow_options['wallow_postexcerpt'] ) {
  35. case 0: //the content
  36. the_content();
  37. break;
  38. case 1: //the excerpt
  39. the_excerpt();
  40. break;
  41. }
  42. ?>
  43. </div>
  44. <div>
  45. <?php wp_link_pages( 'before=<div class="meta comment_tools">' . __( 'Pages', 'wallow' ) . ':&after=</div>' ); ?>
  46. </div>
  47. <div class="fixfloat"> </div>
  48. </div>
  49.  
  50. <?php endwhile;
  51. } else {
  52. ?><p><?php _e( 'Sorry, no posts matched your criteria.', 'wallow' );?></p><?php
  53. } ?>
  54.  
  55. <div id="nav_pages">
  56. <?php if ( function_exists( 'wp_pagenavi' ) ) { ?>
  57. <?php wp_pagenavi(); ?>
  58. <?php } else { ?>
  59. <?php posts_nav_link( ' &#8212; ', '&laquo; ' . __( 'Newer Posts', 'wallow' ), __( 'Older Posts', 'wallow' ) . ' &raquo;'); ?>
  60. <?php } ?>
  61. </div>
  62.  
  63. </div>
  64.  
  65. <?php get_footer(); ?>