';
else:
hotel_melbourne_archive_title();
endif;
?>
';
if (is_home() || is_front_page()) :
echo '
'.esc_html__('Home','hotel-melbourne').'';
echo '
'.get_bloginfo( 'name' ).'';
else:
echo '
'.esc_html__('Home','hotel-melbourne').'';
// Blog Category
if ( is_category() ) {
echo '
' . esc_html__('Archive category','hotel-melbourne').' "' . single_cat_title('', false) . '"';
// Blog Day
} elseif ( is_day() ) {
echo '
'. get_the_time('Y') .'';
echo ''. get_the_time('F') .'';
echo ''. get_the_time('d') .'';
// Blog Month
} elseif ( is_month() ) {
echo '
' . get_the_time('Y') . '';
echo ''. get_the_time('F') .'';
// Blog Year
} elseif ( is_year() ) {
echo '
'. get_the_time('Y') .'';
// Single Post
} elseif ( is_page() && $post->post_parent ) {
$parent_id = $post->post_parent;
$breadcrumbs = array();
while ($parent_id) {
$page = get_page($parent_id);
$breadcrumbs[] = '
' . get_the_title($page->ID) . '';
$parent_id = $page->post_parent;
}
$breadcrumbs = array_reverse($breadcrumbs);
foreach ($breadcrumbs as $crumb) echo $crumb;
echo ''. get_the_title() .'';
}
elseif( is_search() )
{
echo '
'. get_search_query() .'';
}
elseif( is_404() )
{
echo '
'. esc_html__("404 Error","hotel-melbourne") .'';
}
else {
// Default
echo '
'. get_the_title() .'';
}
endif;
echo ''
?>