Current File : /home/tekstore/public_html/wp-content/themes/cerato/inc/templates/posts/blog-cover.php
<?php
/**
 * Blog Cover template
 *
 * @package     Zoo Theme
 * @version     1.0.0
 * @author      Zootemplate
 * @link        https://www.zootemplate.com/
 * @copyright   Copyright (c) 2020 ZooTemplate
 
 */
if(get_theme_mod('zoo_enable_blog_cover',0)==1){
	$title = esc_html__('Blog', 'cerato');
	if (is_archive()) {
	    $title = get_the_archive_title();
	    ?>
	    <div class="wrap-blog-cover">
		    <?php if (is_author())
		        get_template_part('author', 'bio');
		    else { ?>
		        <h2 class="blog-page-title"><?php echo ent2ncr(get_the_archive_title()); ?></h2>
		    <?php } ?>
		</div>
	    <?php
	} elseif (is_category()) {
	    $title = get_the_category();
	    ?>
	    <div class="wrap-blog-cover">
		    <?php if (is_author())
		        get_template_part('author', 'bio');
		    else { ?>
		        <h2 class="blog-page-title"><?php echo ent2ncr(get_the_category()); ?></h2>
		    <?php } ?>
		</div>
	    <?php
	}
}