esc_html__( 'Sidebar', 'air-light' ),
'id' => 'sidebar-1',
'description' => esc_html__( 'Add widgets here.', 'air-light' ),
'before_widget' => '',
'before_title' => '
',
) );
}
add_action( 'widgets_init', '_air_light_widgets_init' );
/**
* 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' );