<?php
if ( ! get_theme_mod( 'property_dealer_enable_properties_section', false ) ) {
	return;
}
/**
 * Render Properties Section.
*/
function property_dealer_render_properties_section() { 
	$property_dealer_heading = get_theme_mod( 'property_dealer_properties_section_heading' );
	$property_dealer_content = get_theme_mod( 'property_dealer_properties_section_content' );
	?>
	<section id="property_dealer_properties_section" class="asterthemes-frontpage-section trending-section trending-style-1">
		<div class="asterthemes-wrapper">
			<div class="properties-section">
				<?php if ( ! empty( $property_dealer_heading ) ) : ?>
					<h1 class="properties-caption-title">
						<?php echo esc_html( $property_dealer_heading ); ?>
					</h1>
				<?php endif; ?>
				<?php if ( ! empty( $property_dealer_content ) ) : ?>
					<p class="properties-caption-content">
						<?php echo esc_html( $property_dealer_content ); ?>
					</p>
				<?php endif; ?>
				<?php echo property_dealer_render_property_cards(); ?>
			</div>
		</div>
	</section>
	<?php
}
property_dealer_render_properties_section();