PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 4.8.7
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v4.8.7
4.9.2 4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 4.3.1 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 trunk 0.1.2-beta 0.1.3-beta 0.1.4-beta 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.8.0 1.8.1 1.9.0
shopengine / widgets / related / screens / default.php
shopengine / widgets / related / screens Last commit date
default.php 7 months ago
default.php
142 lines
1 <?php defined('ABSPATH') || exit;
2
3 $editor_mode = (\Elementor\Plugin::$instance->editor->is_edit_mode() || is_preview());
4
5 if($editor_mode) {
6
7 global $wp_query, $post;
8 $main_query = clone $wp_query;
9 $main_post = clone $post;
10
11 $wp_query = new \WP_Query([]);
12 }
13
14 \ShopEngine\Widgets\Widget_Helper::instance()->wc_template_filter();
15
16 \ShopEngine\Widgets\Widget_Helper::instance()->wc_template_part_filter();
17
18 ?>
19
20 <?php
21 // woostify theme compatibility
22 $theme_name = get_template();
23 if ($theme_name == 'woostify') {
24
25 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_loop_product_wrapper_open', 10 );
26 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_print_out_of_stock_label', 15 );
27 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_loop_product_image_wrapper_open', 20 );
28 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_change_sale_flash', 23 );
29 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_product_loop_item_action', 25 );
30 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_loop_product_link_open', 30 );
31 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_loop_product_hover_image', 40 );
32 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_loop_product_image', 50 );
33 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_loop_product_link_close', 60 );
34 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_loop_product_add_to_cart_on_image', 70 );
35 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_product_loop_item_wishlist_icon_bottom', 80 );
36 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_loop_product_image_wrapper_close', 90 );
37 remove_action( 'woocommerce_before_shop_loop_item_title', 'woostify_loop_product_content_open', 100 );
38
39 remove_action( 'woocommerce_shop_loop_item_title', 'woostify_add_template_loop_product_category', 5 );
40 remove_action( 'woocommerce_shop_loop_item_title', 'woostify_add_template_loop_product_title', 10 );
41
42 remove_action( 'woocommerce_after_shop_loop_item_title', 'woostify_loop_product_rating', 2 );
43 remove_action( 'woocommerce_after_shop_loop_item_title', 'woostify_loop_product_meta_open', 5 );
44 remove_action( 'woocommerce_after_shop_loop_item_title', 'woostify_loop_product_price', 10 );
45
46 remove_action( 'woocommerce_after_shop_loop_item', 'woostify_loop_product_add_to_cart_button', 10 );
47 remove_action( 'woocommerce_after_shop_loop_item', 'woostify_loop_product_meta_close', 20 );
48 remove_action( 'woocommerce_after_shop_loop_item', 'woostify_loop_product_content_close', 50 );
49 remove_action( 'woocommerce_after_shop_loop_item', 'woostify_loop_product_wrapper_close', 100 );
50 }
51
52 ?>
53
54 <?php
55 if ( is_plugin_active( 'iconic-woo-image-swap/iconic-woo-image-swap.php' ) )
56 {
57 global $iconic_woo_image_swap_class;
58 remove_action('woocommerce_before_shop_loop_item',array($iconic_woo_image_swap_class,'template_loop_product_thumbnail'),5);
59
60 }
61
62 if (is_plugin_active('auxin-shop/auxin-shop.php')) {
63
64 remove_action( 'woocommerce_after_shop_loop_item_title', 'auxshp_loop_product_meta', 12 );
65 remove_action( 'woocommerce_after_shop_loop_item' , 'auxshp_loop_product_tools', 12 );
66 remove_action( 'woocommerce_archive_description' , 'auxshp_archive_page_title_description', 1 );
67 remove_action( 'woocommerce_before_shop_loop_item_title', 'auxshp_get_product_thumbnail', 11 );
68
69 global $wp_filter;
70 if (isset($wp_filter['woocommerce_after_single_product']) &&
71 isset($wp_filter['woocommerce_after_single_product']->callbacks[20]) &&
72 is_array($wp_filter['woocommerce_after_single_product']->callbacks[20])) {
73 foreach ($wp_filter['woocommerce_after_single_product']->callbacks[20] as $key => $callback) {
74 if (is_array($callback['function']) &&
75 is_object($callback['function'][0]) &&
76 get_class($callback['function'][0]) === 'AUXSHP_Template_Loader' &&
77 $callback['function'][1] === 'auxshp_related_products') {
78 unset($wp_filter['woocommerce_after_single_product']->callbacks[20][$key]);
79 }
80 }
81 }
82 }
83 ?>
84
85 <?php
86 //blocksy theme conflict issue
87 $themeName = get_template();
88 if($themeName == 'blocksy'):?>
89 <?php remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); ?>
90 <?php endif;
91 ?>
92
93 <div class="shopengine-related <?php echo ($is_slider_enable ? 'slider-enabled' : 'slider-disabled'); ?>" data-controls="<?php echo esc_attr($encode_slider_options); ?>">
94
95 <?php
96 $relatedProduct = $args['related_products'];
97
98 if(empty($relatedProduct)) {
99
100 if( $shopengine_related_product_hide_if_products_not_found == 'yes' ) {
101 return;
102 } ?>
103
104 <p style="font-size: 18px; font-weight:600"><?php echo esc_html__('No related products found.', 'shopengine'); ?></p>
105 <?php
106 } else{
107 if( $shopengine_related_product_show_products_heading && $shopengine_related_product_show_products_heading == 'yes' ){ ?>
108 <h2 class="shopengine-related-products-heading-title"><?php echo esc_html( $shopengine_related_product_show_products_heading_title ?? ''); ?></h2>
109 <?php }
110 woocommerce_related_products($args);
111 if($is_slider_enable && $shopengine_related_product_slider_show_dots) {
112 echo '<div class="swiper-pagination" style="width: 100%;"></div>';
113 }
114
115 if($is_slider_enable && $shopengine_related_product_slider_show_arrows) {
116 shopengine_content_render(
117 sprintf(
118 '<div class="swiper-button-prev">%1$s</div><div class="swiper-button-next">%2$s</div>',
119 $this->get_icon_html($shopengine_related_product_slider_left_arrow_icon),
120 $this->get_icon_html($shopengine_related_product_slider_right_arrow_icon)
121 )
122 );
123 }
124 }
125
126
127
128
129 ?>
130 </div>
131
132 <?php
133
134 if($editor_mode) {
135 global $wp_query, $post;
136
137 $wp_query = $main_query;
138 $post = $main_post;
139 wp_reset_query();
140 wp_reset_postdata();
141 }
142