Advertisement
Guest User

Untitled

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