@@ 98-110 (lines=13) @@ | ||
95 | /** |
|
96 | * Enqueue scripts and styles. |
|
97 | */ |
|
98 | function enqueue_frontend_scripts() { |
|
99 | wp_enqueue_style( 'eu-cookie-law-style', plugins_url( 'eu-cookie-law/style.css', __FILE__ ), array(), '20170403' ); |
|
100 | wp_enqueue_script( |
|
101 | 'eu-cookie-law-script', |
|
102 | Jetpack::get_file_url_for_environment( |
|
103 | '_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js', |
|
104 | 'modules/widgets/eu-cookie-law/eu-cookie-law.js' |
|
105 | ), |
|
106 | array( 'jquery' ), |
|
107 | '20180522', |
|
108 | true |
|
109 | ); |
|
110 | } |
|
111 | ||
112 | /** |
|
113 | * Return an associative array of default values. |
@@ 128-139 (lines=12) @@ | ||
125 | return $attachments; |
|
126 | } |
|
127 | ||
128 | public static function default_scripts_and_styles() { |
|
129 | wp_enqueue_script( |
|
130 | 'tiled-gallery', |
|
131 | Jetpack::get_file_url_for_environment( |
|
132 | '_inc/build/tiled-gallery/tiled-gallery/tiled-gallery.min.js', |
|
133 | 'modules/tiled-gallery/tiled-gallery/tiled-gallery.js' |
|
134 | ), |
|
135 | array( 'jquery' ) |
|
136 | ); |
|
137 | wp_enqueue_style( 'tiled-gallery', plugins_url( 'tiled-gallery/tiled-gallery.css', __FILE__ ), array(), '2012-09-21' ); |
|
138 | wp_style_add_data( 'tiled-gallery', 'rtl', 'replace' ); |
|
139 | } |
|
140 | ||
141 | public function gallery_shortcode( $val, $atts ) { |
|
142 | if ( ! empty( $val ) ) { // something else is overriding post_gallery, like a custom VIP shortcode |