Guest User

Untitled

a guest
Jul 17th, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.81 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 printf( esc_attr__( '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 printf( esc_attr__( '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.                         <?php endif; ?>
  30.             <div class="comments_share">
  31.                 <ul class="comments_share_comments_box">
  32.                     <a href="<?php echo get_permalink($post->ID) . '#comments';?>"><li class="comment_link"></li></a>
  33.                     <li class="comment_count"><p><?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1 comment', 'comments number', 'twentyeleven' ), _x( '% comments', 'comments number', 'twentyeleven' ) ); ?><li>
  34.                 </ul>
  35.                 <ul class="comments_share_social_share">
  36.                     <li class="social_share_twitter_share"><a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php echo get_permalink($post->ID);?>">Tweet</a>
  37. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></li>
  38.                     <li class="social_share_facebook_share"><iframe src="//www.facebook.com/plugins/like.php?href=<?php echo get_permalink($post->ID);?>&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21&amp;appId=458867737464599" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px; margin-top: 3px;" allowTransparency="true"></iframe><li>
  39.                 </ul>
  40.             </div>
  41.         </header><!-- .entry-header -->
  42.  
  43.         <?php if ( is_search() ) : // Only display Excerpts for Search ?>
  44.         <div class="entry-summary">
  45.             <?php the_excerpt(); ?>
  46.         </div><!-- .entry-summary -->
  47.         <?php else : ?>
  48.         <div class="entry-content">
  49.             <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
  50.             <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
  51.         </div><!-- .entry-content -->
  52.         <?php endif; ?>
  53.  
  54.         <footer class="entry-meta">
  55.             <?php $show_sep = false; ?>
  56.             <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
  57.             <?php
  58.                 /* translators: used between list items, there is a space after the comma */
  59.                 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  60.                 if ( $categories_list ):
  61.             ?>
  62.             <span class="cat-links">
  63.                 <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list );
  64.                 $show_sep = true; ?>
  65.             </span>
  66.             <?php endif; // End if categories ?>
  67.             <?php
  68.                 /* translators: used between list items, there is a space after the comma */
  69.                 $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  70.                 if ( $tags_list ):
  71.                 if ( $show_sep ) : ?>
  72.             <span class="sep"> | </span>
  73.                 <?php endif; // End if $show_sep ?>
  74.             <span class="tag-links">
  75.                 <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
  76.                 $show_sep = true; ?>
  77.             </span>
  78.             <?php endif; // End if $tags_list ?>
  79.             <?php endif; // End if 'post' == get_post_type() ?>
  80.  
  81.             <?php if ( comments_open() ) : ?>
  82.             <?php if ( $show_sep ) : ?>
  83.             <span class="sep"> | </span>
  84.             <?php endif; // End if $show_sep ?>
  85.             <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>
  86.             <?php endif; // End if comments_open() ?>
  87.  
  88.             <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
  89.         </footer><!-- #entry-meta -->
  90.     </article><!-- #post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment