';
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.
if ( is_home() ) {
$blog_title = get_option( 'page_for_posts', true );
echo esc_html( get_the_title ( $blog_title ) );
}
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 '';
echo '
' . _n( 'Recently earned badge', 'Recently earned badges', $achievement_count, 'buddyx' ) . '
';
echo '
' . $achievements . '
';
echo '
';
}
}
}
/**
* Function Footer Custom Text
*/
if ( ! function_exists( 'buddyx_footer_custom_text' ) ) {
/**
* Function Footer Custom Text
*
* @since 1.0.14
* @param string $option Custom text option name.
* @return mixed Markup of custom text option.
*/
function buddyx_footer_custom_text() {
$copyright = esc_html( get_theme_mod( 'site_copyright_text' ) );
$output = $copyright;
if ( '' != $output ) {
$output = str_replace( '[current_year]', date_i18n( 'Y' ), $output );
$output = str_replace( '[site_title]', '', $output );
$theme_author = apply_filters(
'buddyx_theme_author',
array(
'theme_name' => __( 'BuddyX WordPress Theme', 'buddyx' ),
'theme_author_url' => esc_url( 'https://wbcomdesigns.com/downloads/buddyx-theme/' ),
)
);
$output = str_replace( '[theme_author]', '