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

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

	register_block_pattern_category(
		'shoes-store',
		array( 'label' => __( 'Shoes Store ', 'shoes-store' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'shoes-store/slider-section',
		array(
			'title'      => __( 'Slider Section', 'shoes-store' ),
			'categories' => array( 'shoes-store' ),
			'content'    => "<!-- wp:group {\"metadata\":{\"categories\":[\"shoes-store\"],\"patternName\":\"shoes-store/slider-section\",\"name\":\"Slider Section\"},\"align\":\"full\",\"className\":\"banner-grp  \",\"style\":{\"color\":{\"gradient\":\"linear-gradient(89deg,rgb(34,34,34) 100%,rgb(255,255,255) 100%)\"}},\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group alignfull banner-grp has-background\" style=\"background:linear-gradient(89deg,rgb(34,34,34) 100%,rgb(255,255,255) 100%)\"><!-- wp:columns {\"className\":\"banner-col\"} -->\n<div class=\"wp-block-columns banner-col\"><!-- wp:column {\"width\":\"30%\",\"className\":\"first-col\"} -->\n<div class=\"wp-block-column first-col\" style=\"flex-basis:30%\"><!-- wp:group {\"className\":\"first-col-grp\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group first-col-grp\"><!-- wp:heading {\"level\":1,\"style\":{\"typography\":{\"fontSize\":\"40px\",\"fontStyle\":\"normal\",\"fontWeight\":\"500\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<h1 class=\"wp-block-heading has-white-color has-text-color has-link-color\" style=\"font-size:40px;font-style:normal;font-weight:500\">Step into Style: Comfort, </h1>\n<!-- /wp:heading -->\n\n<!-- wp:heading {\"textAlign\":\"left\",\"level\":1,\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"fontSize\":\"40px\",\"fontStyle\":\"normal\",\"fontWeight\":\"500\"}},\"textColor\":\"white\"} -->\n<h1 class=\"wp-block-heading has-text-align-left has-white-color has-text-color has-link-color\" style=\"font-size:40px;font-style:normal;font-weight:500\">Performance, and Innovation.<a><br></a></h1>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"14px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-white-color has-text-color has-link-color\" style=\"font-size:14px\">Discover the latest sneaker trends crafted for style, </p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"14px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-white-color has-text-color has-link-color\" style=\"font-size:14px\">performance, and all-day comfort, wherever you go.</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"70%\",\"className\":\"second-col \"} -->\n<div class=\"wp-block-column second-col\" style=\"flex-basis:70%\"><!-- wp:group {\"className\":\"banner-img-grp   position-relative\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group banner-img-grp  position-relative\"><!-- wp:image {\"id\":102,\"width\":\"auto\",\"height\":\"570px\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"bg-img\"} -->\n<figure class=\"wp-block-image size-full is-resized bg-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/shoes-bg.png\" alt=\"\" class=\"wp-image-102\" style=\"width:auto;height:570px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":103,\"width\":\"auto\",\"height\":\"370px\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"shoe-img  \"} -->\n<figure class=\"wp-block-image size-full is-resized shoe-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider4.png\" alt=\"\" class=\"wp-image-103\" style=\"width:auto;height:370px\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);

	register_block_pattern(
		'shoes-store/product-section',
		array(
			'title'      => __( 'Product Section ', 'shoes-store' ),
			'categories' => array( 'shoes-store' ),
			'content'    => "<!-- wp:group {\"metadata\":{\"categories\":[\"shoes-store\"],\"patternName\":\"shoes-store/product-section\",\"name\":\"Product Section \"},\"className\":\"product-sec mt-5\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group product-sec mt-5\"><!-- wp:paragraph {\"align\":\"center\",\"className\":\"prod-title mb-5\",\"style\":{\"typography\":{\"fontSize\":\"33px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\",\"letterSpacing\":\"1px\"}}} -->\n<p class=\"has-text-align-center prod-title mb-5\" style=\"font-size:33px;font-style:normal;font-weight:600;letter-spacing:1px\">New Product</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:woocommerce/product-collection {\"queryId\":0,\"query\":{\"perPage\":4,\"pages\":0,\"offset\":0,\"postType\":\"product\",\"order\":\"asc\",\"orderBy\":\"price\",\"search\":\"\",\"exclude\":[],\"inherit\":false,\"taxQuery\":[],\"isProductCollectionBlock\":true,\"featured\":false,\"woocommerceOnSale\":false,\"woocommerceStockStatus\":[\"instock\",\"outofstock\",\"onbackorder\"],\"woocommerceAttributes\":[],\"woocommerceHandPickedProducts\":[],\"filterable\":true,\"relatedBy\":{\"categories\":true,\"tags\":true}},\"tagName\":\"div\",\"displayLayout\":{\"type\":\"flex\",\"columns\":4,\"shrinkColumns\":true},\"dimensions\":{\"widthType\":\"fill\"},\"queryContextIncludes\":[\"collection\"],\"__privatePreviewState\":{\"isPreview\":false,\"previewMessage\":\"Actual products will vary depending on the page being viewed.\"},\"className\":\"prod-collection\"} -->\n<div class=\"wp-block-woocommerce-product-collection prod-collection\"><!-- wp:woocommerce/product-template {\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"textColor\":\"black\"} -->\n<!-- wp:woocommerce/product-image {\"showSaleBadge\":false,\"isDescendentOfQueryLoop\":true} /-->\n\n<!-- wp:post-title {\"textAlign\":\"center\",\"level\":3,\"isLink\":true,\"className\":\"prod-title text-capitalize\",\"style\":{\"spacing\":{\"margin\":{\"bottom\":\"0.75rem\",\"top\":\"0\"}}},\"fontSize\":\"medium\",\"__woocommerceNamespace\":\"woocommerce/product-collection/product-title\"} /-->\n\n<!-- wp:woocommerce/product-price {\"isDescendentOfQueryLoop\":true,\"textAlign\":\"center\",\"className\":\"prod-price\",\"fontSize\":\"small\"} /-->\n<!-- /wp:woocommerce/product-template --></div>\n<!-- /wp:woocommerce/product-collection --></div>\n<!-- /wp:group -->",
		)
	);
}