<?php // Add Featured Image after the Lead-in (if there is one) if (has_post_thumbnail() && 'link' !== get_post_format()) { ?> <figure class="featured-image"> <?php the_post_thumbnail(); ?> </figure> <?php } else { if ('link' === get_post_format()) { ?> <figure class="featured-image"> <?php jkl_link_screenshot(600); ?> </figure> <?php } } // Add a Lead-in (from the Excerpt) if there is one if (is_single() && 'post' === get_post_type() && has_excerpt($post->ID)) { echo '<div class="lead-in">'; echo '<p>' . get_the_excerpt() . '</p>'; echo '</div><!-- .lead-in -->'; } the_content(sprintf(wp_kses(__('Continue reading %s <span class="meta-nav">→</span>', 'jkl'), array('span' => array('class' => array()))), the_title('<span class="screen-reader-text">"', '"</span>', false))); wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'jkl'), 'after' => '</div>')); ?> </div><!-- .entry-content -->
<div class="entry-title"> <?php jkl_link_screenshot(150, true); ?> </div> <div class="entry-content index-content"> <div class="featured-image-index"> <?php if (has_post_thumbnail()) { the_post_thumbnail('thumbnail'); } else { jkl_link_screenshot(150); } ?> </div> <?php the_excerpt(); ?> </div><!-- .entry-content --> </div><!-- .hentry-index --> <div class="entry-footer-index"> <?php jkl_entry_footer();