content-search.php 887 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Template part for displaying results in search pages
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package UIU_CSE
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <header class="entry-header">
  12. <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
  13. <?php if ( 'post' === get_post_type() ) : ?>
  14. <div class="entry-meta">
  15. <?php
  16. uiu_cse_posted_on();
  17. uiu_cse_posted_by();
  18. ?>
  19. </div><!-- .entry-meta -->
  20. <?php endif; ?>
  21. </header><!-- .entry-header -->
  22. <?php uiu_cse_post_thumbnail(); ?>
  23. <div class="entry-summary">
  24. <?php the_excerpt(); ?>
  25. </div><!-- .entry-summary -->
  26. <footer class="entry-footer">
  27. <?php uiu_cse_entry_footer(); ?>
  28. </footer><!-- .entry-footer -->
  29. </article><!-- #post-<?php the_ID(); ?> -->