archive-jetpack-testimonial.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * The template for displaying the Testimonials archive page.
  4. *
  5. * @package Pique
  6. */
  7. get_header(); ?>
  8. <?php if ( have_posts() ) : ?>
  9. <div id="primary" class="content-area">
  10. <main id="main" class="site-main" role="main">
  11. <?php $jetpack_options = get_theme_mod( 'jetpack_testimonials' ); ?>
  12. <header class="page-header">
  13. <?php if ( '' !== $jetpack_options['page-title'] ) : // only display if title not empty ?>
  14. <h1 class="page-title">
  15. <?php echo esc_html( $jetpack_options['page-title'] ); ?>
  16. </h1>
  17. <?php endif; ?>
  18. <?php if ( '' !== $jetpack_options['page-content'] ) : // only display if content not empty ?>
  19. <div class="taxonomy-description">
  20. <?php echo convert_chars( convert_smilies( wptexturize( wp_kses_post( $jetpack_options['page-content'] ) ) ) ); ?>
  21. </div>
  22. <?php endif; ?>
  23. </header>
  24. <?php while ( have_posts() ) : the_post(); ?>
  25. <?php get_template_part( 'components/content', get_post_format() ); ?>
  26. <?php endwhile; ?>
  27. <?php
  28. the_posts_navigation();
  29. endif;
  30. ?>
  31. </main><!-- #main -->
  32. </div><!-- #primary -->
  33. <?php get_footer(); ?>