\n";
}
}
/*******************************************************************************
* Filter the excerpt "read more" string.
*******************************************************************************/
function apex_business_excerpt_more() {
return '...';
}
add_filter( 'excerpt_more', 'apex_business_excerpt_more' );
/*******************************************************************************
* Displays Breadcrumb on post/pages
*******************************************************************************/
if ( ! function_exists( 'apex_business_the_breadcrumb' ) ) :
function apex_business_the_breadcrumb() {
//$sep = ' ';
if ( !is_front_page() ) {
// Start the breadcrumb with a link to your homepage
echo '
';
echo '';
echo esc_html__( 'Home', 'apex-business' );
echo ' ';
// Check if the current page is a category, an archive or a single page. If so show the category or archive name.
if ( is_category() || is_single() ){
the_category( ', ' );
} elseif ( is_archive() || is_single() ){
if ( is_day() ) {
echo esc_html( get_the_date() );
} elseif ( is_month() ) {
echo esc_html( get_the_date( 'F Y' ) );
} elseif ( is_year() ) {
echo esc_html( get_the_date( 'Y' ) );
} elseif ( is_author() ) {
echo esc_html( get_the_author_meta( 'display_name' ) );
} else {
esc_html__( 'Blog Archives', 'apex-business' );
}
}
// If the current page is a single post, show its title with the separator
if ( is_single() ) {
echo ' ';
the_title();
}
// If the current page is a static page, show its title.
if ( is_page() ) {
the_title();
}
echo '