get( 'Version' ) ); // Enqueue theme stylesheet. wp_enqueue_style( 'solstice-style' ); } endif; add_action( 'wp_enqueue_scripts', 'solstice_styles' ); if ( ! function_exists( 'solstice_block_stylesheets' ) ) : /** * Enqueue custom block stylesheets. * * @since solstice 1.0 * @return void */ function solstice_block_stylesheets() { $solstice_styled_blocks = array( 'core/accordion' => 'accordion', 'core/calendar' => 'calendar', ); foreach ( $solstice_styled_blocks as $block_name_with_namespace => $block_name ) { wp_enqueue_block_style( $block_name_with_namespace, array( 'handle' => 'solstice-' . $block_name, 'src' => get_template_directory_uri() . '/assets/css/blocks/' . $block_name . '.css', 'path' => get_template_directory() . '/assets/css/blocks/' . $block_name . '.css', ) ); } } endif; add_action( 'init', 'solstice_block_stylesheets' ); if ( ! function_exists( 'solstice_pattern_categories' ) ) : /** * Registers block pattern categories. * * @since Solstice 1.0 * @return void */ function solstice_pattern_categories() { register_block_pattern_category( 'solstice', array( 'label' => _x( 'Solstice', 'Block pattern category', 'solstice' ), 'description' => __( 'Patterns for the Solstice theme.', 'solstice' ), ) ); } endif; add_action( 'init', 'solstice_pattern_categories' );