Advertisement
Guest User

code

a guest
Jun 29th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.85 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.                 <div id="container">
  4.  
  5.                         <div id="content">
  6.  
  7. <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  8.                                 <div id="nav-above" class="navigation">
  9.                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">«</span> Older posts', 'your-theme' )) ?></div>
  10.                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">»</span>', 'your-theme' )) ?></div>
  11.                                 </div><!-- #nav-above -->
  12. <?php } ?>                      
  13.  
  14. <?php /* The Loop — with comments! */ ?>
  15. <?php while ( have_posts() ) : the_post() ?>
  16.  
  17. <?php /* Create a div with a unique ID thanks to the_ID() and semantic classes with post_class() */ ?>
  18.                                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  19. <?php /* an h2 title */ ?>
  20.                                         <h2 class="entry-title"><a>" title="<?php printf( __('Permalink to %s', 'your-theme'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  21.  
  22. <?php /* Microformatted, translatable post meta */ ?>
  23.                                         <div class="entry-meta">
  24.                                                 <span class="meta-prep meta-prep-author"><?php _e('By ', 'your-theme'); ?></span>
  25.                                                 <span class="author vcard"><a>ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'your-theme' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
  26.                                                 <span class="meta-sep"> | </span>
  27.                                                 <span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'your-theme'); ?></span>
  28.                                                 <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>
  29.                                                 <?php edit_post_link( __( 'Edit', 'your-theme' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
  30.                                         </div><!-- .entry-meta -->
  31.  
  32. <?php /* The entry content */ ?>
  33.                                         <div class="entry-content">
  34. <?php the_content( __( 'Continue reading <span class="meta-nav">»</span>', 'your-theme' )  ); ?>
  35. <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'your-theme' ) . '&after=</div>') ?>
  36.                                         </div><!-- .entry-content -->
  37.  
  38. <?php /* Microformatted category and tag links along with a comments link */ ?>
  39.                                         <div class="entry-utility">
  40.                                                 <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'your-theme' ); ?></span><?php echo get_the_category_list(', '); ?></span>
  41.                                                 <span class="meta-sep"> | </span>
  42.                                                 <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'your-theme' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\">|</span>\n" ) ?>
  43.                                                 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'your-theme' ), __( '1 Comment', 'your-theme' ), __( '% Comments', 'your-theme' ) ) ?></span>
  44.                                                 <?php edit_post_link( __( 'Edit', 'your-theme' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?>
  45.                                         </div><!-- #entry-utility -->
  46.                                 </div><!-- #post-<?php the_ID(); ?> -->
  47.  
  48. <?php /* Close up the post div */ ?>                    
  49.  
  50. <?php endwhile; ?>              
  51.  
  52. <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  53.                                 <div id="nav-below" class="navigation">
  54.                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">«</span> Older posts', 'your-theme' )) ?></div>
  55.                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">»</span>', 'your-theme' )) ?></div>
  56.                                 </div><!-- #nav-below -->
  57. <?php } ?>                      
  58.  
  59.                         </div><!-- #content -->
  60.                 </div><!-- #container -->
  61.  
  62. <?php get_sidebar(); ?>
  63. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement