content.php
54 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template Name: Default |
| 4 | * Description: The default template. |
| 5 | */ |
| 6 | |
| 7 | |
| 8 | $continuous_slide = ( isset( $atts['slideshow_settings']['continuous_sliding'] ) && 1 === (int) $atts['slideshow_settings']['continuous_sliding'] ) ? 'true' : 'false'; |
| 9 | |
| 10 | do_action( 'wpmtst_before_view' ); |
| 11 | |
| 12 | ?> |
| 13 | |
| 14 | <div class="strong-view <?php wpmtst_container_class(); ?>"<?php wpmtst_container_data(); ?>> |
| 15 | <?php do_action( 'wpmtst_view_header' ); ?> |
| 16 | |
| 17 | <div class="strong-content <?php wpmtst_content_class(); ?>"> |
| 18 | <?php do_action( 'wpmtst_before_content', $atts ); ?> |
| 19 | <?php |
| 20 | while ( $query->have_posts() ) : |
| 21 | $query->the_post(); |
| 22 | ?> |
| 23 | <div class="<?php wpmtst_post_class( $atts ); ?>"> |
| 24 | <div class="wpmtst-testimonial-inner testimonial-inner"> |
| 25 | <?php do_action( 'wpmtst_before_testimonial' ); ?> |
| 26 | |
| 27 | <?php wpmtst_the_title( 'h3', 'wpmtst-testimonial-heading testimonial-heading' ); ?> |
| 28 | |
| 29 | <div <?php echo ( 'slideshow' === ( $atts['mode'] ?? '' ) ) ? 'data-infinite-loop="' . esc_attr( $continuous_slide ) . '"' : ''; ?> class="wpmtst-testimonial-content testimonial-content"> |
| 30 | |
| 31 | <?php wpmtst_the_thumbnail(); ?> |
| 32 | <div class="maybe-clear"></div> |
| 33 | <?php wpmtst_the_content(); ?> |
| 34 | <?php do_action( 'wpmtst_after_testimonial_content' ); ?> |
| 35 | </div> |
| 36 | |
| 37 | <?php wpmtst_the_client(); ?> |
| 38 | |
| 39 | <div class="clear"></div> |
| 40 | |
| 41 | <?php do_action( 'wpmtst_after_testimonial', $atts ); ?> |
| 42 | </div> |
| 43 | |
| 44 | </div> |
| 45 | <?php endwhile; ?> |
| 46 | |
| 47 | <?php do_action( 'wpmtst_after_content', $atts ); ?> |
| 48 | </div> |
| 49 | |
| 50 | <?php do_action( 'wpmtst_view_footer' ); ?> |
| 51 | </div> |
| 52 | |
| 53 | <?php do_action( 'wpmtst_after_view' ); ?> |
| 54 |