Advertisement
Guest User

2012

a guest
Oct 25th, 2012
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  2. <?php if ( is_sticky() ) : ?>
  3. <div class="featured-post">
  4. <?php _e( 'Featured post', 'twentytwelve' ); ?>
  5. </div>
  6. <?php endif; ?>
  7. <header class="entry-header">
  8. <?php the_post_thumbnail(); ?>
  9. <?php if ( is_single() ) : ?>
  10. <h1 class="entry-title"><?php the_title(); ?></h1>
  11. <?php else : ?>
  12. <h1 class="entry-title">
  13. <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
  14. </h1>
  15. <?php endif; // is_single() ?>
  16. <?php if ( comments_open() ) : ?>
  17. <div class="comments-link">
  18. <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
  19. </div><!-- .comments-link -->
  20. <?php endif; // comments_open() ?>
  21. </header><!-- .entry-header -->
  22.  
  23. <footer class="entry-meta">
  24. <?php twentytwelve_entry_meta(); ?>
  25. <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
  26. <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
  27. <div id="author-info">
  28. <div id="author-avatar">
  29. <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?>
  30. </div><!-- #author-avatar -->
  31. <div id="author-description">
  32. <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
  33. <p><?php the_author_meta( 'description' ); ?></p>
  34. <div id="author-link">
  35. <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  36. <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve' ), get_the_author() ); ?>
  37. </a>
  38. </div><!-- #author-link -->
  39. </div><!-- #author-description -->
  40. </div><!-- #author-info -->
  41. <?php endif; ?>
  42. </footer><!-- .entry-meta -->
  43.  
  44. <div class="entry-content">
  45. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
  46. <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
  47. </div><!-- .entry-content -->
  48.  
  49. </article><!-- #post -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement