PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.13.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.13.1
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/button/block.php +18 -37 trunk → 2.13.1 View file →
@@ -26,10 +26,9 @@
26 26 $css_generator->add_class_styles(
27 27 '{{WRAPPER}}',
28 28 $this->get_wrapper_css( $attributes ),
29 29 $this->get_wrapper_css( $attributes, 'Tablet' ),
30 - $this->get_wrapper_css( $attributes, 'Mobile' ),
31 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_wrapper_css( $attributes, $device ); } )
30 + $this->get_wrapper_css( $attributes, 'Mobile' )
32 31 );
33 32 // Generate wrapper CSS end
34 33
35 34 // Generate button CSS start
@@ -36,10 +35,9 @@
36 35 $css_generator->add_class_styles(
37 36 '{{WRAPPER}} .ablocks-block-container .ablocks-button',
38 37 $this->get_button_css( $attributes ),
39 38 $this->get_button_css( $attributes, 'Tablet' ),
40 - $this->get_button_css( $attributes, 'Mobile' ),
41 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_button_css( $attributes, $device ); } )
39 + $this->get_button_css( $attributes, 'Mobile' )
42 40 );
43 41 // Generate button CSS end
44 42
45 43 // Generate button hover CSS start
@@ -46,10 +44,9 @@
46 44 $css_generator->add_class_styles(
47 45 '{{WRAPPER}} .ablocks-block-container .ablocks-button:hover',
48 46 $this->get_button_hover_css( $attributes ),
49 47 $this->get_button_hover_css( $attributes, 'Tablet' ),
50 - $this->get_button_hover_css( $attributes, 'Mobile' ),
51 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_button_hover_css( $attributes, $device ); } )
48 + $this->get_button_hover_css( $attributes, 'Mobile' )
52 49 );
53 50
54 51 // Generate button icon hover CSS
55 52 $css_generator->add_class_styles(
@@ -55,10 +52,9 @@
55 52 $css_generator->add_class_styles(
56 53 '{{WRAPPER}} .ablocks-block-container .ablocks-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon',
57 54 $this->get_icon_hover_css( $attributes ),
58 55 $this->get_icon_hover_css( $attributes, 'Tablet' ),
59 - $this->get_icon_hover_css( $attributes, 'Mobile' ),
60 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_icon_hover_css( $attributes, $device ); } )
56 + $this->get_icon_hover_css( $attributes, 'Mobile' )
61 57 );
62 58
63 59 // Generate button text CSS start
64 60 $css_generator->add_class_styles(
@@ -70,17 +66,15 @@
70 66 $css_generator->add_class_styles(
71 67 '{{WRAPPER}} .ablocks-icon-wrap',
72 68 Icon::get_wrapper_css( $attributes ),
73 69 Icon::get_wrapper_css( $attributes, 'Tablet' ),
74 - Icon::get_wrapper_css( $attributes, 'Mobile' ),
75 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_css( $attributes, $device ); } )
70 + Icon::get_wrapper_css( $attributes, 'Mobile' )
76 71 );
77 72 $css_generator->add_class_styles(
78 73 '{{WRAPPER}} .ablocks-icon-wrap:hover',
79 74 Icon::get_wrapper_hover_css( $attributes ),
80 75 Icon::get_wrapper_hover_css( $attributes, 'Tablet' ),
81 - Icon::get_wrapper_hover_css( $attributes, 'Mobile' ),
82 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_hover_css( $attributes, $device ); } )
76 + Icon::get_wrapper_hover_css( $attributes, 'Mobile' )
83 77 );
84 78
85 79 $css_generator->add_class_styles(
86 80 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
@@ -85,10 +79,9 @@
85 79 $css_generator->add_class_styles(
86 80 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
87 81 Icon::get_element_image_css( $attributes ),
88 82 Icon::get_element_image_css( $attributes, 'Tablet' ),
89 - Icon::get_element_image_css( $attributes, 'Mobile' ),
90 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_css( $attributes, $device ); } )
83 + Icon::get_element_image_css( $attributes, 'Mobile' )
91 84 );
92 85 $css_generator->add_class_styles(
93 86 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover',
94 87 Icon::get_element_image_hover_css( $attributes ),
@@ -98,17 +91,15 @@
98 91 $css_generator->add_class_styles(
99 92 '{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon',
100 93 Icon::get_element_css( $attributes ),
101 94 Icon::get_element_css( $attributes, 'Tablet' ),
102 - Icon::get_element_css( $attributes, 'Mobile' ),
103 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_css( $attributes, $device ); } )
95 + Icon::get_element_css( $attributes, 'Mobile' )
104 96 );
105 97 $css_generator->add_class_styles(
106 98 '{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover',
107 99 Icon::get_element_image_hover_css( $attributes ),
108 100 Icon::get_element_image_hover_css( $attributes, 'Tablet' ),
109 - Icon::get_element_image_hover_css( $attributes, 'Mobile' ),
110 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_hover_css( $attributes, $device ); } )
101 + Icon::get_element_image_hover_css( $attributes, 'Mobile' )
111 102 );
112 103
113 104 return $css_generator->generate_css();
114 105 }
@@ -118,10 +109,9 @@
118 109 $css_generator->add_class_styles(
119 110 '{{WRAPPER}}',
120 111 $this->get_wrapper_css( $attributes ),
121 112 $this->get_wrapper_css( $attributes, 'Tablet' ),
122 - $this->get_wrapper_css( $attributes, 'Mobile' ),
123 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_wrapper_css( $attributes, $device ); } )
113 + $this->get_wrapper_css( $attributes, 'Mobile' )
124 114 );
125 115 // Generate wrapper CSS end
126 116
127 117 // Generate button CSS start
@@ -128,10 +118,9 @@
128 118 $css_generator->add_class_styles(
129 119 '{{WRAPPER}} .ablocks-button',
130 120 $this->get_button_css( $attributes ),
131 121 $this->get_button_css( $attributes, 'Tablet' ),
132 - $this->get_button_css( $attributes, 'Mobile' ),
133 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_button_css( $attributes, $device ); } )
122 + $this->get_button_css( $attributes, 'Mobile' )
134 123 );
135 124
136 125 // Generate button hover CSS start
137 126 $css_generator->add_class_styles(
@@ -137,10 +126,9 @@
137 126 $css_generator->add_class_styles(
138 127 '{{WRAPPER}} .ablocks-button:hover',
139 128 $this->get_button_hover_css( $attributes ),
140 129 $this->get_button_hover_css( $attributes, 'Tablet' ),
141 - $this->get_button_hover_css( $attributes, 'Mobile' ),
142 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_button_hover_css( $attributes, $device ); } )
130 + $this->get_button_hover_css( $attributes, 'Mobile' )
143 131 );
144 132
145 133 // Generate button icon hover CSS
146 134 $css_generator->add_class_styles(
@@ -146,10 +134,9 @@
146 134 $css_generator->add_class_styles(
147 135 '{{WRAPPER}} .ablocks-button:hover .ablocks-icon-wrap svg.ablocks-svg-icon',
148 136 $this->get_icon_hover_css( $attributes ),
149 137 $this->get_icon_hover_css( $attributes, 'Tablet' ),
150 - $this->get_icon_hover_css( $attributes, 'Mobile' ),
151 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_icon_hover_css( $attributes, $device ); } )
138 + $this->get_icon_hover_css( $attributes, 'Mobile' )
152 139 );
153 140
154 141 // Generate button text CSS start
155 142 $css_generator->add_class_styles(
@@ -161,17 +148,15 @@
161 148 $css_generator->add_class_styles(
162 149 '{{WRAPPER}} .ablocks-icon-wrap',
163 150 Icon::get_wrapper_css( $attributes ),
164 151 Icon::get_wrapper_css( $attributes, 'Tablet' ),
165 - Icon::get_wrapper_css( $attributes, 'Mobile' ),
166 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_css( $attributes, $device ); } )
152 + Icon::get_wrapper_css( $attributes, 'Mobile' )
167 153 );
168 154 $css_generator->add_class_styles(
169 155 '{{WRAPPER}} .ablocks-icon-wrap:hover',
170 156 Icon::get_wrapper_hover_css( $attributes ),
171 157 Icon::get_wrapper_hover_css( $attributes, 'Tablet' ),
172 - Icon::get_wrapper_hover_css( $attributes, 'Mobile' ),
173 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_hover_css( $attributes, $device ); } )
158 + Icon::get_wrapper_hover_css( $attributes, 'Mobile' )
174 159 );
175 160
176 161 $css_generator->add_class_styles(
177 162 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
@@ -176,10 +161,9 @@
176 161 $css_generator->add_class_styles(
177 162 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
178 163 Icon::get_element_image_css( $attributes ),
179 164 Icon::get_element_image_css( $attributes, 'Tablet' ),
180 - Icon::get_element_image_css( $attributes, 'Mobile' ),
181 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_css( $attributes, $device ); } )
165 + Icon::get_element_image_css( $attributes, 'Mobile' )
182 166 );
183 167 $css_generator->add_class_styles(
184 168 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover',
185 169 Icon::get_element_image_hover_css( $attributes ),
@@ -184,23 +168,20 @@
184 168 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon:hover',
185 169 Icon::get_element_image_hover_css( $attributes ),
186 170 Icon::get_element_image_hover_css( $attributes, 'Tablet' ),
187 171 Icon::get_element_image_hover_css( $attributes, 'Mobile' ),
188 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_hover_css( $attributes, $device ); } )
189 172 );
190 173 $css_generator->add_class_styles(
191 174 '{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon',
192 175 Icon::get_element_css( $attributes ),
193 176 Icon::get_element_css( $attributes, 'Tablet' ),
194 - Icon::get_element_css( $attributes, 'Mobile' ),
195 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_css( $attributes, $device ); } )
177 + Icon::get_element_css( $attributes, 'Mobile' )
196 178 );
197 179 $css_generator->add_class_styles(
198 180 '{{WRAPPER}} .ablocks-icon-wrap svg.ablocks-svg-icon:hover',
199 181 Icon::get_element_image_hover_css( $attributes ),
200 182 Icon::get_element_image_hover_css( $attributes, 'Tablet' ),
201 - Icon::get_element_image_hover_css( $attributes, 'Mobile' ),
202 - $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_hover_css( $attributes, $device ); } )
183 + Icon::get_element_image_hover_css( $attributes, 'Mobile' )
203 184 );
204 185
205 186 return $css_generator->generate_css();
206 187 }