Advertisement
Guest User

Untitled

a guest
Jan 9th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.23 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 class="comments-link">
  30.                 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
  31.             </div>
  32.             <?php endif; ?>
  33.         </header><!-- .entry-header -->
  34. <?php if ( is_search() | is_home() ) : // Edit this to show excerpts in other areas of the theme?>
  35.         <div class="entry-summary">
  36.         <!-- This adds the post thumbnail/featured image -->
  37.             <div class="excerpt-thumb"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
  38.         <?php the_post_thumbnail('excerpt-thumbnail', 'class=alignleft'); ?></a></div>
  39.             <?php the_excerpt(); ?>
  40.         </div><!-- .entry-summary -->
  41.         <?php else : ?>
  42.         <div class="entry-content">
  43.             <?php the_excerpt(); ?>
  44.     <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
  45.         </div><!-- .entry-content -->
  46.         <?php endif; ?>
  47.  
  48.         <footer class="entry-meta">
  49.             <?php $show_sep = false; ?>
  50.             <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?>
  51.             <?php
  52.                 /* translators: used between list items, there is a space after the comma */
  53.                 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  54.                 if ( $categories_list ):
  55.             ?>
  56.             <span class="cat-links">
  57.                 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
  58.                 $show_sep = true; ?>
  59.             </span>
  60.             <?php endif; // End if categories ?>
  61.             <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?>
  62.             <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?>
  63.             <?php
  64.                 /* translators: used between list items, there is a space after the comma */
  65.                 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  66.                 if ( $tags_list ):
  67.                 if ( $show_sep ) : ?>
  68.             <span class="sep"> | </span>
  69.                 <?php endif; // End if $show_sep ?>
  70.             <span class="tag-links">
  71.                 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
  72.                 $show_sep = true; ?>
  73.             </span>
  74.             <?php endif; // End if $tags_list ?>
  75.             <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?>
  76.  
  77.             <?php if ( comments_open() ) : ?>
  78.             <?php if ( $show_sep ) : ?>
  79.             <span class="sep"> | </span>
  80.             <?php endif; // End if $show_sep ?>
  81.             <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
  82.             <?php endif; // End if comments_open() ?>
  83.  
  84.             <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  85.         </footer>
  86.     </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement