| @@ -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(); |