get( 'Version' ) ); } add_action( 'wp_enqueue_scripts', 'blockery_scripts' ); /** * Register block styles. */ function blockery_register_block_styles() { // Register a style variation for the Quote block. register_block_style( 'core/quote', array( 'name' => 'blockery-quote', 'label' => __( 'Blockery Style', 'blockery' ), 'inline_style' => '.wp-block-quote.is-style-blockery-quote { border-left: 4px solid var(--wp--preset--color--primary); padding-left: 1.5rem; font-style: italic; }', ) ); // Register a style variation for the Button block. register_block_style( 'core/button', array( 'name' => 'blockery-button', 'label' => __( 'Blockery Style', 'blockery' ), 'inline_style' => '.wp-block-button.is-style-blockery-button .wp-block-button__link { border-radius: 0; text-transform: uppercase; letter-spacing: 0.5px; }', ) ); // Register a style variation for the Separator block. register_block_style( 'core/separator', array( 'name' => 'blockery-separator', 'label' => __( 'Blockery Style', 'blockery' ), 'inline_style' => '.wp-block-separator.is-style-blockery-separator { border-top: 2px solid var(--wp--preset--color--primary); margin: 2rem 0; }', ) ); } add_action( 'init', 'blockery_register_block_styles' ); /** * Register block patterns. */ function blockery_register_block_patterns() { // Register a hero pattern. register_block_pattern( 'blockery/hero', array( 'title' => __( 'Hero Section', 'blockery' ), 'description' => __( 'A hero section with title, description, and call-to-action button.', 'blockery' ), 'content' => '
' . esc_html__( 'A modern, block-based WordPress theme built for Full Site Editing.', 'blockery' ) . '
' . esc_html__( 'Add your content here for the first column.', 'blockery' ) . '
' . esc_html__( 'Add your content here for the second column.', 'blockery' ) . '
' . esc_html__( 'Join thousands of users who are already using Blockery.', 'blockery' ) . '