Advertisement
Guest User

Single.php

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