WPZ

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

/**
 * WooCommerce Breadcrumb
 *
 * @package Bootscore 
 * @version 6.4.0
 */


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


/**
 * Add WooCommerce breadcrumb support
 */
function bootscore_woocommerce_breadcrumb_handler($handled) {
  
  // If already handled by another plugin, return
  if ($handled) {
    return $handled;
  }
  
  // Only handle WooCommerce pages
  if (!class_exists('WooCommerce')) {
    return $handled;
  }
  
  // WooCommerce search
  if (is_search() && get_query_var('post_type') === 'product') {
    $shop_page_id = wc_get_page_id('shop');
    if ($shop_page_id && $shop_page_id > 0) {
      echo '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(get_permalink($shop_page_id)) . '">' . esc_html(get_the_title($shop_page_id)) . '</a></li>' . PHP_EOL;
    }
    echo '<li class="breadcrumb-item active" aria-current="page">' . 
         sprintf(
           esc_html__('Search results for "%s"', 'woocommerce'),
           esc_html(get_search_query())
         ) . 
         '</li>' . PHP_EOL;
    
    return true; // Mark as handled
  }
  
  // Product category
  elseif (is_product_category()) {
    $current_term = get_queried_object();
    
    // Shop page link
    $shop_page_id = wc_get_page_id('shop');
    if ($shop_page_id && $shop_page_id > 0) {
      echo '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(get_permalink($shop_page_id)) . '">' . esc_html(get_the_title($shop_page_id)) . '</a></li>' . PHP_EOL;
    }
    
    // Parent categories
    if ($current_term->parent) {
      $ancestors = array_reverse(get_ancestors($current_term->term_id, 'product_cat'));
      foreach ($ancestors as $ancestor_id) {
        $ancestor = get_term($ancestor_id, 'product_cat');
        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
    echo '<li class="breadcrumb-item active" aria-current="page">' . esc_html($current_term->name) . '</li>' . PHP_EOL;
    
    return true; // Mark as handled
  }
  
  // Product tag
  elseif (is_product_tag()) {
    $current_term = get_queried_object();
    
    // Shop page link
    $shop_page_id = wc_get_page_id('shop');
    if ($shop_page_id && $shop_page_id > 0) {
      echo '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(get_permalink($shop_page_id)) . '">' . esc_html(get_the_title($shop_page_id)) . '</a></li>' . PHP_EOL;
    }
    
    // Current tag - WooCommerce format with curly quotes
    echo '<li class="breadcrumb-item active" aria-current="page">' . 
         sprintf(
           /* translators: %s: product tag name */
           esc_html__('Products tagged &ldquo;%s&rdquo;', 'woocommerce'),
           esc_html($current_term->name)
         ) . 
         '</li>' . PHP_EOL;
    
    return true; // Mark as handled
  }
  
  // Product brand archive
  elseif (is_tax(array('product_brand', 'brand', 'pa_brand', 'yith_product_brand', 'pwb-brand'))) {
    $current_term = get_queried_object();
    
    // Shop page link
    $shop_page_id = wc_get_page_id('shop');
    if ($shop_page_id && $shop_page_id > 0) {
      echo '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(get_permalink($shop_page_id)) . '">' . esc_html(get_the_title($shop_page_id)) . '</a></li>' . PHP_EOL;
    }
    
    // Parent brands (if hierarchical)
    if (isset($current_term->parent) && $current_term->parent) {
      $ancestors = array_reverse(get_ancestors($current_term->term_id, $current_term->taxonomy));
      foreach ($ancestors as $ancestor_id) {
        $ancestor = get_term($ancestor_id, $current_term->taxonomy);
        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 brand
    echo '<li class="breadcrumb-item active" aria-current="page">' . 
         sprintf(
           /* translators: %s: brand name */
           esc_html__('Brand: %s', 'woocommerce'),
           esc_html($current_term->name)
         ) . 
         '</li>' . PHP_EOL;
    
    return true; // Mark as handled
  }
  
  // Single product
  elseif (is_product()) {
    // Shop page link
    $shop_page_id = wc_get_page_id('shop');
    if ($shop_page_id && $shop_page_id > 0) {
      echo '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(get_permalink($shop_page_id)) . '">' . esc_html(get_the_title($shop_page_id)) . '</a></li>' . PHP_EOL;
    }
    
    // Product categories with hierarchy
    $terms = wc_get_product_terms(get_the_ID(), 'product_cat', array(
      'orderby' => 'parent',
      'order' => 'DESC'
    ));
    
    if ($terms && !is_wp_error($terms)) {
      // Get the deepest category
      $main_term = apply_filters('woocommerce_breadcrumb_main_term', $terms[0], $terms);
      
      if ($main_term) {
        // Get ancestors
        $ancestors = get_ancestors($main_term->term_id, 'product_cat');
        $ancestors = array_reverse($ancestors);
        
        foreach ($ancestors as $ancestor_id) {
          $ancestor = get_term($ancestor_id, 'product_cat');
          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;
          }
        }
        
        // Main category
        echo '<li class="breadcrumb-item"><a class="' . esc_attr(apply_filters('bootscore/class/breadcrumb/item/link', '')) . '" href="' . esc_url(get_term_link($main_term)) . '">' . esc_html($main_term->name) . '</a></li>' . PHP_EOL;
      }
    }
    
    // Current product
    echo '<li class="breadcrumb-item active" aria-current="page">' . esc_html(get_the_title()) . '</li>' . PHP_EOL;
    
    return true; // Mark as handled
  }
  
  // Shop page
  elseif (is_shop()) {
    echo '<li class="breadcrumb-item active" aria-current="page">' . esc_html(get_the_title(wc_get_page_id('shop'))) . '</li>' . PHP_EOL;
    return true; // Mark as handled
  }
  
  // Not a WooCommerce page we handle
  return $handled;
}
add_filter('bootscore/breadcrumb/handler', 'bootscore_woocommerce_breadcrumb_handler', 10, 1);

namawaktuukuranownerpermaksi
..
blocks/ 2026-11-26 08:196.91 KB 76129f60960:kundendxwrx-rx-r
ajax-cart.php 2026-11-26 08:1919.38 KB 76129f60960:kunden-xw-x--x--
edt
wc-ajax-login.php 2026-11-26 08:194.68 KB 76129f60960:kunden-xw-x--x--
edt
wc-breadcrumb.php 2026-11-26 08:196.83 KB 76129f60960:kunden-xw-x--x--
edt
wc-cart.php 2026-11-26 08:191.35 KB 76129f60960:kunden-xw-x--x--
edt
wc-deprecated.php 2026-11-26 08:191.47 KB 76129f60960:kunden-xw-x--x--
edt
wc-enqueue.php 2026-11-26 08:192.17 KB 76129f60960:kunden-xw-x--x--
edt
wc-forms.php 2026-11-26 08:191.5 KB 76129f60960:kunden-xw-x--x--
edt
wc-loop.php 2026-11-26 08:193.82 KB 76129f60960:kunden-xw-x--x--
edt
wc-mini-cart.php 2026-11-26 08:191.35 KB 76129f60960:kunden-xw-x--x--
edt
wc-pagination.php 2026-11-26 08:192.05 KB 76129f60960:kunden-xw-x--x--
edt
wc-qty-btn.php 2026-11-26 08:193.43 KB 76129f60960:kunden-xw-x--x--
edt
wc-redirects.php 2026-11-26 08:191.59 KB 76129f60960:kunden-xw-x--x--
edt
wc-result-count.php 2026-11-26 08:191.21 KB 76129f60960:kunden-xw-x--x--
edt
wc-sale-flash.php 2026-11-26 08:19491 B 76129f60960:kunden-xw-x--x--
edt
wc-setup.php 2026-11-26 08:19608 B 76129f60960:kunden-xw-x--x--
edt
wc-single-product-reviews.php 2026-11-26 08:192.78 KB 76129f60960:kunden-xw-x--x--
edt
wc-skip-cart.php 2026-11-26 08:191.25 KB 76129f60960:kunden-xw-x--x--
edt
wc-stock-badge.php 2026-11-26 08:19706 B 76129f60960:kunden-xw-x--x--
edt
wc-tabs.php 2026-11-26 08:193.02 KB 76129f60960:kunden-xw-x--x--
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/themes/bootscore/woocommerce/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