<?php
/**
 * Template part for displaying Service
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Weddi_Pro
 */

$weddi_pro_visibility = weddi_pro_gtm( 'weddi_pro_testimonial_visibility' );

if ( ! weddi_pro_display_section( $weddi_pro_visibility ) ) {
	return;
}

$image = weddi_pro_gtm( 'weddi_pro_testimonial_bg_image' );
?>
<div id="testimonial-section" class="testimonial-section section dark-background page" <?php echo $image ? 'style="background-image: url( ' .esc_url( $image ) . ' )"' : ''; ?>>
	<div class="section-testimonial testimonial-layout-1">
		<div class="container">
			<?php weddi_pro_section_title( 'testimonial' ); ?>

			<?php get_template_part( 'template-parts/testimonial/post-type' ); ?>
		</div><!-- .container -->
	</div><!-- .section-testimonial  -->
</div><!-- .section -->
