';
if (is_home() || is_front_page()) :
echo '
'.esc_attr__('Home','business-pride').'';
echo '
'.get_bloginfo( 'name' ).'';
else:
echo '
'.esc_attr__('Home','business-pride').'';
// Blog Category
if ( is_category() ) {
echo '
'. get_category_parents(get_query_var('cat'), true, ' > ') . '"';
// Blog Day
} elseif ( is_day() ) {
$archive_year = get_the_time('Y');
$archive_month = get_the_time('m');
$archive_day = get_the_time('d');
echo '
'. get_the_time('Y') .'';
echo ''. get_the_time('F') .'';
echo ''. get_the_time('d') .'';
// Blog Month
} elseif ( is_month() ) {
$archive_year = get_the_time('Y');
$archive_month = get_the_time('m');
echo '' . get_the_time('Y') . '';
echo ''. get_the_time('F') .'';
// Blog Year
} elseif ( is_year() ) {
$archive_year = get_the_time('Y');
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 '
'.__('404 Error','business-pride').'';
}
else {
// Default
echo '
'. get_the_title() .'';
}
endif;
echo ''
?>