PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
← All changes | includes/blocks/storeengine-products/block.php +12 -6 2.8.1 → 2.14.0 View file →
@@ -25,9 +25,10 @@
25 25 $css_generator->add_class_styles(
26 26 '{{WRAPPER}} .storeengine-products--grid .storeengine-products__body .storeengine-row .storeengine-product',
27 27 $this->get_products_card_css( $attributes ),
28 28 $this->get_products_card_css( $attributes, 'Tablet' ),
29 - $this->get_products_card_css( $attributes, 'Mobile' )
29 + $this->get_products_card_css( $attributes, 'Mobile' ),
30 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_products_card_css( $attributes, $device ); } )
30 31 );
31 32
32 33 $css_generator->add_class_styles(
33 34 '{{WRAPPER}} .storeengine-products--grid .storeengine-products__body .storeengine-row .storeengine-product:hover',
@@ -32,9 +33,10 @@
32 33 $css_generator->add_class_styles(
33 34 '{{WRAPPER}} .storeengine-products--grid .storeengine-products__body .storeengine-row .storeengine-product:hover',
34 35 $this->get_products_card_hover_css( $attributes ),
35 36 $this->get_products_card_hover_css( $attributes, 'Tablet' ),
36 - $this->get_products_card_hover_css( $attributes, 'Mobile' )
37 + $this->get_products_card_hover_css( $attributes, 'Mobile' ),
38 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_products_card_hover_css( $attributes, $device ); } )
37 39 );
38 40 $css_generator->add_class_styles(
39 41 '{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title,
40 42 {{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title a',
@@ -39,9 +41,10 @@
39 41 '{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title,
40 42 {{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title a',
41 43 $this->get_products_card_title_css( $attributes ),
42 44 $this->get_products_card_title_css( $attributes, 'Tablet' ),
43 - $this->get_products_card_title_css( $attributes, 'Mobile' )
45 + $this->get_products_card_title_css( $attributes, 'Mobile' ),
46 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_products_card_title_css( $attributes, $device ); } )
44 47 );
45 48 $css_generator->add_class_styles(
46 49 '{{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title:hover,
47 50 {{WRAPPER}} .storeengine-products--grid .storeengine-row .storeengine-product .storeengine-product__body .storeengine-product__title:hover a',
@@ -50,15 +53,17 @@
50 53 $css_generator->add_class_styles(
51 54 '{{WRAPPER}} .storeengine-ajax__amount .storeengine-product__simple-price',
52 55 $this->get_products_price_css( $attributes ),
53 56 $this->get_products_price_css( $attributes, 'Tablet' ),
54 - $this->get_products_price_css( $attributes, 'Mobile' )
57 + $this->get_products_price_css( $attributes, 'Mobile' ),
58 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_products_price_css( $attributes, $device ); } )
55 59 );
56 60 $css_generator->add_class_styles(
57 61 '{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn',
58 62 $this->get_products_cart_button_css( $attributes ),
59 63 $this->get_products_cart_button_css( $attributes, 'Tablet' ),
60 - $this->get_products_cart_button_css( $attributes, 'Mobile' )
64 + $this->get_products_cart_button_css( $attributes, 'Mobile' ),
65 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_products_cart_button_css( $attributes, $device ); } )
61 66 );
62 67
63 68 $css_generator->add_class_styles(
64 69 '{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn:hover',
@@ -63,9 +68,10 @@
63 68 $css_generator->add_class_styles(
64 69 '{{WRAPPER}} .storeengine-add-to-cart-buttons .storeengine-btn:hover',
65 70 $this->get_products_cart_button_hover_css( $attributes ),
66 71 $this->get_products_cart_button_hover_css( $attributes, 'Tablet' ),
67 - $this->get_products_cart_button_hover_css( $attributes, 'Mobile' )
72 + $this->get_products_cart_button_hover_css( $attributes, 'Mobile' ),
73 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_products_cart_button_hover_css( $attributes, $device ); } )
68 74 );
69 75 return $css_generator->generate_css();
70 76
71 77 }