SHARE
TWEET

Untitled

a guest Jul 25th, 2012 180 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2. <div id="content">
  3.         <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  4.         <div id="nav-above" class="navigation">
  5.                 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> older articles', 'clean' )) ?></div>
  6.                 <div class="nav-next"><?php previous_posts_link(__( 'newer articles <span class="meta-nav">&raquo;</span>', 'clean' )) ?></div>
  7.         </div>
  8.         <?php } ?>
  9.         <?php
  10.         global $wp_query;
  11.         $wp_query_args = array_merge( $wp_query->query, array( 'orderby' => 'menu_order' ) );
  12.         query_posts( $wp_query_args );
  13.         ?>
  14.         <?php while ( have_posts() ) : the_post() ?>
  15.         <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  16.                 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'clean'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  17.                 <div class="entry-meta">
  18.                         <span class="meta-prep meta-prep-author"><?php _e('By ', 'clean'); ?></span>
  19.                         <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="<?php printf( __( 'View all articles by %s', 'clean' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
  20.                         <span class="meta-sep"> | </span>
  21.                         <span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'clean'); ?></span>
  22.                         <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span>
  23.                         <?php edit_post_link( __( 'Edit', 'clean' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
  24.                 </div>
  25.                 <div class="entry-content">
  26.                         <?php
  27.                         if ( has_post_thumbnail() ) {
  28.                                 the_post_thumbnail();
  29.                         }
  30.                         ?>
  31.                         <?php the_content( __( 'continue reading <span class="meta-nav">&raquo;</span>', 'clean' )  ); ?>
  32.                         <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'clean' ) . '&after=</div>') ?>
  33.                 </div>
  34.                 <div class="entry-utility">
  35.                         <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'clean' ); ?></span><?php echo get_the_category_list(', '); ?></span>
  36.                         <span class="meta-sep"> | </span>
  37.                         <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'clean' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\"> | </span>\n" ) ?>
  38.                         <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'clean' ), __( '1 Comment', 'clean' ), __( '% Comments', 'clean' ) ) ?></span>
  39.                         <?php edit_post_link( __( 'Edit', 'clean' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?>
  40.                 </div>
  41.         </div>
  42.         <?php comments_template(); ?>
  43. <?php endwhile; wp_reset_query(); ?>
  44. <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  45. <div id="nav-below" class="navigation">
  46.         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> older articles', 'clean' )) ?></div>
  47.         <div class="nav-next"><?php previous_posts_link(__( 'newer articles <span class="meta-nav">&raquo;</span>', 'clean' )) ?></div>
  48. </div>
  49. <?php } ?>
  50. </div>
  51. <?php get_sidebar(); ?>
  52. <?php get_footer(); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top