<?php
/**
 * Template part for displaying page content in page.php
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package bestel
 */

$discount = get_post_meta(get_the_ID(), 'framework-discount', true);
$discount_title = get_post_meta(get_the_ID(), 'framework-discount-title', true);
$services_list = get_post_meta(get_the_ID(), 'framework-services-list', true);
?>
<div class="col-sm-6">						
	<div class="special-card-2">
		<div class="special-card-2-photo">
			<a href="<?php  the_permalink()?>">	<?php the_post_thumbnail(array(570,285)); ?>
				<div class="special-card-2-caption">
					<?php echo esc_html($discount,'bestel');?>
					<span><?php echo wp_kses($discount_title, array(
											'a' =>  array('href'),
											'div' =>  array(''),
											'p' =>  array(''),
											'b' =>  array('class'=>true),
										) );?>
                    </span>
				</div>
			</a>
		</div>
		<div class="special-card-2-info">
			<h3><?php the_title(); ?></h3>
			<div class="row">
				<div class="col-md d-flex flex-column">
					  <?php  the_excerpt(); ?>
					<a href="<?php  the_permalink()?>" class="special-card-2-more mt-auto"><i class="icon-information"></i><?php echo wp_kses_post(esc_html__('Know more', 'bestel')); ?></a>
				</div>
				<?php if(isset($services_list)&& !empty($services_list)) :?>
				<div class="col-md ml-auto mt-3 mt-md-0">
					<?php echo wp_kses($services_list, array(
											'ul' => array('class'=>true),
											'li' => array(''),
											'a' =>  array('href'),
											'div' =>  array(''),
											'p' =>  array(''),
											'i' =>  array('class'=>true),
										) );?>
				</div>
			<?php endif;?>
			</div>
		</div>
	</div>
</div>