'; global $product, $post; $current_product = $product; $product_id = $current_product->get_id(); $product_type = $current_product->get_type(); if( function_exists('yith_wishlist_constructor') ) { echo ' '; } if( function_exists('yith_woocompare_constructor') ) { $args = array( 'action' => 'yith-woocompare-add-product', 'id' => $product_id ); $lang = defined( 'ICL_LANGUAGE_CODE' ) ? ICL_LANGUAGE_CODE : false; if( $lang ) { $args['lang'] = $lang; } $url = esc_url_raw( add_query_arg( $args, home_url() ) ); echo 'oo'; } if( function_exists('yith_wcqv_init') ) { echo ' '; } echo ''; } /**===================================== * For Image Flip *=======================================*/ function store_hub_remove_default_image(){ remove_action( 'woocommerce_before_shop_loop_item_title','wpparallax_product_wrap', 10 ); } add_action('init','store_hub_remove_default_image'); add_action ( 'woocommerce_before_shop_loop_item_title', 'store_hub_product_thumb_wrapp',10); if( ! function_exists('store_hub_product_thumb_wrapp') ){ function store_hub_product_thumb_wrapp(){ $is_flip = get_theme_mod('shop_image_flip','true'); $gallery = get_post_meta(get_the_ID(), '_product_image_gallery', true); if($gallery == '' || $is_flip == false){ $class = 'no-flip'; }else{ $class = 'flip'; } $size = 'shop_catalog'; echo '