Advertisement
Guest User

Untitled

a guest
Dec 17th, 2010
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.16 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <?php
  6.  
  7. /* Title for all views.. */
  8. do_action( 'mfields_title', '<h1 id="title">', '</h1>' );
  9.  
  10. /* Description */
  11. do_action( 'mfields_description' );
  12.  
  13. /* If there are no posts to display, such as an empty archive page */
  14. if ( !have_posts() && !is_search() ) {
  15.     print '<div class="hentry">Sorry, no posts were found</div>';
  16. }
  17.  
  18. /* Loop over posts. */
  19. while ( have_posts() ) {
  20.     the_post();
  21.     get_template_part( 'post', 'switchboard' );
  22. }
  23.  
  24. comments_template( '', true );
  25.  
  26. #do_action( 'mfields_ajax_append_posts_button', '%s more posts.' );
  27.  
  28. if ( ! is_single() && ! is_page() ) {
  29.     print '<div id="more-posts" class="post-footer">' . "\n";
  30.     if ( $wp_query->max_num_pages > 1 ) {
  31.         print '<div class="older-posts">'; next_posts_link( __( '<span>&laquo;</span> Older Posts', 'mfields' ) ); print '</div>';
  32.         print '<div class="newer-posts">'; previous_posts_link( __( 'Newer Posts <span>&raquo;</span>', 'mfields' ) ); print '</div>';
  33.         print '<div class="clear"></div>';
  34.     }
  35.     else {
  36.         print '&nbsp;<!-- You know you love it! -->';
  37.     }
  38.     print '</div>' . "\n";
  39. }
  40. ?>
  41.  
  42. </div><!-- content -->
  43.  
  44. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement