<?php

/**
 * Blog Content Template
 *
 * @package    WordPress
 * @subpackage INVENTIVE
 * @author     Themekalia
 * @version    1.0
 */

if (class_exists('inventive_Resizer')) {
    $img_obj = new inventive_Resizer();
} else {
    $img_obj = array();
}
global $post;
$options = inventive_WSH()->option();
$allowed_tags = wp_kses_allowed_html('post');

?>


<div <?php post_class(); ?>>
	
    <div class="news-block-two mb_50">
        <div class="inner-box">
            <?php if( has_post_thumbnail() ){?>
            <div class="image-box text-center">                                    
                <figure class="image"><a href="<?php echo esc_url( get_the_permalink( get_the_id() ) );?>"><?php the_post_thumbnail('full'); ?></a></figure>
            </div>
            <?php };?>
            <div class="lower-content <?php if(! has_post_thumbnail() ) echo 'pad-adjustment'?>">
                <?php if( has_category() ){ ?><div class="blog_tag"><?php the_category(', '); ?></div><?php } ?>
                <?php if(! $options->get( 'blog_post_author' ) || $options->get( 'blog_post_date' ) || $options->get( 'blog_post_comments' ) ){ ?>
                <ul class="post-info">
                    <?php if(! $options->get( 'blog_post_author' ) ){ ?><li class="admin"><span><?php esc_html_e('by', 'inventive'); ?></span><?php the_author(); ?></li><?php } ?>
                    <?php if(! $options->get( 'blog_post_date' ) ){ ?><li class="post-date"><span><?php esc_html_e('on', 'inventive'); ?></span><?php echo get_the_date(); ?></li><?php } ?>
                    <?php if(! $options->get( 'blog_post_comments' ) ){ ?><li class="post-comment"><span></span><?php comments_number( wp_kses(__('CMTs 0' , 'inventive'), true), wp_kses(__('CMT 1' , 'inventive'), true), wp_kses(__('CMTs %' , 'inventive'), true)); ?></li><?php } ?>
                </ul>
                <?php } ?>
                <h3><a href="<?php echo esc_url( get_the_permalink( get_the_id() ) );?>"><?php the_title(); ?></a></h3>
                <div class="text mb_20"><?php the_excerpt(); ?></div>
                <div><a href="<?php echo esc_url( get_the_permalink( get_the_id() ) );?>" class="read_more_1_btn"><span class="icon-diagonal-arrow-1"></span><?php esc_html_e('Read More', 'inventive'); ?></a></div>
                <?php if(function_exists('bunch_share_us_two')):?>
                <div class="shear_btn_box">
                    <a class="shear_btn" href="#"><?php esc_html_e('Share this post', 'inventive'); ?><span class="icon-share"></span></a>
                    <ul class="overlay_social_links">
                        <?php echo bunch_share_us_two(get_the_id(),$post->post_name );?>
                    </ul>
                </div>
                <?php endif;?>
            </div>
        </div>
    </div>
      
</div>