PluginProbe
Meow Gallery / 4.2.2
Meow Gallery v4.2.2
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 +6 -8 4.2.9 → 4.2.2 View file →
@@ -10,10 +10,8 @@
10 10 function inline_css() {
11 11 $class_id = '#' . $this->class_id;
12 12
13 13 $isPreview = $this->isPreview;
14 -
15 - $options = get_option( Meow_MGL_Core::get_plugin_option_name(), null );
16 14
17 15 $gutter = [];
18 16 if ( isset( $this->atts['gutter'] ) ) {
19 17 $gutter['desktop'] = $this->atts['gutter'];
@@ -20,11 +18,11 @@
20 18 $gutter['tablet'] = $this->atts['gutter'];
21 19 $gutter['mobile'] = $this->atts['gutter'];
22 20 }
23 21 else {
24 - $gutter['desktop'] = $options['tiles_gutter'] ?? 10;
25 - $gutter['tablet'] = $options['tiles_gutter_tablet'] ?? 10;
26 - $gutter['mobile'] = $options['tiles_gutter_mobile'] ?? 10;
22 + $gutter['desktop'] = get_option( 'mgl_tiles_gutter', 10 );
23 + $gutter['tablet'] = get_option( 'mgl_tiles_gutter_tablet', 10 );
24 + $gutter['mobile'] = get_option( 'mgl_tiles_gutter_mobile', 10 );
27 25 }
28 26
29 27 $density = [];
30 28 if ( isset( $this->atts['density'] ) ) {
@@ -32,11 +30,11 @@
32 30 $density['tablet'] = $this->atts['density'];
33 31 $density['mobile'] = $this->atts['density'];
34 32 }
35 33 else {
36 - $density['desktop'] = $options['tiles_density'] ?? 'high';
37 - $density['tablet'] = $options['tiles_density_tablet'] ?? 'medium';
38 - $density['mobile'] = $options['tiles_density_mobile'] ?? 'low';
34 + $density['desktop'] = get_option( 'mgl_tiles_density', 'high' );
35 + $density['tablet'] = get_option( 'mgl_tiles_density_tablet', 'medium' );
36 + $density['mobile'] = get_option( 'mgl_tiles_density_mobile', 'low' );
39 37 }
40 38
41 39 ob_start();
42 40 include dirname( __FILE__ ) . '/tiles.css.php';