芝麻web文件管理V1.00
编辑当前文件:/home/projzpbv/www/wp-content/themes/cleanora/framework/function/breadcrumbs.php
' . esc_html($sep_text) . '' . "\n\t"; $year_format = get_the_time('Y'); $month_format = get_the_time('F'); $month_number_format = get_the_time('n'); $day_format = get_the_time('d'); $day_full_format = get_the_time('l'); $url_year = get_year_link($year_format); $url_month = get_month_link($year_format, $month_number_format); echo '
' . esc_html($homeText) . '
' . $sep; if (CMSMASTERS_LEARNPRESS && learn_press_is_courses()) { echo '
' . cmsmasters_title(get_the_ID(), false) . '
'; } elseif (is_single()) { $category = get_the_category(); $num_cat = count($category); if ($num_cat < 1) { echo '
' . cmsmasters_title(get_the_ID(), false) . '
'; } else if ($num_cat >= 1) { echo get_category_parents($category[0], true, $sep) . '
' . cmsmasters_title(get_the_ID(), false) . '
'; } } elseif (is_category()) { global $cat; $multiple_cats = get_category_parents($cat, true, $sep); if (is_string($multiple_cats)) { $multiple_cats_array = explode($sep, $multiple_cats); } else { $category = get_queried_object(); $multiple_cats_array = array($category->name); } $multiple_cats_array = array_diff($multiple_cats_array, array('')); $multiple_cats_num = count($multiple_cats_array); foreach ($multiple_cats_array as $single_cat) { if ($single_cat !== end($multiple_cats_array)) { echo wp_kses(stripslashes($single_cat), 'post'); echo wp_kses_post($sep); } else { echo '
' . single_cat_title('', false) . '
'; } } } elseif (is_tag()) { echo '
' . single_tag_title('', false) . '
'; } elseif (is_day()) { echo '
' . esc_html($year_format) . '
' . $sep . '
' . esc_html($month_format) . '
' . $sep . '
' . esc_html($day_format) . ' (' . esc_html($day_full_format) . ')
'; } elseif (is_month()) { echo '
' . esc_html($year_format) . '
' . $sep . '
' . esc_html($month_format) . '
'; } elseif (is_year()) { echo '
' . esc_html($year_format) . '
'; } elseif (is_search()) { echo '
' . esc_html__('Search results for', 'cleanora') . ": '" . esc_html(get_search_query()) . "'
"; } elseif (is_page() && !$post->post_parent) { echo '
' . cmsmasters_title(get_the_ID(), false) . '
'; } elseif (is_page() && $post->post_parent) { $post_array = get_post_ancestors($post); krsort($post_array); foreach ($post_array as $key => $postid) { $post_ids = get_post($postid); $title = $post_ids->post_title; echo '
' . esc_html($title) . '
' . $sep; } echo '
' . cmsmasters_title(get_the_ID(), false) . '
'; } elseif (is_author()) { echo '
' . esc_html(get_the_author()) . '
'; } elseif (is_tax('post_format')) { if (is_tax('post_format', 'post-format-gallery')) { echo '
' . esc_html_x('Galleries', 'post format archive title', 'cleanora') . '
'; } elseif (is_tax('post_format', 'post-format-image')) { echo '
' . esc_html_x('Images', 'post format archive title', 'cleanora') . '
'; } elseif (is_tax('post_format', 'post-format-video')) { echo '
' . esc_html_x('Videos', 'post format archive title', 'cleanora') . '
'; } elseif (is_tax('post_format', 'post-format-audio')) { echo '
' . esc_html_x('Audio', 'post format archive title', 'cleanora') . '
'; } } elseif (is_post_type_archive()) { echo '
' . esc_html(post_type_archive_title('', false)) . '
'; } elseif (is_tax()) { echo '
' . esc_html(single_term_title('', false)) . '
'; } else { echo '
' . esc_html__('No breadcrumbs', 'cleanora') . '
'; } }