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/coupon/block.php +27 -12 2.9.0 → 2.14.0 View file →
@@ -27,9 +27,10 @@
27 27 $css_generator->add_class_styles(
28 28 '{{WRAPPER}}',
29 29 $this->get_wrapper_css( $attributes ),
30 30 $this->get_wrapper_css( $attributes, 'Tablet' ),
31 - $this->get_wrapper_css( $attributes, 'Mobile' )
31 + $this->get_wrapper_css( $attributes, 'Mobile' ),
32 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_wrapper_css( $attributes, $device ); } )
32 33 );
33 34
34 35 $css_generator->add_class_styles(
35 36 '{{WRAPPER}} .ablocks-icon-wrap',
@@ -34,15 +35,17 @@
34 35 $css_generator->add_class_styles(
35 36 '{{WRAPPER}} .ablocks-icon-wrap',
36 37 Icon::get_wrapper_css( $attributes ),
37 38 Icon::get_wrapper_css( $attributes, 'Tablet' ),
38 - Icon::get_wrapper_css( $attributes, 'Mobile' )
39 + Icon::get_wrapper_css( $attributes, 'Mobile' ),
40 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_css( $attributes, $device ); } )
39 41 );
40 42 $css_generator->add_class_styles(
41 43 '{{WRAPPER}} .ablocks-icon-wrap:hover',
42 44 Icon::get_wrapper_hover_css( $attributes ),
43 45 Icon::get_wrapper_hover_css( $attributes, 'Tablet' ),
44 - Icon::get_wrapper_hover_css( $attributes, 'Mobile' )
46 + Icon::get_wrapper_hover_css( $attributes, 'Mobile' ),
47 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_hover_css( $attributes, $device ); } )
45 48 );
46 49
47 50 $css_generator->add_class_styles(
48 51 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
@@ -47,9 +50,10 @@
47 50 $css_generator->add_class_styles(
48 51 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
49 52 Icon::get_element_image_css( $attributes ),
50 53 Icon::get_element_image_css( $attributes, 'Tablet' ),
51 - Icon::get_element_image_css( $attributes, 'Mobile' )
54 + Icon::get_element_image_css( $attributes, 'Mobile' ),
55 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_css( $attributes, $device ); } )
52 56 );
53 57 $css_generator->add_class_styles(
54 58 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover',
55 59 Icon::get_element_image_hover_css( $attributes ),
@@ -72,9 +76,10 @@
72 76 $css_generator->add_class_styles(
73 77 '{{WRAPPER}} .ablocks-coupon-code',
74 78 $this->get_coupon_text_css( $attributes ),
75 79 $this->get_coupon_text_css( $attributes, 'Tablet' ),
76 - $this->get_coupon_text_css( $attributes, 'Mobile' )
80 + $this->get_coupon_text_css( $attributes, 'Mobile' ),
81 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coupon_text_css( $attributes, $device ); } )
77 82 );
78 83
79 84 $css_generator->add_class_styles(
80 85 '{{WRAPPER}} .ablocks-coupon-clipboard',
@@ -79,9 +84,10 @@
79 84 $css_generator->add_class_styles(
80 85 '{{WRAPPER}} .ablocks-coupon-clipboard',
81 86 $this->get_btn_text_css( $attributes ),
82 87 $this->get_btn_text_css( $attributes, 'Tablet' ),
83 - $this->get_btn_text_css( $attributes, 'Mobile' )
88 + $this->get_btn_text_css( $attributes, 'Mobile' ),
89 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_btn_text_css( $attributes, $device ); } )
84 90 );
85 91
86 92 return $css_generator->generate_css();
87 93 }
@@ -90,9 +96,10 @@
90 96 $css_generator->add_class_styles(
91 97 '{{WRAPPER}}',
92 98 $this->get_wrapper_css( $attributes ),
93 99 $this->get_wrapper_css( $attributes, 'Tablet' ),
94 - $this->get_wrapper_css( $attributes, 'Mobile' )
100 + $this->get_wrapper_css( $attributes, 'Mobile' ),
101 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_wrapper_css( $attributes, $device ); } )
95 102 );
96 103
97 104 $css_generator->add_class_styles(
98 105 '{{WRAPPER}} .ablocks-icon-wrap',
@@ -97,15 +104,17 @@
97 104 $css_generator->add_class_styles(
98 105 '{{WRAPPER}} .ablocks-icon-wrap',
99 106 Icon::get_wrapper_css( $attributes ),
100 107 Icon::get_wrapper_css( $attributes, 'Tablet' ),
101 - Icon::get_wrapper_css( $attributes, 'Mobile' )
108 + Icon::get_wrapper_css( $attributes, 'Mobile' ),
109 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_css( $attributes, $device ); } )
102 110 );
103 111 $css_generator->add_class_styles(
104 112 '{{WRAPPER}} .ablocks-icon-wrap:hover',
105 113 Icon::get_wrapper_hover_css( $attributes ),
106 114 Icon::get_wrapper_hover_css( $attributes, 'Tablet' ),
107 - Icon::get_wrapper_hover_css( $attributes, 'Mobile' )
115 + Icon::get_wrapper_hover_css( $attributes, 'Mobile' ),
116 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_hover_css( $attributes, $device ); } )
108 117 );
109 118
110 119 $css_generator->add_class_styles(
111 120 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
@@ -110,9 +119,10 @@
110 119 $css_generator->add_class_styles(
111 120 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
112 121 Icon::get_element_image_css( $attributes ),
113 122 Icon::get_element_image_css( $attributes, 'Tablet' ),
114 - Icon::get_element_image_css( $attributes, 'Mobile' )
123 + Icon::get_element_image_css( $attributes, 'Mobile' ),
124 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_css( $attributes, $device ); } )
115 125 );
116 126 $css_generator->add_class_styles(
117 127 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover',
118 128 Icon::get_element_image_hover_css( $attributes ),
@@ -117,8 +127,9 @@
117 127 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover',
118 128 Icon::get_element_image_hover_css( $attributes ),
119 129 Icon::get_element_image_hover_css( $attributes, 'Tablet' ),
120 130 Icon::get_element_image_hover_css( $attributes, 'Mobile' ),
131 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_hover_css( $attributes, $device ); } )
121 132 );
122 133 $css_generator->add_class_styles(
123 134 '{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon',
124 135 Icon::get_element_css( $attributes ),
@@ -123,8 +134,9 @@
123 134 '{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon',
124 135 Icon::get_element_css( $attributes ),
125 136 Icon::get_element_css( $attributes, 'Tablet' ),
126 137 Icon::get_element_css( $attributes, 'Mobile' ),
138 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_css( $attributes, $device ); } )
127 139 );
128 140 $css_generator->add_class_styles(
129 141 '{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover',
130 142 Icon::get_element_image_hover_css( $attributes ),
@@ -129,8 +141,9 @@
129 141 '{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover',
130 142 Icon::get_element_image_hover_css( $attributes ),
131 143 Icon::get_element_image_hover_css( $attributes, 'Tablet' ),
132 144 Icon::get_element_image_hover_css( $attributes, 'Mobile' ),
145 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_hover_css( $attributes, $device ); } )
133 146 );
134 147
135 148 $css_generator->add_class_styles(
136 149 '{{WRAPPER}} .ablocks-coupon-code',
@@ -135,9 +148,10 @@
135 148 $css_generator->add_class_styles(
136 149 '{{WRAPPER}} .ablocks-coupon-code',
137 150 $this->get_coupon_text_css( $attributes ),
138 151 $this->get_coupon_text_css( $attributes, 'Tablet' ),
139 - $this->get_coupon_text_css( $attributes, 'Mobile' )
152 + $this->get_coupon_text_css( $attributes, 'Mobile' ),
153 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_coupon_text_css( $attributes, $device ); } )
140 154 );
141 155
142 156 $css_generator->add_class_styles(
143 157 '{{WRAPPER}} .ablocks-coupon-clipboard',
@@ -142,9 +156,10 @@
142 156 $css_generator->add_class_styles(
143 157 '{{WRAPPER}} .ablocks-coupon-clipboard',
144 158 $this->get_btn_text_css( $attributes ),
145 159 $this->get_btn_text_css( $attributes, 'Tablet' ),
146 - $this->get_btn_text_css( $attributes, 'Mobile' )
160 + $this->get_btn_text_css( $attributes, 'Mobile' ),
161 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_btn_text_css( $attributes, $device ); } )
147 162 );
148 163
149 164 return $css_generator->generate_css();
150 165 }