123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- /**
- * @package Penscratch 2
- */
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
- </header><!-- .entry-header -->
- <?php if ( penscratch_2_has_post_thumbnail() ) : ?>
- <div class="entry-thumbnail">
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'penscratch-2-featured' ); ?></a>
- </div>
- <?php endif; ?>
- <?php if ( 'post' == get_post_type() ) : ?>
- <div class="entry-meta">
- <?php penscratch_2_posted_on(); ?>
- <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
- echo '<span class="sep"> ~ </span><span class="comments-link">';
- comments_popup_link( esc_html__( 'Leave a comment', 'penscratch-2' ), esc_html__( '1 Comment', 'penscratch-2' ), esc_html__( '% Comments', 'penscratch-2' ) );
- echo '</span>';
- } ?>
- <?php edit_post_link(
- sprintf(
- /* translators: %s: Name of current post */
- esc_html__( 'Edit %s', 'penscratch-2' ),
- the_title( '<span class="screen-reader-text">"', '"</span>', false )
- ),
- '<span class="edit-link"><span class="sep"> ~ </span>',
- '</span>'
- ); ?>
- </div><!-- .entry-meta -->
- <?php endif; ?>
- <?php if ( is_search() ) : // Only display Excerpts for Search ?>
- <div class="entry-summary">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <?php else : ?>
- <div class="entry-content">
- <?php the_content( sprintf(
- /* translators: %s: Name of current post. */
- wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'penscratch-2' ), array( 'span' => array( 'class' => array() ) ) ),
- the_title( '<span class="screen-reader-text">"', '"</span>', false )
- ) ); ?>
- <?php
- wp_link_pages( array(
- 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'penscratch-2' ),
- 'after' => '</div>',
- ) );
- ?>
- </div><!-- .entry-content -->
- <?php endif; ?>
- </article><!-- #post-## -->
|