| @@ -45,9 +45,9 @@ | ||
| 45 | 45 | 'file' => '/css/' . $base_layout, |
| 46 | 46 | 'public' => true |
| 47 | 47 | ), |
| 48 | 48 | array( |
| 49 | - 'name' => 'isotope', | |
| 49 | + 'name' => 'isotopewpupg', | |
| 50 | 50 | 'file' => '/vendor/isotope/isotope.pkgd.min.js', |
| 51 | 51 | 'public' => true, |
| 52 | 52 | 'deps' => array( |
| 53 | 53 | 'jquery', |
| @@ -66,9 +66,9 @@ | ||
| 66 | 66 | 'name' => 'wpupg_grid', |
| 67 | 67 | 'public' => true, |
| 68 | 68 | 'deps' => array( |
| 69 | 69 | 'jquery', |
| 70 | - 'isotope', | |
| 70 | + 'isotopewpupg', | |
| 71 | 71 | 'imagesloaded', |
| 72 | 72 | ), |
| 73 | 73 | 'data' => array( |
| 74 | 74 | 'name' => 'wpupg_public', |
| @@ -280,8 +280,12 @@ | ||
| 280 | 280 | $js_to_enqueue[] = $asset; |
| 281 | 281 | break; |
| 282 | 282 | } |
| 283 | 283 | } |
| 284 | + | |
| 285 | + // Hooks for assets | |
| 286 | + $css_to_enqueue = apply_filters( 'wpupg_assets_css', $css_to_enqueue ); | |
| 287 | + $js_to_enqueue = apply_filters( 'wpupg_assets_js', $js_to_enqueue ); | |
| 284 | 288 | |
| 285 | 289 | // We've got the assets we need, enqueue them |
| 286 | 290 | if( count( $css_to_enqueue ) > 0 ) $this->enqueue_css( $css_to_enqueue ); |
| 287 | 291 | if( count( $js_to_enqueue ) > 0 ) $this->enqueue_js( $js_to_enqueue ); |