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-product-summary/block.php +20 -10 2.9.0 → 2.14.0 View file →
@@ -26,63 +26,73 @@
26 26 $css_generator->add_class_styles(
27 27 '{{WRAPPER}} .storeengine-single__title',
28 28 $this->get_product_title_css( $attributes ),
29 29 $this->get_product_title_css( $attributes, 'Tablet' ),
30 - $this->get_product_title_css( $attributes, 'Mobile' )
30 + $this->get_product_title_css( $attributes, 'Mobile' ),
31 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_product_title_css( $attributes, $device ); } )
31 32 );
32 33 $css_generator->add_class_styles(
33 34 '{{WRAPPER}} .storeengine-single__title:hover',
34 35 $this->get_product_title_hover_css( $attributes ),
35 36 $this->get_product_title_hover_css( $attributes, 'Tablet' ),
36 - $this->get_product_title_hover_css( $attributes, 'Mobile' )
37 + $this->get_product_title_hover_css( $attributes, 'Mobile' ),
38 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_product_title_hover_css( $attributes, $device ); } )
37 39 );
38 40 $css_generator->add_class_styles(
39 41 '{{WRAPPER}} .storeengine-single-product-simple-price .storeengine-price',
40 42 $this->get_product_price_css( $attributes ),
41 43 $this->get_product_price_css( $attributes, 'Tablet' ),
42 - $this->get_product_price_css( $attributes, 'Mobile' )
44 + $this->get_product_price_css( $attributes, 'Mobile' ),
45 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_product_price_css( $attributes, $device ); } )
43 46 );
44 47 $css_generator->add_class_styles(
45 48 '{{WRAPPER}} .storeengine-single-product-simple-price .storeengine-price:hover',
46 49 $this->get_product_price_hover_css( $attributes ),
47 50 $this->get_product_price_hover_css( $attributes, 'Tablet' ),
48 - $this->get_product_price_hover_css( $attributes, 'Mobile' )
51 + $this->get_product_price_hover_css( $attributes, 'Mobile' ),
52 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_product_price_hover_css( $attributes, $device ); } )
49 53 );
50 54 $css_generator->add_class_styles(
51 55 '{{WRAPPER}} .storeengine-single-product-quantity input[type=number]',
52 56 $this->get_input_box_css( $attributes ),
53 57 $this->get_input_box_css( $attributes, 'Tablet' ),
54 - $this->get_input_box_css( $attributes, 'Mobile' )
58 + $this->get_input_box_css( $attributes, 'Mobile' ),
59 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_input_box_css( $attributes, $device ); } )
55 60 );
56 61 $css_generator->add_class_styles(
57 62 '{{WRAPPER}} .storeengine-single-product-quantity input[type=number]:hover',
58 63 $this->get_input_box_hover_css( $attributes ),
59 64 $this->get_input_box_hover_css( $attributes, 'Tablet' ),
60 - $this->get_input_box_hover_css( $attributes, 'Mobile' )
65 + $this->get_input_box_hover_css( $attributes, 'Mobile' ),
66 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_input_box_hover_css( $attributes, $device ); } )
61 67 );
62 68 $css_generator->add_class_styles(
63 69 '{{WRAPPER}} .storeengine-btn--direct-checkout',
64 70 $this->get_button_css( $attributes ),
65 71 $this->get_button_css( $attributes, 'Tablet' ),
66 - $this->get_button_css( $attributes, 'Mobile' )
72 + $this->get_button_css( $attributes, 'Mobile' ),
73 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_button_css( $attributes, $device ); } )
67 74 );
68 75 $css_generator->add_class_styles(
69 76 '{{WRAPPER}} .storeengine-btn--direct-checkout:hover',
70 77 $this->get_button_hover_css( $attributes ),
71 78 $this->get_button_hover_css( $attributes, 'Tablet' ),
72 - $this->get_button_hover_css( $attributes, 'Mobile' )
79 + $this->get_button_hover_css( $attributes, 'Mobile' ),
80 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_button_hover_css( $attributes, $device ); } )
73 81 );
74 82 $css_generator->add_class_styles(
75 83 '{{WRAPPER}} .storeengine-ajax-add-to-cart-form__entry-footer .storeengine-btn--add-to-cart',
76 84 $this->get_add_button_css( $attributes ),
77 85 $this->get_add_button_css( $attributes, 'Tablet' ),
78 - $this->get_add_button_css( $attributes, 'Mobile' )
86 + $this->get_add_button_css( $attributes, 'Mobile' ),
87 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_add_button_css( $attributes, $device ); } )
79 88 );
80 89 $css_generator->add_class_styles(
81 90 '{{WRAPPER}} .storeengine-ajax-add-to-cart-form__entry-footer .storeengine-btn--add-to-cart:hover',
82 91 $this->get_add_hover_button_css( $attributes ),
83 92 $this->get_add_hover_button_css( $attributes, 'Tablet' ),
84 - $this->get_add_hover_button_css( $attributes, 'Mobile' )
93 + $this->get_add_hover_button_css( $attributes, 'Mobile' ),
94 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_add_hover_button_css( $attributes, $device ); } )
85 95 );
86 96
87 97 return $css_generator->generate_css();
88 98 }