<?php
/**
 * Block patterns
 *
 * @package nutri-coach
 * @since 1.0.0
 */

defined( 'ABSPATH' ) || exit;

/**
 * Register block patterns.
 *
 * @since 1.0.0
 * @package nutri-coach
 */
function nutri_coach_register_block_patterns() {

	/**
	 * Block pattern categories.
	 *
	 * @since 1.0.0
	 * @package nutri-coach
	 */
	$block_pattern_categories = apply_filters(
		'nutri_coach_block_pattern_categories',
		array(
			'nutri-coach-hero'                    => array( 'label' => __( 'Nutri Coach - Hero', 'nutri-coach' ) ),
			'nutri-coach-header'                  => array( 'label' => __( 'Nutri Coach - Header', 'nutri-coach' ) ),
			'nutri-coach-footer'                  => array( 'label' => __( 'Nutri Coach - Footer', 'nutri-coach' ) ),
			'nutri-coach-about'                   => array( 'label' => __( 'Nutri Coach - About', 'nutri-coach' ) ),
			'nutri-coach-story'                   => array( 'label' => __( 'Nutri Coach - Story', 'nutri-coach' ) ),
			'nutri-coach-words-from-coach'              => array( 'label' => __( 'Nutri Coach - Philosophy', 'nutri-coach' ) ),
			'nutri-coach-achievements'            => array( 'label' => __( 'Nutri Coach - Achievements', 'nutri-coach' ) ),
			'nutri-coach-consultation'            => array( 'label' => __( 'Nutri Coach - Consultation', 'nutri-coach' ) ),
			'nutri-coach-consultation-hero'       => array( 'label' => __( 'Nutri Coach - Consultation Hero', 'nutri-coach' ) ),
			'nutri-coach-consultation-faq'        => array( 'label' => __( 'Nutri Coach - Consultation FAQ', 'nutri-coach' ) ),
			'nutri-coach-programs'                => array( 'label' => __( 'Nutri Coach - Programs', 'nutri-coach' ) ),
			'nutri-coach-programs-hero'           => array( 'label' => __( 'Nutri Coach - Programs Hero', 'nutri-coach' ) ),
			'nutri-coach-program-call-schedule'   => array( 'label' => __( 'Nutri Coach - Program Call Schedule', 'nutri-coach' ) ),
			'nutri-coach-program-detail-hero'     => array( 'label' => __( 'Nutri Coach - Program Detail Hero', 'nutri-coach' ) ),
			'nutri-coach-program-pricing-card'    => array( 'label' => __( 'Nutri Coach - Program Pricing Card', 'nutri-coach' ) ),
			'nutri-coach-program-week-breakdown'  => array( 'label' => __( 'Nutri Coach - Program Week Breakdown', 'nutri-coach' ) ),
			'nutri-coach-program-whats-included'  => array( 'label' => __( 'Nutri Coach - Program What\'s Included', 'nutri-coach' ) ),
			'nutri-coach-results'                 => array( 'label' => __( 'Nutri Coach - Results', 'nutri-coach' ) ),
			'nutri-coach-reviews'                 => array( 'label' => __( 'Nutri Coach - Reviews', 'nutri-coach' ) ),
			'nutri-coach-blog'                    => array( 'label' => __( 'Nutri Coach - Blog', 'nutri-coach' ) ),
			'nutri-coach-social-media'            => array( 'label' => __( 'Nutri Coach - Social Media', 'nutri-coach' ) ),
			'nutri-coach-get-started'             => array( 'label' => __( 'Nutri Coach - Get Started', 'nutri-coach' ) ),
			'nutri-coach-home'                    => array( 'label' => __( 'Nutri Coach - Home', 'nutri-coach' ) ),
			'nutri-coach-archive'                 => array( 'label' => __( 'Nutri Coach - Archive', 'nutri-coach' ) ),
			'nutri-coach-error-404'               => array( 'label' => __( 'Nutri Coach - 404', 'nutri-coach' ) ),
		)
	);

	// Register pattern categories.
	if ( ! empty( $block_pattern_categories ) ) {
		foreach ( $block_pattern_categories as $category_name => $category_properties ) {
			register_block_pattern_category(
				$category_name,
				$category_properties
			);
		}
	}

}

add_action( 'init', 'nutri_coach_register_block_patterns' );
