| @@ -115,12 +115,9 @@ | ||
| 115 | 115 | |
| 116 | 116 | // Start the process of building the gallery |
| 117 | 117 | $this->gallery_process = true; |
| 118 | 118 | $this->gallery_layout = $layout; |
| 119 | - | |
| 120 | - // This should be probably removed. | |
| 121 | - // wp_enqueue_style( 'mgl-css' ); | |
| 122 | - | |
| 119 | + wp_enqueue_style( 'mgl-css' ); | |
| 123 | 120 | $infinite = get_option( 'mgl_infinite', false ) && class_exists( 'MeowPro_MGL_Core' ); |
| 124 | 121 | $gen = new $layoutClass( $atts, !$isPreview && $infinite, $isPreview ); |
| 125 | 122 | $result = $gen->build( $images ); |
| 126 | 123 | $this->gallery_process = false; |
| @@ -125,10 +122,8 @@ | ||
| 125 | 122 | $result = $gen->build( $images ); |
| 126 | 123 | $this->gallery_process = false; |
| 127 | 124 | do_action( 'mgl_' . $layout . '_gallery_created', $layout ); |
| 128 | 125 | //$result = apply_filters( 'post_gallery', $result, $atts, null ); |
| 129 | - | |
| 130 | - do_action( 'mgl_gallery_created' ); | |
| 131 | 126 | |
| 132 | 127 | return $result; |
| 133 | 128 | } |
| 134 | 129 | } |