PATH:
home
/
letacommog
/
lesfinessaveurs
/
wp-content
/
themes
/
Avada
/
templates
<?php /** * WooCommerce thumbnail template (classic mode). * * @author ThemeFusion * @copyright (c) Copyright by ThemeFusion * @link http://theme-fusion.com * @package Avada * @subpackage Core * @since 5.1.0 */ global $product, $woocommerce; $items_in_cart = array(); if ( $woocommerce->cart && $woocommerce->cart->get_cart() && is_array( $woocommerce->cart->get_cart() ) ) { foreach ( $woocommerce->cart->get_cart() as $cart ) { $items_in_cart[] = $cart['product_id']; } } $id = get_the_ID(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited $in_cart = in_array( $id, $items_in_cart ); $size = 'shop_catalog'; $attachment_image = ''; if ( Avada()->settings->get( 'woocommerce_disable_crossfade_effect' ) ) { $gallery = get_post_meta( $id, '_product_image_gallery', true ); if ( ! empty( $gallery ) ) { $gallery = explode( ',', $gallery ); $first_image_id = $gallery[0]; $attachment_image = wp_get_attachment_image( $first_image_id, $size, false, array( 'class' => 'hover-image', ) ); } } $thumb_image = get_the_post_thumbnail( $id, $size ); if ( ! $thumb_image && wc_placeholder_img_src() ) { $thumb_image = wc_placeholder_img( $size ); } $classes = 'featured-image'; if ( $attachment_image ) { $classes = 'crossfade-images'; } ?> <div class="<?php echo esc_attr( $classes ); ?>"> <?php echo $attachment_image; // WPCS: XSS ok. ?> <?php echo $thumb_image; // WPCS: XSS ok. ?> <?php if ( $in_cart ) : ?> <div class="cart-loading"><i class="fusion-icon-check-square-o"></i></div> <?php else : ?> <div class="cart-loading"><i class="fusion-icon-spinner"></i></div> <?php endif; ?> </div>
[+]
..
[-] side-header.php
[edit]
[-] sidebar-2.php
[edit]
[-] header-v5.php
[edit]
[-] header-v2.php
[edit]
[-] logo.php
[edit]
[-] header-1.php
[edit]
[-] wc-top-user-container.php
[edit]
[-] wc-before-shop-item-buttons.php
[edit]
[-] wc-product-title.php
[edit]
[-] privacy-bar.php
[edit]
[-] menu-mobile-flyout.php
[edit]
[-] wc-thumbnail-clean.php
[edit]
[-] related-posts.php
[edit]
[-] wc-product-search-form.php
[edit]
[-] wc-before-single-product-summary-close.php
[edit]
[-] pages-rich-snippets.php
[edit]
[-] wc-show-details-button.php
[edit]
[-] blog-post-date.php
[edit]
[-] footer-content.php
[edit]
[-] title-bar.php
[edit]
[-] wc-after-shop-item-buttons.php
[edit]
[-] social-sharing.php
[edit]
[-] wc-product-loop-outofstock-flash.php
[edit]
[-] header-secondary-main-menu.php
[edit]
[-] wc-cart-shipping-calc.php
[edit]
[-] header-v3.php
[edit]
[-] layerslider.php
[edit]
[-] header-v4.php
[edit]
[-] wc-before-shop-loop-item-title-close.php
[edit]
[-] wc-after-single-product-summary.php
[edit]
[-] wc-view-order.php
[edit]
[-] blog-layout.php
[edit]
[-] wc-stock.php
[edit]
[-] post-format-box.php
[edit]
[-] wc-rollover-buttons-linebreak.php
[edit]
[-] footer-social-icons.php
[edit]
[-] footer-copyright-notice.php
[edit]
[-] wc-catalog-ordering.php
[edit]
[-] wc-add-product-wrappers-open.php
[edit]
[-] wc-before-shop-loop-item-title-open.php
[edit]
[-] wc-proceed-to-checkout.php
[edit]
[-] menu-mobile-search.php
[edit]
[-] wc-after-container.php
[edit]
[-] elasticslider.php
[edit]
[-] wc-thumbnail-classic.php
[edit]
[-] header-4.php
[edit]
[-] wc-cart-collaterals.php
[edit]
[-] header-3.php
[edit]
[-] revslider.php
[edit]
[-] wc-before-single-product-summary-open.php
[edit]
[-] header-v7.php
[edit]
[-] wc-before-checkout-form.php
[edit]
[-] author-info.php
[edit]
[-] menu-mobile-modern.php
[edit]
[-] wc-checkout-coupon-form.php
[edit]
[-] wc-single-title.php
[edit]
[-] wc-add-product-wrappers-close.php
[edit]
[-] header-v1.php
[edit]
[-] sidebar-1.php
[edit]
[-] header-v6.php
[edit]
[-] header-secondary.php
[edit]
[-] header-2.php
[edit]
[-] header-content-3.php
[edit]
[-] menu-mobile-main.php
[edit]
[-] wc-add-product-border.php
[edit]