2020-03-13 18:23:34 +08:00
|
|
|
<?php
|
|
|
|
|
2023-12-09 16:39:41 +08:00
|
|
|
define('BOOTSTRAP_VERSION', '5.3.1');
|
|
|
|
define('BOOTSTRAP_ICON_VERSION', '1.9.1');
|
|
|
|
|
2020-03-13 18:23:34 +08:00
|
|
|
function zerro_setup() {
|
2023-12-09 16:39:41 +08:00
|
|
|
|
|
|
|
add_theme_support( 'menus' );
|
|
|
|
add_theme_support( 'title-tag' );
|
2020-03-13 18:23:34 +08:00
|
|
|
|
|
|
|
add_theme_support(
|
|
|
|
'post-formats',
|
|
|
|
array(
|
|
|
|
'image',)
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
2023-12-09 16:39:41 +08:00
|
|
|
|
|
|
|
function bootstrap_script_init() {
|
|
|
|
wp_enqueue_style( 'bootstrap_icons', get_template_directory_uri() . '/css/bootstrap-icons.css', array(), BOOTSTRAP_ICON_VERSION, 'all' );
|
|
|
|
wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), BOOTSTRAP_VERSION, 'all' );
|
|
|
|
wp_enqueue_style( 'main-style', get_stylesheet_uri());
|
|
|
|
|
|
|
|
wp_enqueue_script('main', get_template_directory_uri() . '/js/main.js');
|
|
|
|
wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.bundle.min.js', [ 'jquery' ] );
|
|
|
|
}
|
|
|
|
|
2020-03-13 18:23:34 +08:00
|
|
|
add_action( 'after_setup_theme', 'zerro_setup' );
|
2023-12-09 16:39:41 +08:00
|
|
|
add_action( 'wp_enqueue_scripts', 'bootstrap_script_init' );
|
2020-03-13 18:23:34 +08:00
|
|
|
|
|
|
|
?>
|