<?php
/**
 * Core Fitness: Block Patterns
 *
 * @package It Services
 * @since   1.0.0
 */

/**
 * Register Block Pattern Category.
 */
if ( function_exists( 'register_block_pattern_category' ) ) {

	register_block_pattern_category(
		'core-fitness',
		array( 'label' => __( 'Core Fitness', 'core-fitness' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'core-fitness/banner-section',
		array(
			'title'      => __( 'Banner Section', 'core-fitness' ),
			'categories' => array( 'core-fitness' ),
			'content'    => "<!-- wp:cover {\"url\":\"" . get_theme_file_uri() . "/block-patterns/images/banner.png\",\"id\":285,\"dimRatio\":50,\"align\":\"full\",\"className\":\"banner-section-content\"} -->\n<div class=\"wp-block-cover alignfull banner-section-content\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-285\" alt=\"\" src=\"" . get_theme_file_uri() . "/block-patterns/images/banner.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column {\"width\":\"25%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:25%\"></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"50%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:50%\"><!-- wp:heading {\"textAlign\":\"center\",\"level\":1,\"style\":{\"typography\":{\"fontSize\":\"40px\",\"textTransform\":\"uppercase\"}},\"textColor\":\"white\"} -->\n<h1 class=\"has-text-align-center has-white-color has-text-color\" style=\"font-size:40px;text-transform:uppercase\">Introduce new sections and organize content  content</h1>\n<!-- /wp:heading -->\n\n<!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textColor\":\"white\",\"align\":\"center\",\"style\":{\"color\":{\"background\":\"var(--primary-color)\"},\"border\":{\"radius\":\"30px\"},\"typography\":{\"fontSize\":\"14px\"}}} -->\n<div class=\"wp-block-button aligncenter has-custom-font-size\" style=\"font-size:14px\"><a class=\"wp-block-button__link has-white-color has-text-color has-background\" style=\"border-radius:30px;background-color:var(--primary-color)\">READ MORE</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"25%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:25%\"></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover -->",
		)
	);

	register_block_pattern(
		'core-fitness/new-products-section',
		array(
			'title'      => __( 'New Products Section', 'core-fitness' ),
			'categories' => array( 'core-fitness' ),
			'content'    => "<!-- wp:group {\"align\":\"wide\",\"className\":\"new-product-section pt-md-3 pt-3\"} -->\n<div class=\"wp-block-group alignwide new-product-section pt-md-3 pt-3\"><!-- wp:heading {\"textAlign\":\"center\",\"style\":{\"typography\":{\"textTransform\":\"uppercase\",\"fontSize\":\"35px\"},\"color\":{\"text\":\"var(--primary-color)\"}},\"className\":\"py-md-3 py-2\"} -->\n<h2 class=\"has-text-align-center py-md-3 py-2 has-text-color\" style=\"color:var(--primary-color);font-size:35px;text-transform:uppercase\">NEW ARRIVALS</h2>\n<!-- /wp:heading -->\n\n<!-- wp:woocommerce/product-category {\"columns\":4,\"rows\":1,\"categories\":[18],\"align\":\"wide\",\"className\":\"pt-md-4 pt-3 mx-md-5 mx-3\"} /--></div>\n<!-- /wp:group -->",
		)
	);
}