Changeset 5772 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
- Timestamp:
- 08/08/2017 01:24:36 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
r5735 r5772 208 208 global $post_type; 209 209 210 // Register 211 wp_register_script( 212 'wcb-spon', // Avoid "sponsor" since that's a trigger word for ad blockers. 213 plugins_url( 'js/wcb-spon.js', __FILE__ ), 214 array( 'jquery', 'backbone', 'media-views' ), 215 1, 216 true 217 ); 218 wp_localize_script( 219 'wcb-spon', 220 'wcbSponsors', 221 array( 222 'l10n' => array( 223 'modalTitle' => __( 'Sponsor Agreement', 'wordcamporg' ), 224 ), 225 'modal' => array( 226 'allowedTypes' => array( 'image', 'application/pdf' ) 227 ), 228 ) 229 ); 230 210 231 // Enqueues scripts and styles for session admin page 211 232 if ( 'wcb_session' == $post_type ) { … … 217 238 // Enqueues scripts and styles for sponsors admin page 218 239 if ( 'wcb_sponsor' == $post_type ) { 219 wp_enqueue_script( 220 'wcb-spon', // Avoid "sponsor" since that's a trigger word for ad blockers. 221 plugins_url( 'js/wcb-spon.js', __FILE__ ), 222 array( 'jquery', 'backbone', 'media-views' ), 223 1, 224 true 225 ); 226 227 wp_localize_script( 228 'wcb-spon', 229 'wcbSponsors', 230 array( 231 'l10n' => array( 232 'modalTitle' => __( 'Sponsor Agreement', 'wordcamporg' ), 233 ), 234 'modal' => array( 235 'allowedTypes' => array( 'image', 'application/pdf' ) 236 ), 237 ) 238 ); 240 wp_enqueue_script( 'wcb-spon' ); 239 241 } 240 242 }
Note: See TracChangeset
for help on using the changeset viewer.