Advertisement
Guest User

Untitled

a guest
Feb 5th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.87 KB | None | 0 0
  1. <?php if ( $wp_query->max_num_pages > 1 ) : ?>
  2.     <div id="nav-above" class="navigation">
  3.         <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
  4.         <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
  5.     </div><!-- #nav-above -->
  6. <?php endif; ?>
  7. <?php /* If there are no posts to display, such as an empty archive page */ ?>
  8. <?php if ( ! have_posts() ) : ?>
  9.     <div id="post-0" class="post error404 not-found">
  10.         <h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1>
  11.         <div class="entry-content">
  12.             <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyten' ); ?></p>
  13.             <?php get_search_form(); ?>
  14.         </div><!-- .entry-content -->
  15.     </div><!-- #post-0 -->
  16. <?php endif; ?>
  17. <?php while ( have_posts() ) : the_post(); ?>
  18.     <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  19.     <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  20.  
  21.     <div class="entry-meta">
  22.         <?php twentyten_posted_on(); ?>
  23.     </div><!-- .entry-meta -->
  24.     <div class="entry-summary">
  25.         <?php the_excerpt(); ?>
  26.     </div><!-- .entry-summary -->
  27.  
  28.         <div class="entry-utility">
  29. <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?>
  30. <a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
  31. <span class="meta-sep">|</span>
  32. <?php elseif ( $gallery = get_term_by( 'slug', _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ) && in_category( $gallery->term_id ) ) : ?>
  33. <a href="<?php echo get_category_link( $gallery ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
  34. <span class="meta-sep">|</span>
  35. <?php endif; ?>
  36. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
  37. <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
  38. </div><!-- .entry-utility -->
  39. </div><!-- #post-## -->
  40. <?php endwhile; // End the loop. Whew. ?>
  41.  
  42. <?php /* Display navigation to next/previous pages when applicable */ ?>
  43. <?php if ( $wp_query->max_num_pages > 1 ) : ?>
  44. <div id="nav-below" class="navigation">
  45. <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
  46. <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
  47. </div><!-- #nav-below -->
  48. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement