WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / themes / bootscore / inc / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/themes/bootscore/inc/breadcrumb.php (6.2 KB)
<?php

/**
 * Breadcrumb
 *
 * @package Bootscore
 * @version 6.5.0
 */


// Exit if accessed directly
defined('ABSPATH') || exit;


/**
 * Breadcrumb
 */
if (!function_exists('the_breadcrumb')) :
  function the_breadcrumb() {

    if (is_home()) {
      return;
    }

    echo '<nav aria-label="breadcrumb" class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/nav', 'overflow-x-auto text-nowrap mb-4 mt-2 py-2 px-3 bg-body-tertiary rounded')) . '">' . PHP_EOL;
    echo '<ol class="breadcrumb ' . esc_attr(apply_filters('bootscore/class/breadcrumb/ol', 'flex-nowrap mb-0')) . '">' . PHP_EOL;

    // Home link
    echo '<li class="breadcrumb-item"><a aria-label="' . esc_attr__('Home', 'bootscore') . '" class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(home_url()) . '">' . wp_kses_post(apply_filters('bootscore/icon/home', '<i class="fa-solid fa-house" aria-hidden="true"></i>')) . '<span class="visually-hidden">' . esc_html__('Home', 'bootscore') . '</span></a></li>' . PHP_EOL;
    
    // Hook for custom breadcrumb handlers (WooCommerce, other CPTs, etc.)
    // If any handler returns true, it means it handled the breadcrumb and we should stop
    $handled = apply_filters('bootscore/breadcrumb/handler', false);
    
    if (!$handled) {
      // ===== DEFAULT WORDPRESS PAGES =====
      // Category archive
      if (is_category()) {
        $current_cat_id = get_queried_object_id();
        if ($current_cat_id) {
          $ancestors = array_reverse(get_ancestors($current_cat_id, 'category'));
          foreach ($ancestors as $ancestor_id) {
            $ancestor = get_category($ancestor_id);
            if ($ancestor && !is_wp_error($ancestor)) {
              echo '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(get_term_link($ancestor)) . '">' . esc_html($ancestor->name) . '</a></li>' . PHP_EOL;
            }
          }
          // current category as text only
          echo '<li class="breadcrumb-item active" aria-current="page">' . esc_html(single_cat_title('', false)) . '</li>' . PHP_EOL;
        }
      }
      
      // Custom Post Type Archive (default handling)
      elseif (is_post_type_archive()) {
        $archive_title = preg_replace('/^\w+: /', '', get_the_archive_title());
        echo '<li class="breadcrumb-item active" aria-current="page">' . esc_html(wp_strip_all_tags($archive_title)) . '</li>' . PHP_EOL;
      }
      
      // Single post (regular posts and custom post types)
      elseif (is_single()) {
        $post_type = get_post_type();
        $post_type_obj = get_post_type_object($post_type);
        
        // Show CPT archive link if it has an archive (default CPT handling)
        if ($post_type !== 'post' && $post_type_obj && $post_type_obj->has_archive) {
          $archive_link = get_post_type_archive_link($post_type);
          $archive_title = $post_type_obj->labels->name;
          
          if ($archive_link) {
            echo '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url($archive_link) . '">' . esc_html($archive_title) . '</a></li>' . PHP_EOL;
          }
        }
        // Regular posts - show categories
        elseif ($post_type === 'post') {
          $cat_ids = wp_get_post_categories(get_the_ID());
          foreach ($cat_ids as $cat_id) {
            $cat = get_category($cat_id);
            if ($cat && !is_wp_error($cat)) {
              echo '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(get_term_link($cat)) . '">' . esc_html($cat->name) . '</a></li>' . PHP_EOL;
            }
          }
        }
        
        // Current post title
        echo '<li class="breadcrumb-item active" aria-current="page">' . esc_html(get_the_title()) . '</li>' . PHP_EOL;
      }
      
      // Pages, handle parent pages and current page
      elseif (is_page()) {
        $parent_id = wp_get_post_parent_id(get_the_ID());
        
        if ($parent_id) {
          $parents = array();
          while ($parent_id) {
            $page = get_post($parent_id);
            if ($page && !is_wp_error($page)) {
              $parents[] = '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(get_permalink($page->ID)) . '">' . esc_html(get_the_title($page->ID)) . '</a></li>' . PHP_EOL;
              $parent_id = wp_get_post_parent_id($page->ID);
            } else {
              break;
            }
          }
          $parents = array_reverse($parents);
          echo implode('', $parents);
        }

        // Display the current page title (active breadcrumb item)
        echo '<li class="breadcrumb-item active" aria-current="page">' . esc_html(get_the_title()) . '</li>' . PHP_EOL;
      }
      
      // Search results
      elseif (is_search()) {
        echo '<li class="breadcrumb-item active" aria-current="page">' . 
         sprintf(
           /* translators: %s: search query */
           esc_html__('Search Results for: %s', 'bootscore'),
           esc_html(get_search_query())
         ) . 
         '</li>' . PHP_EOL;
      }
      
      // Other archives (tags, custom taxonomies, date, author) - MUST BE LAST
      elseif (is_archive()) {
        echo '<li class="breadcrumb-item active" aria-current="page">' . 
             wp_strip_all_tags(get_the_archive_title()) . 
             '</li>' . PHP_EOL;
      }
    }

    echo '</ol>' . PHP_EOL;
    echo '</nav>' . PHP_EOL;
  }

endif; // End of the_breadcrumb() function


/**
 * Breadcrumb Shortcode
 * Usage: [bs-breadcrumb]
 * 
 * Displays the breadcrumb navigation within content areas.
 * Useful for widget areas or the Page Blank template where breadcrumbs cannot be added via action hook.
 */
if (!function_exists('bootscore_breadcrumb_shortcode')) {
  function bootscore_breadcrumb_shortcode($atts) {
    // Skip in admin to prevent JSON errors during editor saves
    if (is_admin()) {
      return '';
    }
    
    ob_start();
    the_breadcrumb();
    return ob_get_clean();
  }
  add_shortcode('bs-breadcrumb', 'bootscore_breadcrumb_shortcode');
}
namawaktuukuranownerpermaksi
..
blocks/ 2026-11-26 08:1919.5 KB 76129f60960:kundendxwrx-rx-r
scssphp/ 2026-11-26 08:19549.31 KB 76129f60960:kundendxwrx-rx-r
update/ 2026-11-26 08:19380.49 KB 76129f60960:kundendxwrx-rx-r
updater/ 2026-11-26 08:1925.44 KB 76129f60960:kundendxwrx-rx-r
breadcrumb.php 2026-11-26 08:196.2 KB 76129f60960:kunden-xw-x--x--
edt
columns.php 2026-11-26 08:19703 B 76129f60960:kunden-xw-x--x--
edt
comments.php 2026-11-26 08:195.27 KB 76129f60960:kunden-xw-x--x--
edt
deprecated.php 2026-11-26 08:19132 B 76129f60960:kunden-xw-x--x--
edt
enable-html.php 2026-11-26 08:19642 B 76129f60960:kunden-xw-x--x--
edt
enqueue.php 2026-11-26 08:193.59 KB 76129f60960:kunden-xw-x--x--
edt
excerpt.php 2026-11-26 08:19200 B 76129f60960:kunden-xw-x--x--
edt
fontawesome.php 2026-11-26 08:191.02 KB 76129f60960:kunden-xw-x--x--
edt
jetpack.php 2026-11-26 08:191.47 KB 76129f60960:kunden-xw-x--x--
edt
navmenu.php 2026-11-26 08:19681 B 76129f60960:kunden-xw-x--x--
edt
navwalker.php 2026-11-26 08:196.97 KB 76129f60960:kunden-xw-x--x--
edt
pagination.php 2026-11-26 08:193.01 KB 76129f60960:kunden-xw-x--x--
edt
password-protected-form.php 2026-11-26 08:19864 B 76129f60960:kunden-xw-x--x--
edt
scss-compiler.php 2026-11-26 08:197.26 KB 76129f60960:kunden-xw-x--x--
edt
template-functions.php 2026-11-26 08:191005 B 76129f60960:kunden-xw-x--x--
edt
template-tags.php 2026-11-26 08:198.87 KB 76129f60960:kunden-xw-x--x--
edt
theme-setup.php 2026-11-26 08:192.71 KB 76129f60960:kunden-xw-x--x--
edt
tinymce-editor.php 2026-11-26 08:19841 B 76129f60960:kunden-xw-x--x--
edt
widgets.php 2026-11-26 08:195.97 KB 76129f60960:kunden-xw-x--x--
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/themes/bootscore/inc
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK