Guest User

scrapbook single.php

a guest
Oct 29th, 2010
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Ten
  7. * @since Twenty Ten 1.0
  8. */
  9.  
  10. get_header(); ?>
  11.  
  12.  
  13. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  14.  
  15. <div id="nav-above" class="navigation">
  16. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
  17. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
  18. </div><!-- #nav-above -->
  19.  
  20. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  21. <h1 class="entry-title"><?php the_title(); ?></h1>
  22.  
  23. <div class="entry-meta">
  24. <?php twentyten_posted_on(); ?>
  25. </div><!-- .entry-meta -->
  26.  
  27. <div class="entry-content">
  28. <?php the_content(); ?>
  29. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  30. </div><!-- .entry-content -->
  31.  
  32. <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
  33. <div id="entry-author-info">
  34. <div id="author-avatar">
  35. <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
  36. </div><!-- #author-avatar -->
  37. <div id="author-description">
  38. <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
  39. <?php the_author_meta( 'description' ); ?>
  40. <div id="author-link">
  41. <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
  42. <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyten' ), get_the_author() ); ?>
  43. </a>
  44. </div><!-- #author-link -->
  45. </div><!-- #author-description -->
  46. </div><!-- #entry-author-info -->
  47. <?php endif; ?>
  48.  
  49. <div class="entry-utility">
  50. <?php twentyten_posted_in(); ?>
  51. <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
  52. </div><!-- .entry-utility -->
  53. </div><!-- #post-## -->
  54.  
  55. <div id="nav-below" class="navigation">
  56. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
  57. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
  58. </div><!-- #nav-below -->
  59.  
  60. <?php comments_template( '', true ); ?>
  61.  
  62. <?php endwhile; // end of the loop. ?>
  63.  
  64. </div><!-- #content -->
  65. </div><!-- #container -->
  66.  
  67. <?php get_sidebar(); ?>
  68. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment