get( 'Version' ); $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; // Enqueue the compiled Bootstrap + custom CSS. wp_enqueue_style( 'wp-bootstrap-style', get_template_directory_uri() . '/assets/css/style' . $suffix . '.css', array(), $theme_version ); // Enqueue Bootstrap JS bundle (includes Popper). wp_enqueue_script( 'wp-bootstrap-js', get_template_directory_uri() . '/assets/js/bootstrap.bundle.min.js', array(), $theme_version, true ); } endif; add_action( 'wp_enqueue_scripts', 'wp_bootstrap_enqueue_scripts' ); /** * Register block pattern categories. */ if ( ! function_exists( 'wp_bootstrap_pattern_categories' ) ) : function wp_bootstrap_pattern_categories() { register_block_pattern_category( 'wp-bootstrap_page', array( 'label' => __( 'Pages', 'wp-bootstrap' ), 'description' => __( 'A collection of full page layouts.', 'wp-bootstrap' ), ) ); } endif; add_action( 'init', 'wp_bootstrap_pattern_categories' ); /** * Initialize Twig template engine. */ if ( ! function_exists( 'wp_bootstrap_init_twig' ) ) : function wp_bootstrap_init_twig() { if ( class_exists( '\\WPBootstrap\\Twig\\TwigService' ) ) { \WPBootstrap\Twig\TwigService::getInstance(); } } endif; add_action( 'after_setup_theme', 'wp_bootstrap_init_twig' );