';
echo '
';
echo esc_html__( 'Home', 'buddyx');
echo '' . $sep; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
// 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() ) {
printf( esc_html__( '%s', 'buddyx' ), get_the_date() );
} elseif ( is_month() ) {
printf( esc_html__( '%s', 'buddyx' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'buddyx' ) ) );
} elseif ( is_year() ) {
printf( esc_html__( '%s', 'buddyx' ), get_the_date( _x( 'Y', 'yearly archives date format', 'buddyx' ) ) );
} elseif( is_shop() ) {
esc_html_e( 'Shop', 'buddyx' );
}elseif( is_archive('post-type-archive-forum') ) {
esc_html_e( 'Forums Archives', 'buddyx' );
} else {
esc_html_e( 'Blog Archives', 'buddyx' );
}
}
// If the current page is a single post, show its title with the separator
if (is_single()) {
echo $sep; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
the_title();
}
// If the current page is a static page, show its title.
if (is_page()) {
the_title();
}
// if you have a static page assigned to be you posts list page. It will find the title of the static page and display it. i.e Home > Blog
if (is_home()){
esc_html_e( 'Blog', 'buddyx' );
}
echo '
';
}
}
}
}
// Site Loader
if ( !function_exists( 'buddyx_site_loader' ) ) {
function buddyx_site_loader() {
$loader = get_theme_mod( 'site_loader', buddyx_defaults( 'site-loader' ) );
if ( $loader == "1" ) {
echo '