<?php 
use \Elementor\Icons_Manager;
use \ExclusiveAddons\Elementor\Helper;
?>
<div class="exad-post-timeline-item">
	<?php if ( ! empty($settings['exad_post_timeline_divider_icon']['value'])) { ?>
		<span class="exad-post-timeline-icon">
			<?php Icons_Manager::render_icon( $settings['exad_post_timeline_divider_icon'], [ 'aria-hidden' => 'true' ] );?>
		</span>                               
	<?php } ?>

    <div class="exad-post-timeline-content">
		<?php if( has_post_thumbnail() ) : ?>
			<a href="<?php echo esc_url( get_permalink() );?>">
				<?php the_post_thumbnail();?>
			</a>
		<?php endif;?>
        <div class="exad-post-timeline-content-text">
            <h4><a href="<?php echo esc_url( get_permalink() );?>" ><?php echo esc_html( get_the_title() );?></a></h4>
            <p><?php echo esc_html( Helper::exad_get_post_excerpt( get_the_ID(), $settings['exad_timeline_excerpt_length'] ) );?></p>
        </div>
    </div>

    <div class="exad-post-timeline-date">
        <h4><?php echo get_the_date('Y');?></h4>
        <p><?php echo get_the_date('F d');?></p>
    </div>
</div>