<?php
/**
 * Honey Shop : Block Patterns
 *
 * @package Honey Shop 
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'honey-shop',
		array( 'label' => __( 'Honey Shop ', 'honey-shop' ) )
	);
}

/** 
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'honey-shop/banner-section',
		array(
			'title'      => __( 'Banner Section', 'honey-shop' ),
			'categories' => array( 'honey-shop' ),
			'content'    => "<!-- wp:group {\"metadata\":{\"categories\":[\"honey-shop\"],\"patternName\":\"honey-shop/banner-section\",\"name\":\"Banner Section\"},\"className\":\"banner-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group banner-section\"><!-- wp:cover {\"url\":\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/header-img.png\",\"id\":149,\"dimRatio\":0,\"customOverlayColor\":\"#f9e9cf\",\"isUserOverlayColor\":false,\"isDark\":false,\"sizeSlug\":\"full\",\"align\":\"full\",\"className\":\"banner-img14\",\"fontSize\":\"small\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover alignfull is-light banner-img14 has-small-font-size\"><img class=\"wp-block-cover__image-background wp-image-149 size-full\" alt=\"\" src=\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/header-img.png\" data-object-fit=\"cover\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\" style=\"background-color:#f9e9cf\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:columns {\"className\":\"banner-column-section\"} -->\n<div class=\"wp-block-columns banner-column-section\"><!-- wp:column {\"verticalAlignment\":\"center\",\"className\":\"banner-section1\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center banner-section1\"><!-- wp:heading {\"textAlign\":\"left\",\"level\":5,\"className\":\"banner-heading\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"#eb7d01\"}}},\"color\":{\"text\":\"#eb7d01\"}}} -->\n<h5 class=\"wp-block-heading has-text-align-left banner-heading has-text-color has-link-color\" style=\"color:#eb7d01\">Natures Nectar</h5>\n<!-- /wp:heading -->\n\n<!-- wp:heading {\"level\":1,\"className\":\"banner-main-heading\",\"style\":{\"color\":{\"text\":\"#033d50\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#033d50\"}}}}} -->\n<h1 class=\"wp-block-heading banner-main-heading has-text-color has-link-color\" style=\"color:#033d50\">Pure, Organic Honey – From Nature to Your Table</h1>\n<!-- /wp:heading -->\n\n<!-- wp:buttons {\"fontSize\":\"small\",\"layout\":{\"type\":\"flex\",\"justifyContent\":\"left\"}} -->\n<div class=\"wp-block-buttons has-custom-font-size has-small-font-size\"><!-- wp:button {\"backgroundColor\":\"white\",\"className\":\"is-style-outline banner-btn\",\"style\":{\"border\":{\"radius\":\"9px\"},\"color\":{\"text\":\"#033d50\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#033d50\"}}},\"typography\":{\"fontSize\":\"14px\"}}} -->\n<div class=\"wp-block-button is-style-outline banner-btn\"><a class=\"wp-block-button__link has-white-background-color has-text-color has-background has-link-color has-custom-font-size wp-element-button\" style=\"border-radius:9px;color:#033d50;font-size:14px\">Shop Now <img class=\"wp-image-101\" style=\"width: 10px;\" src=\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/btn-icon.png\" alt=\"\"></a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->\n\n<!-- wp:group {\"className\":\"banner-row-section\",\"fontSize\":\"small\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group banner-row-section has-small-font-size\"><!-- wp:gallery {\"imageCrop\":false,\"linkTo\":\"none\",\"className\":\"banner-gallery\",\"style\":{\"layout\":{\"selfStretch\":\"fit\",\"flexSize\":null}}} -->\n<figure class=\"wp-block-gallery has-nested-images columns-default banner-gallery\"><!-- wp:image {\"id\":165,\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"className\":\"gallery-img11\",\"style\":{\"color\":{\"duotone\":\"unset\"}}} -->\n<figure class=\"wp-block-image size-large gallery-img11\"><img src=\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/bottom-bg.png\" alt=\"\" class=\"wp-image-165\"/><figcaption class=\"wp-element-caption\"><img class=\"wp-image-91\" style=\"width: 150px;\" src=\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider-bottom.png\" alt=\"\"></figcaption></figure>\n<!-- /wp:image --></figure>\n<!-- /wp:gallery -->\n\n<!-- wp:cover {\"url\":\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/text-bg.png\",\"id\":261,\"dimRatio\":0,\"customOverlayColor\":\"#033d50\",\"isUserOverlayColor\":false,\"focalPoint\":{\"x\":0.05,\"y\":0.05},\"minHeight\":160,\"minHeightUnit\":\"px\",\"sizeSlug\":\"full\",\"className\":\"banner-img3\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover banner-img3\" style=\"min-height:160px\"><img class=\"wp-block-cover__image-background wp-image-261 size-full\" alt=\"\" src=\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/text-bg.png\" style=\"object-position:5% 5%\" data-object-fit=\"cover\" data-object-position=\"5% 5%\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\" style=\"background-color:#033d50\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:paragraph {\"align\":\"center\",\"placeholder\":\"Write title…\",\"fontSize\":\"small\"} -->\n<p class=\"has-text-align-center has-small-font-size\"><strong>Learn that </strong><br><strong>how we </strong><br><strong>extract </strong><strong>honey </strong><br><strong>from honeycomb</strong></p>\n<!-- /wp:paragraph --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:cover {\"url\":\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/right-bg.png\",\"id\":66,\"dimRatio\":0,\"customOverlayColor\":\"#f9c300\",\"isUserOverlayColor\":false,\"focalPoint\":{\"x\":0.01,\"y\":0.01},\"minHeightUnit\":\"px\",\"isDark\":false,\"sizeSlug\":\"full\",\"className\":\"banner-img1\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover is-light banner-img1\"><img class=\"wp-block-cover__image-background wp-image-66 size-full\" alt=\"\" src=\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/right-bg.png\" style=\"object-position:1% 1%\" data-object-fit=\"cover\" data-object-position=\"1% 1%\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\" style=\"background-color:#f9c300\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:cover {\"url\":\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/Right-img1.png\",\"id\":67,\"dimRatio\":0,\"customOverlayColor\":\"#b87d49\",\"isUserOverlayColor\":false,\"focalPoint\":{\"x\":0.76,\"y\":0},\"minHeight\":446,\"minHeightUnit\":\"px\",\"isDark\":false,\"sizeSlug\":\"full\",\"className\":\"banner-img2\",\"fontSize\":\"x-large\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover is-light banner-img2 has-x-large-font-size\" style=\"min-height:446px\"><img class=\"wp-block-cover__image-background wp-image-67 size-full\" alt=\"\" src=\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/Right-img1.png\" style=\"object-position:76% 0%\" data-object-fit=\"cover\" data-object-position=\"76% 0%\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\" style=\"background-color:#b87d49\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:paragraph {\"align\":\"center\",\"placeholder\":\"Write title…\",\"fontSize\":\"large\"} -->\n<p class=\"has-text-align-center has-large-font-size\"></p>\n<!-- /wp:paragraph --></div></div>\n<!-- /wp:cover --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:group -->",
		)
	);

	register_block_pattern(
		'honey-shop/category-section',
		array(
			'title'      => __( 'Category Section', 'honey-shop' ),
			'categories' => array( 'honey-shop' ),
			'content'    => "<!-- wp:columns {\"className\":\"banner-section\"} -->\n<div class=\"wp-block-columns banner-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"align\":\"center\",\"className\":\"small-heading\"} -->\n<p class=\"has-text-align-center small-heading\">Shop</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"textAlign\":\"center\",\"className\":\"product-heading\"} -->\n<h2 class=\"wp-block-heading has-text-align-center product-heading\"><strong>Our Bestseller</strong></h2>\n<!-- /wp:heading -->\n\n<!-- wp:woocommerce/product-collection {\"queryId\":2,\"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.\"},\"metadata\":{\"categories\":[\"honey-shop\"],\"patternName\":\"honey-shop/category-section\",\"name\":\"Category Section\"},\"className\":\"product-collection\"} -->\n<div class=\"wp-block-woocommerce-product-collection product-collection\"><!-- wp:woocommerce/product-template {\"className\":\"product-box\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"textColor\":\"black\"} -->\n<!-- wp:woocommerce/product-image {\"showSaleBadge\":false,\"isDescendentOfQueryLoop\":true,\"className\":\"product-img\"} -->\n<!-- wp:image {\"id\":94,\"width\":\"35px\",\"height\":\"auto\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"is-style-default \"} -->\n<figure class=\"wp-block-image size-full is-resized is-style-default\"><img src=\" " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/cart-removebg-preview.png\" alt=\"\" class=\"wp-image-94\" style=\"width:35px;height:auto\"/></figure>\n<!-- /wp:image -->\n<!-- /wp:woocommerce/product-image -->\n\n<!-- wp:post-title {\"textAlign\":\"center\",\"level\":3,\"isLink\":true,\"className\":\"prod-title text-capitalize post-title\",\"style\":{\"spacing\":{\"margin\":{\"bottom\":\"0.75rem\",\"top\":\"0\"}},\"color\":{\"text\":\"#033d50\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#033d50\"}}}},\"fontSize\":\"medium\",\"__woocommerceNamespace\":\"woocommerce/product-collection/product-title\"} /-->\n\n<!-- wp:woocommerce/product-price {\"isDescendentOfQueryLoop\":true,\"textAlign\":\"center\",\"className\":\"product-price\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"#fd7e14\"}}},\"color\":{\"text\":\"#fd7e14\"},\"typography\":{\"fontSize\":\"22px\"}}} /-->\n\n<!-- wp:woocommerce/product-button {\"isDescendentOfQueryLoop\":true,\"className\":\"order-btn\",\"backgroundColor\":\"white\",\"style\":{\"color\":{\"text\":\"#033d50\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#033d50\"}}}}} /-->\n<!-- /wp:woocommerce/product-template --></div>\n<!-- /wp:woocommerce/product-collection --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);
}