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/star-ratings/block.php +9 -2 2.9.0 → 2.14.0 View file →
@@ -40,9 +40,10 @@
40 40 $css_generator->add_class_styles(
41 41 '{{WRAPPER}} .ablocks-icon-wrap',
42 42 Icon::get_wrapper_css( $attributes ),
43 43 Icon::get_wrapper_css( $attributes, 'Tablet' ),
44 - Icon::get_wrapper_css( $attributes, 'Mobile' )
44 + Icon::get_wrapper_css( $attributes, 'Mobile' ),
45 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_wrapper_css( $attributes, $device ); } )
45 46 );
46 47
47 48 $css_generator->add_class_styles(
48 49 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
@@ -88,8 +89,9 @@
88 89 '{{WRAPPER}}:not(.ablocks-has-block-container), {{WRAPPER}}.ablocks-block--star-ratings > .ablocks-block-container',
89 90 $this->get_container_css( $attributes ),
90 91 $this->get_container_css( $attributes, 'Tablet' ),
91 92 $this->get_container_css( $attributes, 'Mobile' ),
93 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_container_css( $attributes, $device ); } )
92 94 );
93 95 // rating icon css
94 96 $css_generator->add_class_styles(
95 97 '{{WRAPPER}} .ablocks-rating',
@@ -95,8 +97,9 @@
95 97 '{{WRAPPER}} .ablocks-rating',
96 98 $this->get_rating_css( $attributes ),
97 99 $this->get_rating_css( $attributes, 'Tablet' ),
98 100 $this->get_rating_css( $attributes, 'Mobile' ),
101 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_rating_css( $attributes, $device ); } )
99 102 );
100 103
101 104 $css_generator->add_class_styles(
102 105 '{{WRAPPER}} .ablocks-icon-wrap',
@@ -101,9 +104,10 @@
101 104 $css_generator->add_class_styles(
102 105 '{{WRAPPER}} .ablocks-icon-wrap',
103 106 Icon::get_wrapper_css( $attributes ),
104 107 Icon::get_wrapper_css( $attributes, 'Tablet' ),
105 - 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 ); } )
106 110 );
107 111
108 112 $css_generator->add_class_styles(
109 113 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
@@ -109,8 +113,9 @@
109 113 '{{WRAPPER}} .ablocks-icon-wrap img.ablocks-image-icon',
110 114 Icon::get_element_image_css( $attributes ),
111 115 Icon::get_element_image_css( $attributes, 'Tablet' ),
112 116 Icon::get_element_image_css( $attributes, 'Mobile' ),
117 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return Icon::get_element_image_css( $attributes, $device ); } )
113 118 );
114 119
115 120 // rating icon spacing css
116 121 $css_generator->add_class_styles(
@@ -117,8 +122,9 @@
117 122 '{{WRAPPER}} .ablocks-star-ratings-icons',
118 123 $this->get_rating_icon_spacing_css( $attributes ),
119 124 $this->get_rating_icon_spacing_css( $attributes, 'Tablet' ),
120 125 $this->get_rating_icon_spacing_css( $attributes, 'Mobile' ),
126 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_rating_icon_spacing_css( $attributes, $device ); } )
121 127 );
122 128 // rating number css
123 129 $css_generator->add_class_styles(
124 130 '{{WRAPPER}} .ablocks-star-rating-number',
@@ -124,8 +130,9 @@
124 130 '{{WRAPPER}} .ablocks-star-rating-number',
125 131 $this->get_rating_number_css( $attributes ),
126 132 $this->get_rating_number_css( $attributes, 'Tablet' ),
127 133 $this->get_rating_number_css( $attributes, 'Mobile' ),
134 + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_rating_number_css( $attributes, $device ); } )
128 135 );
129 136
130 137 return $css_generator->generate_css();
131 138 }