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-cart-notice/block.php +12 -6 2.11.1 → 2.14.0 View file →
@@ -26,15 +26,17 @@
26 26 $css_generator->add_class_styles(
27 27 '{{WRAPPER}} .storeengine-notice--info',
28 28 $this->get_notice_css( $attributes ),
29 29 $this->get_notice_css( $attributes, 'Tablet' ),
30 - $this->get_notice_css( $attributes, 'Mobile' )
30 + $this->get_notice_css( $attributes, 'Mobile' ),
31 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_notice_css( $attributes, $device ); } )
31 32 );
32 33 $css_generator->add_class_styles(
33 34 '{{WRAPPER}} .storeengine-notice--info:hover',
34 35 $this->get_notice_Hover_css( $attributes ),
35 36 $this->get_notice_Hover_css( $attributes, 'Tablet' ),
36 - $this->get_notice_Hover_css( $attributes, 'Mobile' )
37 + $this->get_notice_Hover_css( $attributes, 'Mobile' ),
38 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_notice_Hover_css( $attributes, $device ); } )
37 39 );
38 40 $css_generator->add_class_styles(
39 41 '{{WRAPPER}} .storeengine-notice .storeengine-notice--message p,
40 42 {{WRAPPER}} .storeengine-notice .storeengine-notice--message i',
@@ -39,9 +41,10 @@
39 41 '{{WRAPPER}} .storeengine-notice .storeengine-notice--message p,
40 42 {{WRAPPER}} .storeengine-notice .storeengine-notice--message i',
41 43 $this->get_notice_massage_css( $attributes ),
42 44 $this->get_notice_massage_css( $attributes, 'Tablet' ),
43 - $this->get_notice_massage_css( $attributes, 'Mobile' )
45 + $this->get_notice_massage_css( $attributes, 'Mobile' ),
46 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_notice_massage_css( $attributes, $device ); } )
44 47 );
45 48
46 49 $css_generator->add_class_styles(
47 50 '{{WRAPPER}} .storeengine-notice a,
@@ -47,9 +50,10 @@
47 50 '{{WRAPPER}} .storeengine-notice a,
48 51 {{WRAPPER}} .storeengine-notice button',
49 52 $this->get_notice_link_css( $attributes ),
50 53 $this->get_notice_link_css( $attributes, 'Tablet' ),
51 - $this->get_notice_link_css( $attributes, 'Mobile' )
54 + $this->get_notice_link_css( $attributes, 'Mobile' ),
55 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_notice_link_css( $attributes, $device ); } )
52 56 );
53 57
54 58 $css_generator->add_class_styles(
55 59 '{{WRAPPER}} .storeengine-notice a:hover,
@@ -55,9 +59,10 @@
55 59 '{{WRAPPER}} .storeengine-notice a:hover,
56 60 {{WRAPPER}} .storeengine-notice button:hover',
57 61 $this->get_notice_link_hover_css( $attributes ),
58 62 $this->get_notice_link_hover_css( $attributes, 'Tablet' ),
59 - $this->get_notice_link_hover_css( $attributes, 'Mobile' )
63 + $this->get_notice_link_hover_css( $attributes, 'Mobile' ),
64 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_notice_link_hover_css( $attributes, $device ); } )
60 65 );
61 66 $css_generator->add_class_styles(
62 67 '{{WRAPPER}}.ablocks-block--storeengine-cart-notice:not(.ablocks-block-container),
63 68 {{WRAPPER}}.ablocks-block--storeengine-cart-notice .ablocks-block-container',
@@ -62,9 +67,10 @@
62 67 '{{WRAPPER}}.ablocks-block--storeengine-cart-notice:not(.ablocks-block-container),
63 68 {{WRAPPER}}.ablocks-block--storeengine-cart-notice .ablocks-block-container',
64 69 $this->get_notice_wrapper_css( $attributes ),
65 70 $this->get_notice_wrapper_css( $attributes, 'Tablet' ),
66 - $this->get_notice_wrapper_css( $attributes, 'Mobile' )
71 + $this->get_notice_wrapper_css( $attributes, 'Mobile' ),
72 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_notice_wrapper_css( $attributes, $device ); } )
67 73 );
68 74 return $css_generator->generate_css();
69 75 }
70 76