esc_html__( 'Sidebar', 'air-light' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'air-light' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', '_air_light_widgets_init' ); /** * Move jQuery to footer */ function air_light_move_jquery_into_footer( $wp_scripts ) { if ( ! is_admin() ) { $wp_scripts->add_data( 'jquery', 'group', 1 ); $wp_scripts->add_data( 'jquery-core', 'group', 1 ); $wp_scripts->add_data( 'jquery-migrate', 'group', 1 ); } } add_action( 'wp_default_scripts', 'air_light_move_jquery_into_footer' ); /** * Enqueue scripts and styles. */ function air_light_scripts() { $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' ), ) ); } add_action( 'wp_enqueue_scripts', 'air_light_scripts' );