content-excerpt.php 802 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Template part for displaying post archives and search results
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package Spearhead
  8. * @since 1.0.0
  9. */
  10. ?>
  11. <article id="post-<?php the_ID(); ?>" <?php post_class( 'post-excerpt' ); ?>>
  12. <header class="entry-header default-max-width">
  13. <?php
  14. if ( is_sticky() && is_home() && ! is_paged() ) {
  15. printf( '<span class="sticky-post">%s</span>', _x( 'Featured', 'post', 'spearhead' ) );
  16. }
  17. the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
  18. ?>
  19. </header><!-- .entry-header -->
  20. <?php seedlet_post_thumbnail(); ?>
  21. <div class="entry-content">
  22. <?php the_excerpt(); ?>
  23. </div><!-- .entry-content -->
  24. </article><!-- #post-${ID} -->