Advertisement
landlubber

sliding-door single.php

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