get( 'Version' ) ); } endif; add_action( 'wp_enqueue_scripts', 'denton_styles' ); if ( ! function_exists( 'denton_editor_style' ) ) : /** * Loads the same stylesheet in the editors so the two contexts cannot drift. * * @since Denton 1.0 * @return void */ function denton_editor_style() { add_editor_style( 'style.css' ); } endif; add_action( 'after_setup_theme', 'denton_editor_style' ); if ( ! function_exists( 'denton_pattern_categories' ) ) : /** * Registers the theme's two pattern categories. * * @since Denton 1.0 * @return void */ function denton_pattern_categories() { register_block_pattern_category( 'denton/pages', array( 'label' => __( 'Denton Starter Pages', 'denton' ), 'description' => __( 'Complete starter pages built from the section patterns.', 'denton' ), ) ); register_block_pattern_category( 'denton/sections', array( 'label' => __( 'Denton', 'denton' ), 'description' => __( 'The sections every Denton page is composed from.', 'denton' ), ) ); } endif; add_action( 'init', 'denton_pattern_categories' );