Advertisement
alchymyth

modded content.php 2011

Jul 30th, 2012
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.43 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The default template for displaying content;
  4.  * edited to show thumbnail, short info, no content nor excerpt
  5.  *
  6.  * @package WordPress
  7.  * @subpackage Twenty_Eleven
  8.  * @since Twenty Eleven 1.0
  9.  */
  10. ?>
  11.  
  12.     <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13.    
  14.     <div class="entry-thumbnail"><?php the_post_thumbnail(array(200,200)); ?></div>
  15.     <div class="entry-output">
  16.    
  17.         <header class="entry-header">
  18.             <?php if ( is_sticky() ) : ?>
  19.                 <hgroup>
  20.                     <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  21.                     <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
  22.                 </hgroup>
  23.             <?php else : ?>
  24.             <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  25.             <?php endif; ?>
  26.  
  27.             <?php if ( 'post' == get_post_type() ) : ?>
  28.             <div class="entry-meta">
  29.                 <?php twentyeleven_posted_on(); ?>
  30.             </div><!-- .entry-meta -->
  31.             <?php endif; ?>
  32.  
  33.             <?php if ( comments_open() && ! post_password_required() ) : ?>
  34.             <div class="comments-link">
  35.                 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
  36.             </div>
  37.             <?php endif; ?>
  38.         </header><!-- .entry-header -->
  39.  
  40.         <footer class="entry-meta">
  41.             <?php $show_sep = false; ?>
  42.             <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
  43.             <?php
  44.                 /* translators: used between list items, there is a space after the comma */
  45.                 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  46.                 if ( $categories_list ):
  47.             ?>
  48.             <span class="cat-links">
  49.                 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
  50.                 $show_sep = true; ?>
  51.             </span>
  52.             <?php endif; // End if categories ?>
  53.             <?php
  54.                 /* translators: used between list items, there is a space after the comma */
  55.                 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  56.                 if ( $tags_list ):
  57.                 if ( $show_sep ) : ?>
  58.             <span class="sep"> | </span>
  59.                 <?php endif; // End if $show_sep ?>
  60.             <span class="tag-links">
  61.                 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
  62.                 $show_sep = true; ?>
  63.             </span>
  64.             <?php endif; // End if $tags_list ?>
  65.             <?php endif; // End if 'post' == get_post_type() ?>
  66.  
  67.             <?php if ( comments_open() ) : ?>
  68.             <?php if ( $show_sep ) : ?>
  69.             <span class="sep"> | </span>
  70.             <?php endif; // End if $show_sep ?>
  71.             <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>
  72.             <?php endif; // End if comments_open() ?>
  73.  
  74.             <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  75.         </footer><!-- #entry-meta -->
  76.        
  77.     </div><!-- .entry-output -->
  78.        
  79.         <div class="clear"></div>
  80.        
  81.     </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement