Advertisement
alchymyth

content-status.php

Apr 16th, 2013
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.75 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying posts in the Status post format
  4.  *
  5.  *  Twenty_Twelve child theme
  6.  */
  7.  
  8.  
  9. if( !is_singular() ) : ?>
  10.  
  11.     <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  12.                 <span class="post-format-status-entry"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
  13.             <?php echo get_the_excerpt(); ?>
  14.                 </span>
  15.     </article><!-- #post -->
  16.    
  17. <?php else : ?>
  18.  
  19.     <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  20.         <div class="entry-header">
  21.             <header>
  22.                 <h1><?php the_author(); ?></h1>
  23.                 <h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2>
  24.             </header>
  25.             <?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentytwelve_status_avatar', '48' ) ); ?>
  26.         </div><!-- .entry-header -->
  27.  
  28.         <div class="entry-content">
  29.             <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
  30.         </div><!-- .entry-content -->
  31.  
  32.         <footer class="entry-meta">
  33.             <?php if ( comments_open() ) : ?>
  34.             <div class="comments-link">
  35.                 <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
  36.             </div><!-- .comments-link -->
  37.             <?php endif; // comments_open() ?>
  38.             <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
  39.         </footer><!-- .entry-meta -->
  40.     </article><!-- #post -->
  41.  
  42. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement