content-search.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Template part for displaying results in search pages.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Shoreditch
  8. */
  9. ?>
  10. <?php if ( 'jetpack-testimonial' == get_post_type() ) : ?>
  11. <article class="hentry search-testimonial">
  12. <div class="hentry-wrapper">
  13. <?php get_template_part( 'template-parts/content', 'testimonial' ); ?>
  14. </div><!-- .hentry-wrapper -->
  15. </article><!-- .hentry -->
  16. <?php else : ?>
  17. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  18. <div class="hentry-wrapper">
  19. <header class="entry-header" <?php shoreditch_background_image(); ?>>
  20. <div class="entry-header-wrapper">
  21. <?php
  22. shoreditch_entry_meta();
  23. the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
  24. ?>
  25. </div><!-- .entry-header-wrapper -->
  26. </header><!-- .entry-header -->
  27. <div class="entry-summary">
  28. <?php the_excerpt(); ?>
  29. </div><!-- .entry-summary -->
  30. <footer class="entry-footer">
  31. <?php shoreditch_entry_footer(); ?>
  32. </footer><!-- .entry-footer -->
  33. </div><!-- .hentry-wrapper -->
  34. </article><!-- #post-## -->
  35. <?php endif; ?>