get( 'Version' ) ); } add_action( 'wp_enqueue_scripts', 'abisko_styles' ); /* ----------------------------------------------------------------------------------------------- BLOCK PATTERNS Register theme specific block pattern categories. The patterns themselves are stored in /patterns/. --------------------------------------------------------------------------------------------------- */ function abisko_register_block_patterns() { // The block pattern categories included in Abisko. $abisko_block_pattern_categories = apply_filters( 'abisko_block_pattern_categories', array( 'abisko' => array( 'label' => esc_html__( 'Abisko - All', 'abisko' ), ), 'abisko-blog' => array( 'label' => esc_html__( 'Abisko - Blog', 'abisko' ), ), 'abisko-cta' => array( 'label' => esc_html__( 'Abisko - Call to Action', 'abisko' ), ), 'abisko-general' => array( 'label' => esc_html__( 'Abisko - General', 'abisko' ), ), 'abisko-hero' => array( 'label' => esc_html__( 'Abisko - Hero', 'abisko' ), ), 'abisko-media' => array( 'label' => esc_html__( 'Abisko - Media', 'abisko' ), ), 'abisko-page' => array( 'label' => esc_html__( 'Abisko - Page Layouts', 'abisko' ), ), ) ); // Sort the block pattern categories alphabetically based on the label value, to ensure alphabetized order when the strings are localized. uasort( $abisko_block_pattern_categories, function( $a, $b ) { return strcmp( $a["label"], $b["label"] ); } ); // Register block pattern categories. foreach ( $abisko_block_pattern_categories as $slug => $settings ) { register_block_pattern_category( $slug, $settings ); } } add_action( 'init', 'abisko_register_block_patterns' ); /* ----------------------------------------------------------------------------------------------- FILTER COMMENT FORM DEFAULTS Modify the heading and title of the comments form. --------------------------------------------------------------------------------------------------- */ function abisko_comment_form_defaults( $defaults ) { return array_merge( $defaults, array( 'title_reply_before' => '