| @@ 93-104 (lines=12) @@ | ||
| 90 | return $attachments; |
|
| 91 | } |
|
| 92 | ||
| 93 | public static function default_scripts_and_styles() { |
|
| 94 | wp_enqueue_script( |
|
| 95 | 'tiled-gallery', |
|
| 96 | Jetpack::get_file_url_for_environment( |
|
| 97 | '_inc/build/tiled-gallery/tiled-gallery/tiled-gallery.min.js', |
|
| 98 | 'modules/tiled-gallery/tiled-gallery/tiled-gallery.js' |
|
| 99 | ), |
|
| 100 | array( 'jquery' ) |
|
| 101 | ); |
|
| 102 | wp_enqueue_style( 'tiled-gallery', plugins_url( 'tiled-gallery/tiled-gallery.css', __FILE__ ), array(), '2012-09-21' ); |
|
| 103 | wp_style_add_data( 'tiled-gallery', 'rtl', 'replace' ); |
|
| 104 | } |
|
| 105 | ||
| 106 | public function gallery_shortcode( $val, $atts ) { |
|
| 107 | if ( ! empty( $val ) ) // something else is overriding post_gallery, like a custom VIP shortcode |
|
| @@ 95-107 (lines=13) @@ | ||
| 92 | /** |
|
| 93 | * Enqueue scripts and styles. |
|
| 94 | */ |
|
| 95 | function enqueue_frontend_scripts() { |
|
| 96 | wp_enqueue_style( 'eu-cookie-law-style', plugins_url( 'eu-cookie-law/style.css', __FILE__ ), array(), '20170403' ); |
|
| 97 | wp_enqueue_script( |
|
| 98 | 'eu-cookie-law-script', |
|
| 99 | Jetpack::get_file_url_for_environment( |
|
| 100 | '_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js', |
|
| 101 | 'modules/widgets/eu-cookie-law/eu-cookie-law.js' |
|
| 102 | ), |
|
| 103 | array( 'jquery' ), |
|
| 104 | '20170404', |
|
| 105 | true |
|
| 106 | ); |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * Return an associative array of default values. |
|