';
else:
hotel_melbourne_archive_title();
endif;
?>
';
if (is_home() || is_front_page()) :
echo '
'.__('Home','hotel-melbourne').'';
echo '
'.get_bloginfo( 'name' ).'';
else:
echo '
'.__('Home','hotel-melbourne').'';
// Blog Category
if ( is_category() ) {
echo '
' . __('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_single() && !is_attachment() ) {
// Custom post type
if ( get_post_type() != 'post' ) {
$cat = get_the_category();
$cat = $cat[0];
echo '
';
echo get_category_parents($cat, TRUE, '');
echo '';
echo '
'. wp_title( '',false ) .'';
} }
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 '
404 Error';
}
else {
// Default
echo '
'. get_the_title() .'';
}
endif;
echo ''
?>