</h1> <?php get_template_part('templates/post-meta'); ?> <?php } elseif (is_day() || is_month() || is_year()) { ?> <span class="vw-label"><?php _e('All posts on', 'envirra'); ?> </span> <h1 class="vw-page-title"><?php echo vw_get_archive_date(); ?> </h1> <?php } elseif (is_tag()) { ?> <span class="vw-label"><?php _e('All posts tagged', 'envirra'); ?> </span> <h1 class="vw-page-title"><?php echo single_tag_title('', false); ?> </h1>
$curcategory = get_the_category(); $title = single_cat_title('', false); $subtitle = category_description(); $supertitle = __('Posts in category', 'envirra'); } elseif (is_tag()) { $title = single_tag_title('', false); $subtitle = tag_description(); $supertitle = __('Posts tagged', 'envirra'); } elseif (is_day()) { $title = vw_get_archive_date(); $supertitle = __('All posts on', 'envirra'); } elseif (is_month()) { $title = vw_get_archive_date(); $supertitle = __('All posts on', 'envirra'); } elseif (is_year()) { $title = vw_get_archive_date(); $supertitle = __('All posts on', 'envirra'); } elseif (get_post_format()) { $title = get_post_format(); } ?> <h1 class="page-title title title-large"> <?php if (!empty($supertitle)) { ?> <span class="super-title"><?php echo $supertitle; ?> </span> <?php }