get( 'Version' ); wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/assets/css/style.css', array(), $version ); } add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\biznova_enqueue_style_sheet' ); /** * Add editor styles */ function biznova_editor_enqueue_style_sheet() { wp_enqueue_style( 'editor-style', get_template_directory_uri() . '/assets/css/style.css', array(), wp_get_theme()->get( 'Version' ) ); } add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\biznova_editor_enqueue_style_sheet' ); if ( ! function_exists( 'biznova_pattern_categories' ) ) : /** * Register pattern categories * * @since 1.2.4 * @return void */ function biznova_pattern_categories() { // Register block pattern categories $pattern_categories = array( array( 'slug' => 'biznova/page', 'label' => __( 'Pages', 'biznova' ), 'description' => __( 'A collection of full page layouts.', 'biznova' ), ), array( 'slug' => 'biznova/card', 'label' => __( 'Card', 'biznova' ), 'description' => __( 'A collection of card patterns.', 'biznova' ), ), array( 'slug' => 'biznova/about', 'label' => __( 'about', 'biznova' ), 'description' => __( 'A collection of pricing patterns.', 'biznova' ), ), array( 'slug' => 'biznova/cta', 'label' => __( 'CTA', 'biznova' ), 'description' => __( 'A collection of CTA patterns.', 'biznova' ), ), array( 'slug' => 'biznova/hero-section', 'label' => __( 'hero-section', 'biznova' ), 'description' => __( 'A collection of heroes patterns.', 'biznova' ), ), ); // Register each pattern category foreach ( $pattern_categories as $category ) { register_block_pattern_category( $category['slug'], $category ); } } endif; add_action( 'init', NS . 'biznova_pattern_categories' ); require_once DIR . 'inc/block-styles.php';