Advertisement
Guest User

content.php

a guest
Jan 8th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.99 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage Yoko
  5.  */
  6. ?>
  7.  
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9.  
  10.    
  11.    
  12.     <header class="entry-header">
  13.             <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'yoko' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  14.     </header><!-- end entry-header -->
  15.    
  16.     <div class="entry-details">
  17.         <p><?php echo get_the_date('j. F Y, H:i'); ?>
  18.         <?php _e( 'by', 'yoko' ); ?> <?php the_author() ?> |
  19.         <?php comments_popup_link( __( '0 comments', 'yoko' ), __( '1 Comment', 'yoko' ), __( '% Comments', 'yoko' ) ); ?></p>
  20.     </div><!-- end entry-details -->
  21.        
  22.     <div class="entry-content">
  23.         <?php if ( is_search() ) : // Only display excerpts for archives and search. ?>
  24.             <?php the_excerpt(); ?>        
  25.         <?php else : ?>
  26.             <?php if ( has_post_thumbnail() ): ?>
  27.             <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>
  28.             <?php endif; ?>
  29.             <?php the_content( __( 'Continue Reading &rarr;', 'yoko' ) ); ?>       
  30.             <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'yoko' ), 'after' => '</div>' ) ); ?>                
  31.         <?php endif; ?>
  32.        
  33.         <footer class="entry-meta">
  34.             <p><?php if ( count( get_the_category() ) ) : ?>
  35.             <?php printf( __( 'Categories: %2$s', 'yoko' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> |
  36.             <?php endif; ?>
  37.             <?php $tags_list = get_the_tag_list( '', ', ' );
  38.             if ( $tags_list ): ?>
  39.             <?php printf( __( 'Tags: %2$s', 'yoko' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> |
  40.             <?php endif; ?>
  41.             <a href="<?php echo get_permalink(); ?>"><?php _e( 'Permalink ', 'yoko' ); ?></a>
  42.             <?php edit_post_link( __( 'Edit &rarr;', 'yoko' ), '| <span class="edit-link">', '</span>' ); ?></p>
  43.     </footer><!-- end entry-meta -->
  44.     </div><!-- end entry-content -->
  45.            
  46. </article><!-- end post-<?php the_ID(); ?> -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement