Advertisement
Guest User

Untitled

a guest
Feb 28th, 2013
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. <?php
  2. /**
  3. * The default template for displaying content
  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. <?php if ( is_sticky() ) : ?>
  14. <hgroup>
  15. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  16. <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
  17. </hgroup>
  18. <?php else : ?>
  19. <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  20. <?php endif; ?>
  21.  
  22. <?php if ( 'post' == get_post_type() ) : ?>
  23. <div class="entry-meta">
  24. <?php twentyeleven_posted_on(); ?>
  25. </div><!-- .entry-meta -->
  26. <?php endif; ?>
  27.  
  28. <!-- <?php if ( comments_open() && ! post_password_required() ) : ?>
  29. </div>
  30. <?php endif; ?> -->
  31. </header><!-- .entry-header -->
  32.  
  33. <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  34. <div class="entry-summary">
  35. <?php the_excerpt(); ?>
  36. </div><!-- .entry-summary -->
  37. <?php else : ?>
  38. <div class="entry-content">
  39. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  40. <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
  41. </div><!-- .entry-content -->
  42. <?php endif; ?>
  43.  
  44. <footer class="entry-meta">
  45. <?php $show_sep = false; ?>
  46. <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?>
  47. <?php
  48. /* translators: used between list items, there is a space after the comma */
  49. $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  50. if ( $categories_list ):
  51. ?>
  52. <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
  53. $show_sep = true; ?>
  54. <?php endif; // End if categories ?>
  55. <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?>
  56. <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?>
  57. <?php
  58. /* translators: used between list items, there is a space after the comma */
  59. $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  60. if ( $tags_list ):
  61. if ( $show_sep ) : ?>
  62. <?php endif; // End if $show_sep ?>
  63. <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
  64. $show_sep = true; ?>
  65. </span>
  66. <?php endif; // End if $tags_list ?>
  67. <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?>
  68.  
  69. <?php if ( comments_open() ) : ?>
  70. <?php if ( $show_sep ) : ?>
  71. <?php endif; // End if $show_sep ?>
  72. <?php endif; // End if comments_open() ?>
  73. <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  74. </footer><!-- .entry-meta -->
  75. </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement