get( 'Version' ) ); // Enqueue theme stylesheet. wp_enqueue_style( 'datom-style' ); } endif; add_action( 'wp_enqueue_scripts', 'datom_styles' ); if ( ! function_exists( 'datom_block_stylesheets' ) ) : /** * Enqueue custom block stylesheets. * * @since datom 1.0 * @return void */ function datom_block_stylesheets() { $datom_styled_blocks = array( 'core/accordion' => 'accordion', 'core/calendar' => 'calendar', 'core/code' => 'code', ); foreach ( $datom_styled_blocks as $block_name_with_namespace => $block_name ) { wp_enqueue_block_style( $block_name_with_namespace, array( 'handle' => 'datom-' . $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', 'datom_block_stylesheets' ); if ( ! function_exists( 'datom_register_pattern_categories' ) ) : /** * Registers the "Datom" block pattern category. * * @since Datom 1.0 * @return void */ function datom_register_pattern_categories() { register_block_pattern_category( 'datom', array( 'label' => __( 'Datom', 'datom' ), 'description' => __( 'Patterns for the Datom theme.', 'datom' ), ) ); } endif; add_action( 'init', 'datom_register_pattern_categories' );