<div class="entry-header">
    <h2 class="post-title lg"><?php the_title(); ?></h2>
        <?php if(is_single()): ?>
        <ul class="post-meta-info">
       
            <?php if(vinkmag_option( 'blog_author_show', 'yes' ) == 'yes'): ?>
            <li class="author">
                <a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>">
                    <?php if(vinkmag_option( 'blog_author_image_show', 'yes' ) == 'yes'):?>
                    <?php echo get_avatar(get_the_author_meta('ID')); ?> 
                    <?php endif; ?> 
                    <?php echo esc_html(get_the_author_meta('display_name')); ?>
                </a>
            </li>
            <?php endif; ?>
            <?php if(vinkmag_option( 'blog_date_show', 'yes' ) == 'yes'): ?>
            <li>
                <i class="fa fa-clock-o"></i>
                <?php echo get_the_date(); ?>
            </li>
            <?php endif; ?>

            <?php if(vinkmag_option( 'blog_cat_show', 'yes' ) == 'yes'): ?>
            <?php $category	 = get_the_category(); if ( !empty( $category ) ): ?>
                <li>
                    <a href="<?php echo esc_url( get_category_link($category[ 0 ]->cat_ID) ); ?>" class="post-cat" style="<?php echo esc_attr(vinkmag_cat_style($category[ 0 ]->cat_ID)); ?>">
                        <?php echo esc_html( $category[ 0 ]->cat_name ); ?>
                    </a>
                </li>
            <?php endif; endif; ?>

            <?php if(vinkmag_option('blog_view_count_show', 'yes') == 'yes' && class_exists('Vinkmag_Essentials_Includes')): ?>
            <li class="active">
                <i class="icon-fire"></i>
                <?php echo vinkmag_get_postview(get_the_ID()); ?>
            </li>
            <?php endif; ?>

            <?php if(vinkmag_option('blog_social_share_show', 'yes') == 'yes'): ?>
            <li class="social-share-post">
                <span class="share-post"><i class="fa fa-share"></i></span>
                <?php vinkmag_social_share(); ?>
            </li>
            <?php endif; ?>

            <?php if(vinkmag_option('blog_read_time_show', 'yes') == 'yes'): ?>
            <li>
                <?php echo vinkmag_count_read_time(); ?>
            </li>
            <?php endif; ?>
        </ul>
    <?php endif; ?>
</div>