<?php
/**
* Blog Content Template
*
* @package WordPress
* @subpackage DIZITI
* @author Codifytheme
* @version 1.0
*/
if (class_exists('Diziti_Resizer')) {
$img_obj = new Diziti_Resizer();
} else {
$img_obj = array();
}
$options = diziti_WSH()->option();
$allowed_tags = wp_kses_allowed_html('post');
?>
<div <?php post_class(); ?>>
<div class="blog-card style5">
<?php if(has_post_thumbnail()){ ?>
<div class="blog-card-thumb pt-0 img-custom-anim-top">
<?php the_post_thumbnail('full'); ?>
</div>
<?php } ?>
<div class="blog-card-body">
<?php if( $options->get( 'blog_post_date' ) != true ){ ?>
<div class="post-date">
<div class="calendar-icon">
<i class="far fa-calendar-alt"></i>
</div>
<button class="date-btn"><?php echo get_the_date(); ?></button>
</div>
<?php } ?>
<div class="blog-content">
<ul class="wow fadeInUp" data-wow-delay=".4s">
<?php if( $options->get( 'blog_post_author' ) != true ){ ?>
<li>
<i class="fa-regular fa-user"></i>
<?php esc_html_e('By', 'diziti'); ?> <?php the_author(); ?>
</li>
<?php } ?>
<?php if( has_category() ){ ?>
<li>
<i class="fa-regular fa-folder-open"></i>
<?php the_category(' '); ?>
</li>
<?php } ?>
</ul>
<h3 class="wow fadeInUp" data-wow-delay=".4s">
<a href="<?php echo esc_url( get_the_permalink( get_the_id() ) );?>"><?php the_title(); ?></a>
</h3>
<a href="<?php echo esc_url( get_the_permalink( get_the_id() ) );?>" class="ct-btn style7 mt-40">
<?php esc_html_e('Read More', 'diziti'); ?>
<i class="fa-solid fa-arrow-right-long"></i>
</a>
</div>
</div>
</div>
</div>