Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web284/html/wp-content/themes/splendor/woocommerce/ |
Current File : //var/www/web284/html/wp-content/themes/splendor/woocommerce/content-product_cat.php |
<?php /** * The template for displaying product category thumbnails within loops. * * Override this template by copying it to yourtheme/woocommerce/content-product_cat.php * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $woocommerce_loop; // Store loop count we're currently on if ( empty( $woocommerce_loop['loop'] ) ) $woocommerce_loop['loop'] = 0; // Store column count for displaying the grid if ( empty( $woocommerce_loop['columns'] ) ) $woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 ); // Increase loop count $woocommerce_loop['loop']++; // Extra post classes $classes = array(); if ( 0 == ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] || 1 == $woocommerce_loop['columns'] ) $classes[] = 'first'; if ( 0 == $woocommerce_loop['loop'] % $woocommerce_loop['columns'] ) $classes[] = 'last'; if ($woocommerce_loop['columns'] == 4) {array_push($classes, "span3 sp_filt");}; if ($woocommerce_loop['columns'] == 3) {array_push($classes, "span4 sp_filt");}; array_push($classes, "product-category"); ?> <li <?php post_class( $classes ); ?>> <?php do_action( 'woocommerce_before_subcategory', $category ); ?> <a href="<?php echo get_term_link( $category->slug, 'product_cat' ); ?>"> <?php /** * woocommerce_before_subcategory_title hook * * @hooked woocommerce_subcategory_thumbnail - 10 */ do_action( 'woocommerce_before_subcategory_title', $category ); ?> </a> <div class="oi_cat_title"> <h4><a href="<?php echo get_term_link( $category->slug, 'product_cat' ); ?>"><?php echo $category->name; ?></a></h4> <div class="oi_mark_count"><?php if ( $category->count > 0 )echo apply_filters( 'woocommerce_subcategory_count_html', '<mark class="count">Products: ' . $category->count . '</mark>', $category );?></div> </div> <?php /** * woocommerce_after_subcategory_title hook */ do_action( 'woocommerce_after_subcategory_title', $category ); ?> <?php do_action( 'woocommerce_after_subcategory', $category ); ?> </li>
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare