PluginProbe
Meow Gallery / 5.5.5
Meow Gallery v5.5.5
5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 All 157 releases
← All changes | classes/builders/tiles.php +1 -11 5.5.25.5.5 View file →
@@ -25,19 +25,9 @@
25 25 $gutter['tablet'] = $options['tiles_gutter_tablet'] ?? 10;
26 26 $gutter['mobile'] = $options['tiles_gutter_mobile'] ?? 10;
27 27 }
28 28
29 - $density = [];
30 - if ( isset( $this->atts['density'] ) ) {
31 - $density['desktop'] = $this->atts['density'];
32 - $density['tablet'] = $this->atts['density'];
33 - $density['mobile'] = $this->atts['density'];
34 - }
35 - else {
36 - $density['desktop'] = $options['tiles_density'] ?? 'high';
37 - $density['tablet'] = $options['tiles_density_tablet'] ?? 'medium';
38 - $density['mobile'] = $options['tiles_density_mobile'] ?? 'low';
39 - }
29 + $density = Meow_MGL_Core::get_tiles_density( $this->atts );
40 30
41 31 ob_start();
42 32 include dirname( __FILE__ ) . '/tiles.css.php';
43 33 $html = ob_get_clean();