????JFIF??x?x????'
| Server IP : 172.67.174.47 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././././home/tempvsty/dchsreunion.com/wp-content/themes/celebration/php/ |
Upload File : |
<?php
if ( ! function_exists( 'boldthemes_breadcrumbs' ) ) {
function boldthemes_breadcrumbs( $simple = false ) {
global $post;
$post_type = get_post_type( get_the_ID() );
$post_id = get_the_ID();
$home = esc_html__( 'Home', 'celebration' );
$home_link = home_url( '/' );
$title = '';
$output = '';
$item_prefix = '<li>';
$item_sufix = '</li>';
if( !$simple ) {
$item_prefix = '';
$item_sufix = ' / ';
}
if ( ! is_404() && ! is_home() ) {
if( !$simple ) $output .= '<div class="btBreadCrumbs"><nav><ul><li><a href="' . esc_url_raw( $home_link ) . '">' . $home . '</a></li>';
else $output .= '<a href="' . esc_url_raw( $home_link ) . '">' . $home . '</a>';
if ( is_category() ) {
$title = esc_html__( 'Category:', 'celebration' ) . ' ' . single_cat_title( '', false );
$output .= $item_prefix . $title . $item_sufix;
} else if ( is_singular( 'post' ) ) {
$categories = get_the_category();
$output .= $item_prefix;
$n = 0;
foreach( $categories as $cat ) {
$n++;
$output .= '<a href="' . get_category_link( $cat->term_id ) . '">' . $cat->name . '</a>';
if ( $n < count( $categories ) ) $output .= ', ';
}
$output .= $item_sufix;
$output .= $item_prefix . get_the_title() . $item_sufix;
} else if ( is_post_type_archive( 'portfolio' ) ) {
$title = esc_html__( 'Portfolio', 'celebration' );
$output .= $item_prefix . $title . $item_sufix;
} else if ( is_singular( 'portfolio' ) ) {
$output .= $item_prefix . esc_html__( 'Portfolio', 'celebration' ) . $item_sufix;
$output .= $item_prefix . get_the_title() . $item_sufix;
} else if ( is_attachment() ) {
$title = get_the_title();
$output .= $item_prefix . $title . $item_sufix;
} else if ( is_tag() ) {
$title = esc_html__( 'Tag:', 'celebration' ) . ' ' . single_tag_title( '', false );
$output .= $item_prefix . $title . $item_sufix;
} else if ( is_author() ) {
$title = esc_html__( 'Author:', 'celebration' ) . ' ' . get_the_author_meta( 'display_name' );
$output .= $item_prefix . $title . $item_sufix;
} else if ( is_day() ) {
$title = get_the_time( 'Y / m / d' );
$output .= $item_prefix . $title . $item_sufix;
} else if ( is_month() ) {
$title = get_the_time( 'Y / m' );
$output .= $item_prefix . $title . $item_sufix;
} else if ( is_year() ) {
$title = get_the_time( 'Y' );
$output .= $item_prefix . $title . $item_sufix;
} else if ( is_search() ) {
$title = esc_html__( 'Search:', 'celebration' ) . ' ' . get_query_var( 's' );
$output .= $item_prefix . $title . $item_sufix;
} else {
$title = get_the_title();
$output .= $item_prefix . $title . $item_sufix;
}
if( !$simple ) $output .= '</ul></nav></div>';
}
return $output;
}
}