- Timestamp:
- 09/06/2023 09:21:17 PM (15 months ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php
r55420 r56526 674 674 */ 675 675 function twentyeleven_customize_preview_js() { 676 wp_enqueue_script( 'twentyeleven-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '20150401', true);676 wp_enqueue_script( 'twentyeleven-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '20150401', array( 'in_footer' => true ) ); 677 677 } 678 678 add_action( 'customize_preview_init', 'twentyeleven_customize_preview_js' ); -
trunk/src/wp-content/themes/twentyfifteen/functions.php
r56315 r56526 445 445 446 446 // Skip-link fix is no longer enqueued by default. 447 wp_register_script( 'twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20230526', true);447 wp_register_script( 'twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20230526', array( 'in_footer' => true ) ); 448 448 449 449 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { … … 455 455 } 456 456 457 wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20221101', true);457 wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20221101', array( 'in_footer' => true ) ); 458 458 wp_localize_script( 459 459 'twentyfifteen-script', -
trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php
r55981 r56526 360 360 */ 361 361 function twentyfifteen_customize_control_js() { 362 wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20141216', true);362 wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20141216', array( 'in_footer' => true ) ); 363 363 wp_localize_script( 'color-scheme-control', 'colorScheme', twentyfifteen_get_color_schemes() ); 364 364 } … … 371 371 */ 372 372 function twentyfifteen_customize_preview_js() { 373 wp_enqueue_script( 'twentyfifteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20141216', true);373 wp_enqueue_script( 'twentyfifteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20141216', array( 'in_footer' => true ) ); 374 374 } 375 375 add_action( 'customize_preview_init', 'twentyfifteen_customize_preview_js' ); -
trunk/src/wp-content/themes/twentyfourteen/functions.php
r56315 r56526 368 368 369 369 if ( is_front_page() && 'slider' === get_theme_mod( 'featured_content_layout' ) ) { 370 wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20150120', true);370 wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20150120', array( 'in_footer' => true ) ); 371 371 wp_localize_script( 372 372 'twentyfourteen-slider', … … 379 379 } 380 380 381 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20230526', true);381 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20230526', array( 'in_footer' => true ) ); 382 382 } 383 383 add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' ); -
trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php
r48067 r56526 143 143 */ 144 144 function twentyfourteen_customize_preview_js() { 145 wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141015', true);145 wp_enqueue_script( 'twentyfourteen_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141015', array( 'in_footer' => true ) ); 146 146 } 147 147 add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' ); -
trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php
r55476 r56526 435 435 */ 436 436 public static function enqueue_scripts() { 437 wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20211130', true);437 wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20211130', array( 'in_footer' => true ) ); 438 438 } 439 439 -
trunk/src/wp-content/themes/twentynineteen/functions.php
r56315 r56526 260 260 261 261 if ( has_nav_menu( 'menu-1' ) ) { 262 wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '20200129', true);263 wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '20230621', true);262 wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '20200129', array( 'in_footer' => true ) ); 263 wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '20230621', array( 'in_footer' => true ) ); 264 264 } 265 265 -
trunk/src/wp-content/themes/twentynineteen/inc/customizer.php
r48102 r56526 126 126 */ 127 127 function twentynineteen_customize_preview_js() { 128 wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181214', true);128 wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181214', array( 'in_footer' => true ) ); 129 129 } 130 130 add_action( 'customize_preview_init', 'twentynineteen_customize_preview_js' ); … … 134 134 */ 135 135 function twentynineteen_panels_js() { 136 wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181214', true);136 wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181214', array( 'in_footer' => true ) ); 137 137 } 138 138 add_action( 'customize_controls_enqueue_scripts', 'twentynineteen_panels_js' ); -
trunk/src/wp-content/themes/twentyseventeen/functions.php
r56315 r56526 478 478 479 479 // Skip-link fix is no longer enqueued by default. 480 wp_register_script( 'twentyseventeen-skip-link-focus-fix', get_theme_file_uri( '/assets/js/skip-link-focus-fix.js' ), array(), '20161114', true);481 482 wp_enqueue_script( 'twentyseventeen-global', get_theme_file_uri( '/assets/js/global.js' ), array( 'jquery' ), '20211130', true);480 wp_register_script( 'twentyseventeen-skip-link-focus-fix', get_theme_file_uri( '/assets/js/skip-link-focus-fix.js' ), array(), '20161114', array( 'in_footer' => true ) ); 481 482 wp_enqueue_script( 'twentyseventeen-global', get_theme_file_uri( '/assets/js/global.js' ), array( 'jquery' ), '20211130', array( 'in_footer' => true ) ); 483 483 484 484 $twentyseventeen_l10n = array( … … 487 487 488 488 if ( has_nav_menu( 'top' ) ) { 489 wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '20210122', true);489 wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '20210122', array( 'in_footer' => true ) ); 490 490 $twentyseventeen_l10n['expand'] = __( 'Expand child menu', 'twentyseventeen' ); 491 491 $twentyseventeen_l10n['collapse'] = __( 'Collapse child menu', 'twentyseventeen' ); … … 500 500 wp_localize_script( 'twentyseventeen-global', 'twentyseventeenScreenReaderText', $twentyseventeen_l10n ); 501 501 502 wp_enqueue_script( 'jquery-scrollto', get_theme_file_uri( '/assets/js/jquery.scrollTo.js' ), array( 'jquery' ), '2.1.3', true);502 wp_enqueue_script( 'jquery-scrollto', get_theme_file_uri( '/assets/js/jquery.scrollTo.js' ), array( 'jquery' ), '2.1.3', array( 'in_footer' => true ) ); 503 503 504 504 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { -
trunk/src/wp-content/themes/twentyseventeen/inc/customizer.php
r56012 r56526 246 246 */ 247 247 function twentyseventeen_customize_preview_js() { 248 wp_enqueue_script( 'twentyseventeen-customize-preview', get_theme_file_uri( '/assets/js/customize-preview.js' ), array( 'customize-preview' ), '20161002', true);248 wp_enqueue_script( 'twentyseventeen-customize-preview', get_theme_file_uri( '/assets/js/customize-preview.js' ), array( 'customize-preview' ), '20161002', array( 'in_footer' => true ) ); 249 249 } 250 250 add_action( 'customize_preview_init', 'twentyseventeen_customize_preview_js' ); … … 254 254 */ 255 255 function twentyseventeen_panels_js() { 256 wp_enqueue_script( 'twentyseventeen-customize-controls', get_theme_file_uri( '/assets/js/customize-controls.js' ), array(), '20161020', true);256 wp_enqueue_script( 'twentyseventeen-customize-controls', get_theme_file_uri( '/assets/js/customize-controls.js' ), array(), '20161020', array( 'in_footer' => true ) ); 257 257 } 258 258 add_action( 'customize_controls_enqueue_scripts', 'twentyseventeen_panels_js' ); -
trunk/src/wp-content/themes/twentysixteen/functions.php
r56315 r56526 414 414 415 415 // Skip-link fix is no longer enqueued by default. 416 wp_register_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20230526', true);416 wp_register_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20230526', array( 'in_footer' => true ) ); 417 417 418 418 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { … … 424 424 } 425 425 426 wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20230629', true);426 wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20230629', array( 'in_footer' => true ) ); 427 427 428 428 wp_localize_script( -
trunk/src/wp-content/themes/twentysixteen/inc/customizer.php
r48782 r56526 487 487 */ 488 488 function twentysixteen_customize_control_js() { 489 wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20170530', true);489 wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20170530', array( 'in_footer' => true ) ); 490 490 wp_localize_script( 'color-scheme-control', 'colorScheme', twentysixteen_get_color_schemes() ); 491 491 } … … 498 498 */ 499 499 function twentysixteen_customize_preview_js() { 500 wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20170530', true);500 wp_enqueue_script( 'twentysixteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20170530', array( 'in_footer' => true ) ); 501 501 } 502 502 add_action( 'customize_preview_init', 'twentysixteen_customize_preview_js' ); -
trunk/src/wp-content/themes/twentythirteen/functions.php
r56315 r56526 322 322 323 323 // Loads JavaScript file with functionality specific to Twenty Thirteen. 324 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20230526', true);324 wp_enqueue_script( 'twentythirteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20230526', array( 'in_footer' => true ) ); 325 325 326 326 // Add Source Sans Pro and Bitter fonts, used in the main stylesheet. … … 844 844 */ 845 845 function twentythirteen_customize_preview_js() { 846 wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20200516', true);846 wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20200516', array( 'in_footer' => true ) ); 847 847 } 848 848 add_action( 'customize_preview_init', 'twentythirteen_customize_preview_js' ); -
trunk/src/wp-content/themes/twentytwelve/functions.php
r56315 r56526 189 189 190 190 // Adds JavaScript for handling the navigation menu hide-and-show behavior. 191 wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20141205', true);191 wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20141205', array( 'in_footer' => true ) ); 192 192 193 193 $font_url = twentytwelve_get_font_url(); … … 693 693 */ 694 694 function twentytwelve_customize_preview_js() { 695 wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20200516', true);695 wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20200516', array( 'in_footer' => true ) ); 696 696 } 697 697 add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); -
trunk/src/wp-content/themes/twentytwenty/functions.php
r56106 r56526 214 214 } 215 215 216 wp_enqueue_script( 'twentytwenty-js', get_template_directory_uri() . '/assets/js/index.js', array(), $theme_version , false);216 wp_enqueue_script( 'twentytwenty-js', get_template_directory_uri() . '/assets/js/index.js', array(), $theme_version ); 217 217 wp_script_add_data( 'twentytwenty-js', 'async', true ); 218 218 … … 432 432 433 433 // Enqueue the editor script. 434 wp_enqueue_script( 'twentytwenty-block-editor-script', get_theme_file_uri( '/assets/js/editor-script-block.js' ), array( 'wp-blocks', 'wp-dom' ), wp_get_theme()->get( 'Version' ), true);434 wp_enqueue_script( 'twentytwenty-block-editor-script', get_theme_file_uri( '/assets/js/editor-script-block.js' ), array( 'wp-blocks', 'wp-dom' ), wp_get_theme()->get( 'Version' ), array( 'in_footer' => true ) ); 435 435 } 436 436 … … 626 626 627 627 // Add main customizer js file. 628 wp_enqueue_script( 'twentytwenty-customize', get_template_directory_uri() . '/assets/js/customize.js', array( 'jquery' ), $theme_version , false);628 wp_enqueue_script( 'twentytwenty-customize', get_template_directory_uri() . '/assets/js/customize.js', array( 'jquery' ), $theme_version ); 629 629 630 630 // Add script for color calculations. 631 wp_enqueue_script( 'twentytwenty-color-calculations', get_template_directory_uri() . '/assets/js/color-calculations.js', array( 'wp-color-picker' ), $theme_version , false);631 wp_enqueue_script( 'twentytwenty-color-calculations', get_template_directory_uri() . '/assets/js/color-calculations.js', array( 'wp-color-picker' ), $theme_version ); 632 632 633 633 // Add script for controls. 634 wp_enqueue_script( 'twentytwenty-customize-controls', get_template_directory_uri() . '/assets/js/customize-controls.js', array( 'twentytwenty-color-calculations', 'customize-controls', 'underscore', 'jquery' ), $theme_version , false);634 wp_enqueue_script( 'twentytwenty-customize-controls', get_template_directory_uri() . '/assets/js/customize-controls.js', array( 'twentytwenty-color-calculations', 'customize-controls', 'underscore', 'jquery' ), $theme_version ); 635 635 wp_localize_script( 'twentytwenty-customize-controls', 'twentyTwentyBgColors', twentytwenty_get_customizer_color_vars() ); 636 636 } … … 648 648 $theme_version = wp_get_theme()->get( 'Version' ); 649 649 650 wp_enqueue_script( 'twentytwenty-customize-preview', get_theme_file_uri( '/assets/js/customize-preview.js' ), array( 'customize-preview', 'customize-selective-refresh', 'jquery' ), $theme_version, true);650 wp_enqueue_script( 'twentytwenty-customize-preview', get_theme_file_uri( '/assets/js/customize-preview.js' ), array( 'customize-preview', 'customize-selective-refresh', 'jquery' ), $theme_version, array( 'in_footer' => true ) ); 651 651 wp_localize_script( 'twentytwenty-customize-preview', 'twentyTwentyBgColors', twentytwenty_get_customizer_color_vars() ); 652 652 wp_localize_script( 'twentytwenty-customize-preview', 'twentyTwentyPreviewEls', twentytwenty_get_elements_array() ); -
trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
r56300 r56526 70 70 array(), 71 71 '1.0.0', 72 true72 array( 'in_footer' => true ) 73 73 ); 74 74 … … 78 78 array( 'twentytwentyone-dark-mode-support-toggle' ), 79 79 '1.0.0', 80 true80 array( 'in_footer' => true ) 81 81 ); 82 82 } … … 116 116 array( 'customize-base', 'customize-controls', 'underscore', 'jquery', 'twentytwentyone-customize-helpers' ), 117 117 '1.0.0', 118 true118 array( 'in_footer' => true ) 119 119 ); 120 120 } -
trunk/src/wp-content/themes/twentytwentyone/functions.php
r56170 r56526 422 422 array(), 423 423 wp_get_theme()->get( 'Version' ), 424 true424 array( 'in_footer' => true ) 425 425 ); 426 426 … … 431 431 array(), 432 432 wp_get_theme()->get( 'Version' ), 433 true433 array( 'in_footer' => true ) 434 434 ); 435 435 wp_add_inline_script( … … 450 450 array( 'twenty-twenty-one-ie11-polyfills' ), 451 451 wp_get_theme()->get( 'Version' ), 452 true452 array( 'in_footer' => true ) 453 453 ); 454 454 } … … 460 460 array( 'twenty-twenty-one-ie11-polyfills' ), 461 461 wp_get_theme()->get( 'Version' ), 462 true462 array( 'in_footer' => true ) 463 463 ); 464 464 } … … 474 474 function twentytwentyone_block_editor_script() { 475 475 476 wp_enqueue_script( 'twentytwentyone-editor', get_theme_file_uri( '/assets/js/editor.js' ), array( 'wp-blocks', 'wp-dom' ), wp_get_theme()->get( 'Version' ), true);476 wp_enqueue_script( 'twentytwentyone-editor', get_theme_file_uri( '/assets/js/editor.js' ), array( 'wp-blocks', 'wp-dom' ), wp_get_theme()->get( 'Version' ), array( 'in_footer' => true ) ); 477 477 } 478 478 … … 566 566 array(), 567 567 wp_get_theme()->get( 'Version' ), 568 true568 array( 'in_footer' => true ) 569 569 ); 570 570 … … 574 574 array( 'customize-preview', 'customize-selective-refresh', 'jquery', 'twentytwentyone-customize-helpers' ), 575 575 wp_get_theme()->get( 'Version' ), 576 true576 array( 'in_footer' => true ) 577 577 ); 578 578 } … … 593 593 array(), 594 594 wp_get_theme()->get( 'Version' ), 595 true595 array( 'in_footer' => true ) 596 596 ); 597 597 }
Note: See TracChangeset
for help on using the changeset viewer.