Advertisement
Guest User

Untitled

a guest
Jul 12th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.04 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The default template for displaying content. Used for single, index, archive
  4.  */
  5. ?>
  6. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  7.     <header class="entry-header">
  8.         <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
  9.         <div class="featured-img">
  10.             <?php if ( is_single() ) : ?>
  11.                 <?php the_post_thumbnail(); ?>
  12.             <?php else : ?>
  13.             <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'jgtstork' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail(); ?></a>
  14.             <?php endif; // is_single() ?>
  15.         </div>
  16.         <?php endif; // has_post_thumbnail() ?>
  17.         <?php if ( is_single() ) : ?>
  18.         <h1 class="entry-title"><?php the_title(); ?></h1>
  19.         <?php else : ?>
  20.         <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'jgtstork' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
  21.         <?php endif; // is_single() ?>
  22.         <div class="entry-meta">
  23.             <?php
  24.             // entry date removed
  25.             // entry author
  26.             printf( '<span class="entry-author"> / <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span></span>',
  27.                 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
  28.                 esc_attr( sprintf( __( 'View all posts by %s', 'jgtstork' ), get_the_author() ) ),
  29.                 get_the_author()
  30.             );
  31.             // entry categories removed
  32.             // entry comments link
  33.             if (comments_open()) :
  34.                 echo ' / ';
  35.                 comments_popup_link( __( 'Leave a Reply', 'jgtstork' ), __( '1 Reply', 'jgtstork' ), __( '% Replies', 'jgtstork' ) );
  36.             endif;
  37.             // entry edit link
  38.             edit_post_link( __( 'Edit', 'jgtstork' ), ' / <span class="edit-link">', '</span>' );
  39.             ?>
  40.         </div>
  41.     </header><!-- .entry-header -->
  42.     <div class="entry-content">
  43.         <?php the_content( __( 'Read More', 'jgtstork' ) ); ?>
  44.         <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'jgtstork' ), 'after' => '</p>', 'link_before' => '<span class="page-link">', 'link_after' => '</span>' ) ); ?>
  45.     </div><!-- .entry-content -->
  46.     <?php if ( is_single() ) : ?>
  47.     <footer class="entry-meta">
  48.         <?php if ( is_multi_author() && get_the_author_meta( 'description' ) ) { ?>
  49.         <div class="author-box">
  50.             <?php echo get_avatar( get_the_author_meta( 'user_email' ), 120 ); ?>
  51.             <h3 class="author-title"><?php printf( __( 'About %s', 'jgtstork' ), get_the_author() ); ?></h3>
  52.             <p class="author-bio"><?php the_author_meta( 'description' ); ?><br /><a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><?php printf( __( 'View all posts by %s &rarr;', 'jgtstork' ), get_the_author() ); ?></a></p>
  53.         </div><!-- .author-box -->
  54.         <?php } ?>
  55.         <?php
  56.         $tag_list = get_the_tag_list( __( 'Tagged: ', 'jgtstork' ) );
  57.         if ( $tag_list )
  58.             echo '<div class="tag-links">' . $tag_list . '</div>';
  59.         ?>
  60.     </footer><!-- .entry-meta -->
  61.     <?php endif; // is_single() ?>
  62. </article><!-- #post -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement