archive-jetpack-testimonial.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * The template for displaying the Testimonials archive page.
  4. *
  5. * @package Ixion
  6. */
  7. get_header(); ?>
  8. <?php $jetpack_options = get_theme_mod( 'jetpack_testimonials' ); ?>
  9. <?php if ( '' != $jetpack_options['page-content'] ) : // only display if content not empty ?>
  10. <header class="page-header">
  11. <h1 class="page-title">
  12. <?php
  13. if ( isset( $jetpack_options['page-title'] ) && '' != $jetpack_options['page-title'] ) {
  14. echo esc_html( $jetpack_options['page-title'] );
  15. }
  16. else {
  17. esc_html_e( 'Testimonials', 'ixion' );
  18. }
  19. ?>
  20. </h1>
  21. <div class="taxonomy-description">
  22. <?php echo convert_chars( convert_smilies( wptexturize( wp_kses_post( $jetpack_options['page-content'] ) ) ) ); ?>
  23. </div>
  24. </header>
  25. <?php endif; ?>
  26. <?php if ( have_posts() ) : ?>
  27. <div id="primary" class="content-area">
  28. <main id="main" class="site-main" role="main">
  29. <div class="testimonials">
  30. <div class="grid-sizer"></div>
  31. <div class="gutter-sizer"></div>
  32. <?php while ( have_posts() ) : the_post(); ?>
  33. <?php get_template_part( 'components/features/testimonials/content', 'testimonials' ); ?>
  34. <?php endwhile; ?>
  35. </div>
  36. </main>
  37. </div>
  38. <?php
  39. the_posts_navigation();
  40. endif;
  41. wp_reset_postdata();
  42. ?>
  43. <?php get_footer(); ?>