post_parent ) ) ); } else if ( is_single() ) { printf( '%s', esc_html( get_the_title() ) ); } else if ( is_search() ) { printf( __( 'Search Results: ', 'bolder' ) . '%s', esc_html( get_search_query() ) ); } else if ( is_404() ) { printf( __( 'Page Not Found', 'bolder' ) ); } elseif ( is_archive() ) { echo get_the_archive_title(); } elseif ( bolder_thinkup_check_isblog() ) { printf( __( 'Blog', 'bolder' ) ); } else { printf( '%s', esc_html( get_the_title() ) ); } } //---------------------------------------------------------------------------------- // ADD BREADCRUMBS FUNCTIONALITY //---------------------------------------------------------------------------------- function bolder_thinkup_input_breadcrumb() { $output = NULL; $count_loop = NULL; $count_categories = NULL; $delimiter = '/'; $delimiter_inner = ' • '; $main = __( 'Home', 'bolder' ); $maxLength = 30; // Archive variables $arc_year = get_the_time('Y'); $arc_month = get_the_time('F'); $arc_day = get_the_time('d'); $arc_day_full = get_the_time('l'); // URL variables $url_year = get_year_link($arc_year); $url_month = get_month_link($arc_year,$arc_month); // Display breadcumbs if NOT the home page if ( ! is_front_page() ) { $output .= '
'; return $output; } } // ---------------------------------------------------------------------------------- // ADD MENU DESCRIPTION FEATURE // ---------------------------------------------------------------------------------- class bolder_thinkup_menudescription extends Walker_Nav_Menu { function start_el(&$output, $item, $depth=0, $args=array(), $id = 0) { global $wp_query; $item_output = NULL; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $class_names = $value = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ); $class_names = ' class="' . esc_attr( $class_names ) . '"'; $output .= $indent . '