<?php
/**
 * Kid Toys Store: Block Patterns
 *
 * @package Kid Toys Store
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'kid-toys-store',
		array( 'label' => __( 'Kid Toys Store', 'kid-toys-store' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'kid-toys-store/banner-section',
		array(
			'title'      => __( 'Banner Section', 'kid-toys-store' ),
			'categories' => array( 'kid-toys-store' ),
			'content'    => "<!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/images/Banner.png\",\"id\":3328,\"dimRatio\":0,\"align\":\"full\",\"className\":\"kid-toys-store-banner-section\"} -->\n<div class=\"wp-block-cover alignfull kid-toys-store-banner-section\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-3328\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/images/Banner.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:columns {\"className\":\"kid-toys-store-banner-section-colum px-lg-5 mx-lg-5 mx-md-5\"} -->\n<div class=\"wp-block-columns kid-toys-store-banner-section-colum px-lg-5 mx-lg-5 mx-md-5\"><!-- wp:column {\"width\":\"60%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:60%\"><!-- wp:heading {\"level\":1,\"style\":{\"typography\":{\"textTransform\":\"uppercase\",\"fontSize\":\"40px\"}}} -->\n<h1 style=\"font-size:40px;text-transform:uppercase\">Lorem ipsum&nbsp;is simply dummy text </h1>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"16px\"}}} -->\n<p style=\"font-size:16px\">Lorem Ipsum&nbsp;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textColor\":\"black\",\"style\":{\"typography\":{\"fontSize\":\"14px\"},\"color\":{\"background\":\"var(--tertiary-color)\"}}} -->\n<div class=\"wp-block-button has-custom-font-size\" style=\"font-size:14px\"><a class=\"wp-block-button__link has-black-color has-text-color has-background\" style=\"background-color:var(--tertiary-color)\">SHOP NOW</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"40%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:40%\"><!-- wp:paragraph -->\n<p></p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover -->",
		)
	);

	register_block_pattern(
		'kid-toys-store/product-section',
		array(
			'title'      => __( 'Product Section', 'kid-toys-store' ),
			'categories' => array( 'kid-toys-store' ),
			'content'    => "<!-- wp:group {\"className\":\"kid-toys-store-featured-products-section pt-5 R\"} -->\n<div class=\"wp-block-group kid-toys-store-featured-products-section pt-5 R\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"25px\"},\"color\":{\"text\":\"var(--primary-color)\"}}} -->\n<p class=\"has-text-color\" style=\"color:var(--primary-color);font-size:25px\">MOST POPULAR TOYS</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:woocommerce/product-category {\"columns\":4,\"rows\":1,\"categories\":[15],\"contentVisibility\":{\"image\":true,\"title\":true,\"price\":true,\"rating\":false,\"button\":true},\"className\":\"products-row \"} /--></div>\n<!-- /wp:group -->",
		)
	);
}