content-excerpt.php 904 B

1234567891011121314151617181920212223242526272829303132
  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 Seedlet
  8. * @since 1.0.0
  9. */
  10. ?>
  11. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  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', 'seedlet' ) );
  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. <footer class="entry-footer default-max-width">
  25. <?php seedlet_entry_meta_footer(); ?>
  26. </footer><!-- .entry-footer -->
  27. </article><!-- #post-${ID} -->