<?php

function multipurpose_business_fse_styles_scripts() {

	// Parent registers di-business-style-default as the child stylesheet; dequeue to avoid a handle conflict.
	wp_dequeue_style( 'di-business-style-default' );

	$parent_version = defined( 'DI_BUSINESS_VERSION' ) ? DI_BUSINESS_VERSION : wp_get_theme( 'di-business' )->get( 'Version' );

	wp_enqueue_style(
		'di-business-parent-style',
		get_template_directory_uri() . '/style.css',
		array( 'bootstrap', 'font-awesome' ),
		$parent_version,
		'all'
	);

	$dependency = array( 'bootstrap', 'font-awesome', 'di-business-parent-style', 'di-business-style-core' );
	if( class_exists( 'WooCommerce' ) ) {
		$dependency[] = 'di-business-style-woo';
	}

	wp_enqueue_style(
		'multipurpose-business-fse',
		get_stylesheet_directory_uri() . '/style.css',
		$dependency,
		wp_get_theme()->get( 'Version' ),
		'all'
	);

}
add_action( 'wp_enqueue_scripts', 'multipurpose_business_fse_styles_scripts', 20 );


function multipurpose_business_fse_register_pattern_categories() {
	register_block_pattern_category( 'multipurpose-business-fse/patterns-cat', array( 
		'label'       => __( 'Multipurpose Business FSE', 'multipurpose-business-fse' ),
		'description' => __( 'Multipurpose Business FSE Theme patterns.', 'multipurpose-business-fse' )
	) );
}
add_action( 'init', 'multipurpose_business_fse_register_pattern_categories', 9 );



