Advertisement
Guest User

single.php

a guest
Aug 29th, 2011
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Modularity
  5. */
  6. ?>
  7. <?php get_header(); ?>
  8. <div class="span-<?php modularity_sidebar_class(); ?>">
  9. <div class="content">
  10.  
  11. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  12.  
  13. <h2><?php the_title(); ?></h2>
  14. <?php the_content( __( 'Read the rest of this page &raquo;', 'modularity' ) ); ?>
  15. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'modularity' ), 'after' => '</div>' ) ); ?>
  16. </div>
  17. <div class="clear"></div>
  18.  
  19.  
  20. <p class="postmetadata alt">
  21. <small>
  22. <?php
  23. $tag_list = get_the_tag_list( ' and was tagged with ', ', ' );
  24. printf( __( 'This entry was posted on %1$s. It was filed under %2$s%3$s.', 'modularity' ),
  25. get_the_time( get_option( 'date_format' ) ),
  26. get_the_category_list( ', ' ),
  27. $tag_list
  28. );
  29. ?>
  30. <?php edit_post_link( __( 'Edit this entry', 'modularity' ), '', '.' ); ?>
  31. </small>
  32. </p>
  33.  
  34.  
  35. <div class="nav next right"><?php next_post_link('%link', _x( '&rarr;', 'Next post link', 'modularity' ) ); ?></div>
  36. <div class="nav prev left">
  37.  
  38.  
  39.  
  40. </div>
  41. <div class="clear"></div>
  42.  
  43. <?php endwhile; else : ?>
  44.  
  45. <h2 class="center"><?php _e( 'Not Found', 'modularity' ); ?></h2>
  46. <p class="center"><?php _e( 'Sorry, but you are looking for something that isn&rsquo;t here.', 'modularity' ); ?></p>
  47. <?php get_search_form(); ?>
  48.  
  49. <?php endif; ?>
  50. <?php comments_template(); ?>
  51. </div>
  52. </div>
  53.  
  54. <?php get_sidebar(); ?>
  55. <!-- Begin Footer -->
  56. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement