Advertisement
Guest User

Untitled

a guest
Mar 1st, 2013
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying content in the single.php template
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Eleven
  7. * @since Twenty Eleven 1.0
  8. */
  9. ?>
  10.  
  11. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12. <header class="entry-header">
  13. <h1 class="entry-title"><?php the_title(); ?></h1>
  14.  
  15. <?php if ( 'post' == get_post_type() ) : ?>
  16. <div class="entry-meta">
  17. <?php twentyeleven_posted_on(); ?>
  18. <!-- <?php
  19. /* translators: used between list items, there is a space after the comma */
  20. $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  21.  
  22. /* translators: used between list items, there is a space after the comma */
  23. $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  24. if ( '' != $tag_list ) {
  25. $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  26. } elseif ( '' != $categories_list ) {
  27. $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  28. } else {
  29. $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  30. }
  31.  
  32. printf(
  33. $utility_text,
  34. $categories_list,
  35. $tag_list,
  36. esc_url( get_permalink() ),
  37. the_title_attribute( 'echo=0' ),
  38. get_the_author(),
  39. esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
  40. );
  41. ?> -->
  42. </div><!-- .entry-meta -->
  43. <?php endif; ?>
  44. </header><!-- .entry-header -->
  45.  
  46. <div class="entry-content">
  47. <?php the_content(); ?>
  48. <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
  49. </div><!-- .entry-content -->
  50.  
  51. <footer class="entry-meta">
  52. <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  53.  
  54. <?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
  55. <div id="author-info">
  56. <div id="author-avatar">
  57. <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) ); ?>
  58. </div><!-- #author-avatar -->
  59. <div id="author-description">
  60. <h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
  61. <?php the_author_meta( 'description' ); ?>
  62. <div id="author-link">
  63. <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  64. <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyeleven' ), get_the_author() ); ?>
  65. </a>
  66. </div><!-- #author-link -->
  67. </div><!-- #author-description -->
  68. </div><!-- #author-info -->
  69. <?php endif; ?>
  70. </footer><!-- .entry-meta -->
  71. </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement