add_data( 'jquery', 'group', 1 ); $wp_scripts->add_data( 'jquery-core', 'group', 1 ); $wp_scripts->add_data( 'jquery-migrate', 'group', 1 ); } } // end air_light_move_jquery_into_footer /** * Enqueue scripts and styles. */ function enqueue_theme_scripts() { if ( 'development' === getenv( 'WP_ENV' ) ) { $air_light_template = 'global'; } else { $air_light_template = 'global.min'; } // Styles. wp_enqueue_style( 'styles', get_theme_file_uri( "css/{$air_light_template}.css" ), array(), filemtime( get_theme_file_path( "css/{$air_light_template}.css" ) ) ); // Scripts. wp_enqueue_script( 'jquery-core' ); wp_enqueue_script( 'scripts', get_theme_file_uri( 'js/all.js' ), array(), filemtime( get_theme_file_path( 'js/all.js' ) ), true ); // Required comment-reply script if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_localize_script( 'scripts', 'air_light_screenReaderText', array( 'expand' => esc_html__( 'Open child menu', 'air-light' ), 'collapse' => esc_html__( 'Close child menu', 'air-light' ), ) ); } // end air_light_scripts