'' . 'Projects', 'next_text' => '' . esc_html__('Newer', 'camaraderie') . '' . 'Projects', )); comments_template(); } add_action('camaraderie_display_jetpack_testimonial', 'camaraderie_output_jetpack_testimonial'); /* ============================================================================================================================ 2.0 - Content (Jetpack testimonial Archive) ============================================================================================================================ */ function camaraderie_display_archive_jetpack_testimonial() { do_action('camaraderie_display_archive_jetpack_testimonial'); } function camaraderie_output_archive_jetpack_testimonial() { if (have_posts()) : get_template_part('views/jetpack-testimonial/content', 'archive-jetpack-testimonial'); the_posts_navigation(array( 'prev_text' => '' . 'Projects', 'next_text' => '' . esc_html__('Newer', 'camaraderie') . '' . 'Projects', )); else : get_template_part('template-parts/content', 'none'); endif; } add_action('camaraderie_display_archive_jetpack_testimonial', 'camaraderie_output_archive_jetpack_testimonial'); /* ============================================================================================================================ 3.0 - Content (Jetpack testimonial Grid System) ============================================================================================================================ */ function camaraderie_display_jetpack_testimonial_grid() { do_action('camaraderie_display_jetpack_testimonial_grid'); } function camaraderie_output_jetpack_testimonial_grid() { if (is_front_page() && !is_home()) { $posts_per_page = get_option('jetpack_testimonial_posts_per_page'); $query = new WP_Query(array('post_type' => 'jetpack-testimonial', 'posts_per_page' => $posts_per_page)); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); if (has_post_thumbnail()) { ?>