';
/* For all pages other than front page */
if (!is_front_page()) {
echo '
'.__('Home', 'eroshiksavp').'';
}
/* For index.php OR blog posts page */
if (is_home()) {
$page_for_posts = get_option('page_for_posts');
if ($page_for_posts) {
$blog = get_post($page_for_posts);
echo '';
echo esc_html($blog->post_title);
echo '';
} else {
echo '';
echo __('Blog', 'eroshiksavp');
echo '';
}
}
if (is_category() || is_singular('post')) {
$category = get_the_category();
$ID = $category[0]->cat_ID;
echo '';
echo get_category_parents($ID, TRUE, ' ', FALSE);
}
if (is_tax('gallery-item-type') || is_tax('department')) {
$current_term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
if (!empty($current_term->name)) {
echo '';
echo esc_html($current_term->name);
echo '';
}
}
if (is_singular('post') || is_page()) {
echo '' .the_title("","",false) . '';
}
if (is_tag()) {
echo '';
echo __('Tag: ', 'eroshiksavp');
echo single_tag_title('', FALSE);
echo '';
}
if (is_404()) {
echo '';
echo __('404 - Page not Found', 'eroshiksavp');
echo '';
}
if (is_search()) {
echo '';
echo __('Search', 'eroshiksavp');
echo '';
}
if (is_year()) {
echo '';
echo get_the_time('Y');
echo '';
}
echo "";
?>