
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php 

 if(is_category()) {
	$archive_title = __vce('category').single_cat_title('',false);
	$description = category_description();
	if(!empty($description)){
		$archive_desc = $description;
	}
} else if(is_author()) {
	if( voice_is_co_authors_active() ) {
		 $curauth = get_queried_object();
		 $archive_title = __vce('author').$curauth->display_name;
	} else {
		$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
		$archive_title = __vce('author').$curauth->display_name;
	}
} else if(is_tax()){
	$archive_title = single_term_title('',false);
} else if(is_front_page()){
	$archive_title = __vce('latest_posts', THEME_SLUG);
} else if( is_home() && ($posts_page = get_option('page_for_posts')) && !is_page_template('template-modules.php')){
	$archive_title = get_the_title($posts_page);
} else if(is_search()) {
	$archive_title = __vce('search_results_for').get_search_query();
} else if(is_tag()) {
	$archive_title = __vce('tag').single_tag_title('',false);
	$description = tag_description();
	if(!empty($description)){
		$archive_desc = $description;
	}
} else if(is_day()) {
	$archive_title = __vce('archive').get_the_date();
} else if(is_month()) {
	$archive_title = __vce('archive').get_the_date('F Y');
} else if(is_year()) {
	$archive_title = __vce('archive').get_the_date('Y');
} else {
	$archive_title = false;
	$archive_desc = false;
}

?>

<?php if(!empty($archive_title)) : ?>
	<div class="main-box-head">
		<h1 class="main-box-title"><?php echo $archive_title; ?></h1>
		<?php if(!empty($archive_desc)) : ?>
			<span class="main-box-subtitle"><?php echo $archive_desc; ?></span>
		<?php endif; ?>
	</div>
<?php endif; ?>