Server IP : 192.64.112.168 / Your IP : 3.144.21.237 Web Server : Apache System : Linux nc-ph-2300-85.bluforrest.com 4.18.0-513.9.1.el8_9.x86_64 #1 SMP Sat Dec 2 05:23:44 EST 2023 x86_64 User : expressoneac ( 1128) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/expressoneac/www/wp-content/themes/woodmart/woocommerce/ |
Upload File : |
<?php /** * The template for displaying product category thumbnails within loops * * This template can be overridden by copying it to yourtheme/woocommerce/content-product-cat.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates * @version 4.7.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } $isotope = woodmart_loop_prop( 'products_masonry' ); $different_sizes = woodmart_loop_prop( 'products_different_sizes' ); $categories_design = woodmart_loop_prop( 'product_categories_design' ); $product_categories_shadow = woodmart_loop_prop( 'product_categories_shadow' ); $product_categories_style = woodmart_loop_prop( 'product_categories_style' ); $desktop_columns = woodmart_loop_prop( 'products_columns' ); $tablet_columns = woodmart_loop_prop( 'products_columns_tablet' ); $mobile_columns = woodmart_loop_prop( 'products_columns_mobile' ); $classes = array(); $hide_product_count = woodmart_get_opt( 'hide_categories_product_count' ); if ( $different_sizes ) { $isotope = true; } // Increase loop count woodmart_set_loop_prop( 'woocommerce_loop', woodmart_loop_prop( 'woocommerce_loop' ) + 1 ); $woocommerce_loop = woodmart_loop_prop( 'woocommerce_loop' ); $items_wide = woodmart_get_wide_items_array( $different_sizes ); $is_double_size = $different_sizes && in_array( $woocommerce_loop, $items_wide ); woodmart_set_loop_prop( 'double_size', $is_double_size ); if ( 'carousel' !== $product_categories_style ) { if ( ( 'auto' !== $tablet_columns && ! empty( $tablet_columns ) ) || ( 'auto' !== $mobile_columns && ! empty( $mobile_columns ) ) ) { if ( $desktop_columns == 1 ) { $mobile_columns = 1; $tablet_columns = 1; } $classes[] = woodmart_get_grid_el_class_new( $woocommerce_loop, $different_sizes, $desktop_columns, $tablet_columns, $mobile_columns ); } else { $xs_columns = woodmart_loop_prop( 'products_columns_mobile' ) ? woodmart_loop_prop( 'products_columns_mobile' ) : (int) woodmart_get_opt( 'products_columns_mobile' ); $xs_size = 12 / $xs_columns; if ( $desktop_columns == 1 ) { $xs_size = 12; } $classes[] = woodmart_get_grid_el_class( $woocommerce_loop, $desktop_columns, $different_sizes, $xs_size ); } } if ( woodmart_loop_prop( 'old_structure' ) ) { $classes[] = 'category-grid-item'; } else { $classes[] = 'wd-cat'; } $classes[] = 'cat-design-' . $categories_design; $sub_categories = ''; if ( $product_categories_shadow != 'disable' && ( $categories_design == 'alt' || $categories_design == 'default' ) ) { $classes[] = 'categories-with-shadow'; } if ( $hide_product_count ) { $classes[] = 'without-product-count'; } $template = woodmart_is_old_category_structure( $categories_design ) ? 'default' : $categories_design; if ( woodmart_loop_prop( 'product_categories_is_element' ) && 'inherit' !== woodmart_loop_prop( 'product_categories_design' ) ) { if ( ( 'mask-subcat' === woodmart_loop_prop( 'product_categories_design' ) || 'default' === woodmart_loop_prop( 'product_categories_design' ) ) && 'default' !== woodmart_loop_prop( 'product_categories_color_scheme' ) ) { $classes[] = 'color-scheme-' . woodmart_loop_prop( 'product_categories_color_scheme' ); } } else { if ( ( 'mask-subcat' === woodmart_get_opt( 'categories_design' ) || 'default' === woodmart_get_opt( 'categories_design' ) ) && 'default' !== woodmart_get_opt( 'categories_color_scheme' ) ) { $classes[] = 'color-scheme-' . woodmart_get_opt( 'categories_color_scheme' ); } } wc_get_template( 'content-product-cat-' . $template . '.php', array( 'woocommerce_loop' => $woocommerce_loop, 'classes' => $classes, 'category' => $category, 'hide_product_count' => $hide_product_count, ) );