<?php
/**
 * VW Wholesaler : Block Patterns
 *
 * @package VW Wholesaler 
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'vw-wholesaler',
		array( 'label' => __( 'VW Wholesaler ', 'vw-wholesaler' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'vw-wholesaler/banner-section',
		array(
			'title'      => __( 'Banner Section', 'vw-wholesaler' ),
			'categories' => array( 'vw-wholesaler' ),
			'content'    => "<!-- wp:group {\"tagName\":\"section\",\"align\":\"full\",\"className\":\"banner-section\",\"style\":{\"color\":{\"background\":\"#b4bfc926\"}},\"layout\":{\"type\":\"constrained\"}} -->\n<section class=\"wp-block-group alignfull banner-section has-background\" style=\"background-color:#b4bfc926\"><!-- wp:columns {\"align\":\"wide\",\"className\":\"banner-main d-flex justify-content-center\"} -->\n<div class=\"wp-block-columns alignwide banner-main d-flex justify-content-center\"><!-- wp:column {\"width\":\"42rem\",\"className\":\"banner-col-1 position-relative\"} -->\n<div class=\"wp-block-column banner-col-1 position-relative\" style=\"flex-basis:42rem\"><!-- wp:paragraph {\"className\":\"shadow-text d-flex justify-content-center position-absolute\",\"style\":{\"typography\":{\"fontSize\":\"100px\",\"fontStyle\":\"normal\",\"fontWeight\":\"900\"}}} -->\n<p class=\"shadow-text d-flex justify-content-center position-absolute\" style=\"font-size:100px;font-style:normal;font-weight:900\">BulkHub</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"className\":\"non-shadow-text \",\"style\":{\"typography\":{\"fontSize\":\"18px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#171717\"}}},\"color\":{\"text\":\"#171717\"}}} -->\n<p class=\"non-shadow-text has-text-color has-link-color\" style=\"color:#171717;font-size:18px;font-style:normal;font-weight:600\">BulkHub</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"level\":1,\"className\":\"main-heading\",\"style\":{\"typography\":{\"fontSize\":\"35px\",\"fontStyle\":\"normal\",\"fontWeight\":\"500\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#ff6208\"}}},\"color\":{\"text\":\"#ff6208\"}}} -->\n<h1 class=\"wp-block-heading main-heading has-text-color has-link-color\" style=\"color:#ff6208;font-size:35px;font-style:normal;font-weight:500\">Your One-Stop&nbsp;<span class=\"title-text\">Destination</span>&nbsp;for Premium Wholesale Products at Unbeatable Prices</h1>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"className\":\"main-para\",\"style\":{\"typography\":{\"fontSize\":\"15px\",\"fontStyle\":\"normal\",\"fontWeight\":\"400\"},\"color\":{\"text\":\"#5a5a5a\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#5a5a5a\"}}}}} -->\n<p class=\"main-para has-text-color has-link-color\" style=\"color:#5a5a5a;font-size:15px;font-style:normal;font-weight:400\">Discover unbeatable deals on top-quality products at BulkZone. From electronics to apparel, shop our extensive selection of wholesale goods and enjoy exclusive discounts on bulk orders. Start saving today!</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons {\"className\":\"button-image\"} -->\n<div class=\"wp-block-buttons button-image\"><!-- wp:button {\"className\":\"is-style-outline  banner-button\",\"fontSize\":\"small\"} -->\n<div class=\"wp-block-button has-custom-font-size is-style-outline banner-button has-small-font-size\"><a class=\"wp-block-button__link wp-element-button\">Explore More</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->\n\n<!-- wp:group {\"className\":\"banner-search-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group banner-search-section\"><!-- wp:columns {\"className\":\"banner-search-sec-col  gap-2\"} -->\n<div class=\"wp-block-columns banner-search-sec-col  gap-2\"><!-- wp:column {\"verticalAlignment\":\"top\",\"width\":\"75%\",\"className\":\"search-bar-col\"} -->\n<div class=\"wp-block-column is-vertically-aligned-top search-bar-col\" style=\"flex-basis:75%\"><!-- wp:search {\"label\":\"\",\"showLabel\":false,\"placeholder\":\"Search Products...\",\"width\":718,\"widthUnit\":\"px\",\"buttonText\":\"\",\"buttonPosition\":\"button-inside\",\"buttonUseIcon\":true,\"align\":\"center\",\"className\":\"search-bar\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} /--></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\",\"width\":\"25%\",\"className\":\"cat-sec\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center cat-sec\" style=\"flex-basis:25%\"><!-- wp:categories {\"taxonomy\":\"product_cat\",\"displayAsDropdown\":true,\"showLabel\":false,\"align\":\"center\",\"className\":\"category-button\"} /--></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"42rem\",\"className\":\"banner-col-2 d-flex flex-wrap justify-content-end position-relative z-2 mt-5\"} -->\n<div class=\"wp-block-column banner-col-2 d-flex flex-wrap justify-content-end position-relative z-2 mt-5\" style=\"flex-basis:42rem\"><!-- wp:group {\"className\":\"first-row-group\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group first-row-group\"><!-- wp:columns {\"className\":\"banner-image-columns  img-row1\"} -->\n<div class=\"wp-block-columns banner-image-columns  img-row1\"><!-- wp:column {\"className\":\"single-image-col\"} -->\n<div class=\"wp-block-column single-image-col\"><!-- wp:image {\"id\":93,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"fig\"} -->\n<figure class=\"wp-block-image size-full fig\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner1.png\" alt=\"\" class=\"wp-image-93\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"single-image-col\"} -->\n<div class=\"wp-block-column single-image-col\"><!-- wp:image {\"id\":94,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"fig\"} -->\n<figure class=\"wp-block-image size-full fig\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner2.png\" alt=\"\" class=\"wp-image-94\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"single-image-col\"} -->\n<div class=\"wp-block-column single-image-col\"><!-- wp:image {\"id\":95,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"fig\"} -->\n<figure class=\"wp-block-image size-full fig\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner3.png\" alt=\"\" class=\"wp-image-95\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->\n\n<!-- wp:group {\"className\":\"second-row-group\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group second-row-group\"><!-- wp:columns {\"className\":\"banner-image-columns  img-row2\"} -->\n<div class=\"wp-block-columns banner-image-columns  img-row2\"><!-- wp:column {\"className\":\"single-image-col\"} -->\n<div class=\"wp-block-column single-image-col\"><!-- wp:image {\"id\":96,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"fig\"} -->\n<figure class=\"wp-block-image size-full fig\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner4.png\" alt=\"\" class=\"wp-image-96\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"single-image-col\"} -->\n<div class=\"wp-block-column single-image-col\"><!-- wp:image {\"id\":97,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"fig\"} -->\n<figure class=\"wp-block-image size-full fig\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner5.png\" alt=\"\" class=\"wp-image-97\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"single-image-col\"} -->\n<div class=\"wp-block-column single-image-col\"><!-- wp:image {\"id\":98,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"fig\"} -->\n<figure class=\"wp-block-image size-full fig\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner6.png\" alt=\"\" class=\"wp-image-98\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->\n\n<!-- wp:group {\"className\":\"third-row-group\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group third-row-group\"><!-- wp:columns {\"className\":\"banner-image-columns   img-row3\"} -->\n<div class=\"wp-block-columns banner-image-columns  img-row3\"><!-- wp:column {\"className\":\"single-image-col\"} -->\n<div class=\"wp-block-column single-image-col\"><!-- wp:image {\"id\":99,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"fig\"} -->\n<figure class=\"wp-block-image size-full fig\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner7.png\" alt=\"\" class=\"wp-image-99\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"single-image-col\"} -->\n<div class=\"wp-block-column single-image-col\"><!-- wp:image {\"id\":100,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"fig\"} -->\n<figure class=\"wp-block-image size-full fig\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner8.png\" alt=\"\" class=\"wp-image-100\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"single-image-col\"} -->\n<div class=\"wp-block-column single-image-col\"><!-- wp:image {\"id\":101,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"fig\"} -->\n<figure class=\"wp-block-image size-full fig\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner9.png\" alt=\"\" class=\"wp-image-101\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:image {\"id\":103,\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"align\":\"full\",\"className\":\"bottom-image\"} -->\n<figure class=\"wp-block-image alignfull size-large bottom-image\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner-bottom.png\" alt=\"\" class=\"wp-image-103\"/></figure>\n<!-- /wp:image --></section>\n<!-- /wp:group -->",
		)
	);

	register_block_pattern(
		'vw-wholesaler/category-section',
		array(
			'title'      => __( 'Category Section ', 'vw-wholesaler' ),
			'categories' => array( 'vw-wholesaler' ),
			'content'    => "<!-- wp:group {\"className\":\"category-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group category-section\"><!-- wp:spacer -->\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div>\n<!-- /wp:spacer -->\n\n<!-- wp:paragraph {\"align\":\"left\",\"className\":\"category-text\",\"style\":{\"typography\":{\"fontSize\":\"15px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"},\"color\":{\"text\":\"#171717\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#171717\"}}}}} -->\n<p class=\"has-text-align-left category-text has-text-color has-link-color\" style=\"color:#171717;font-size:15px;font-style:normal;font-weight:600\">All Category</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"textAlign\":\"left\",\"className\":\"category-title\",\"style\":{\"typography\":{\"fontSize\":\"25px\",\"fontStyle\":\"normal\",\"fontWeight\":\"400\"},\"color\":{\"text\":\"#ff6208\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#ff6208\"}}}}} -->\n<h2 class=\"wp-block-heading has-text-align-left category-title has-text-color has-link-color\" style=\"color:#ff6208;font-size:25px;font-style:normal;font-weight:400\">Explore our diverse range of product categories.</h2>\n<!-- /wp:heading -->\n\n<!-- wp:columns {\"className\":\"category-columns\"} -->\n<div class=\"wp-block-columns category-columns\"><!-- wp:column {\"width\":\"250px\",\"className\":\"category-box\"} -->\n<div class=\"wp-block-column category-box\" style=\"flex-basis:250px\"><!-- wp:paragraph {\"align\":\"center\",\"className\":\"category-list-heading p-0\",\"style\":{\"typography\":{\"fontSize\":\"18px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#171717\"}}},\"color\":{\"text\":\"#171717\"}}} -->\n<p class=\"has-text-align-center category-list-heading p-0 has-text-color has-link-color\" style=\"color:#171717;font-size:18px;font-style:normal;font-weight:600\">Category</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:group {\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group\"><!-- wp:categories {\"taxonomy\":\"product_cat\",\"align\":\"center\",\"className\":\"product-category \",\"style\":{\"typography\":{\"fontSize\":\"14px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}}} /--></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"top\",\"width\":\"\",\"className\":\"product-card\"} -->\n<div class=\"wp-block-column is-vertically-aligned-top product-card\"><!-- wp:woocommerce/product-collection {\"queryId\":0,\"query\":{\"perPage\":3,\"pages\":0,\"offset\":0,\"postType\":\"product\",\"order\":\"asc\",\"orderBy\":\"menu_order\",\"search\":\"\",\"exclude\":[],\"inherit\":false,\"taxQuery\":{},\"isProductCollectionBlock\":true,\"featured\":false,\"woocommerceOnSale\":false,\"woocommerceStockStatus\":[\"instock\",\"outofstock\",\"onbackorder\"],\"woocommerceAttributes\":[],\"woocommerceHandPickedProducts\":[],\"filterable\":false,\"relatedBy\":{\"categories\":true,\"tags\":true}},\"tagName\":\"div\",\"displayLayout\":{\"type\":\"flex\",\"columns\":3,\"shrinkColumns\":true},\"dimensions\":{\"widthType\":\"fill\"},\"queryContextIncludes\":[\"collection\"],\"__privatePreviewState\":{\"isPreview\":false,\"previewMessage\":\"Actual products will vary depending on the page being viewed.\"}} -->\n<div class=\"wp-block-woocommerce-product-collection\"><!-- wp:woocommerce/product-template -->\n<!-- wp:group {\"className\":\"my-product-card\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group my-product-card\"><!-- wp:woocommerce/product-image {\"showSaleBadge\":false,\"isDescendentOfQueryLoop\":true,\"width\":\"100%\",\"height\":\"350px\"} /-->\n\n<!-- wp:group {\"className\":\"product-info p-3\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group product-info p-3\"><!-- wp:post-title {\"textAlign\":\"left\",\"level\":3,\"isLink\":true,\"className\":\"product-title\",\"style\":{\"spacing\":{\"margin\":{\"bottom\":\"0.75rem\",\"top\":\"0\"}},\"typography\":{\"fontSize\":\"18px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#171717\"}}},\"color\":{\"text\":\"#171717\"}},\"__woocommerceNamespace\":\"woocommerce/product-collection/product-title\"} /-->\n\n<!-- wp:group {\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\",\"justifyContent\":\"space-between\",\"orientation\":\"horizontal\"}} -->\n<div class=\"wp-block-group\"><!-- wp:woocommerce/product-price {\"isDescendentOfQueryLoop\":true,\"textAlign\":\"left\",\"className\":\"product-price\",\"style\":{\"typography\":{\"fontSize\":\"23px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#171717\"}}},\"color\":{\"text\":\"#171717\"}}} /-->\n\n<!-- wp:woocommerce/product-button {\"textAlign\":\"right\",\"isDescendentOfQueryLoop\":true,\"className\":\"product-link-button is-style-outline d-inline-block\",\"style\":{\"typography\":{\"fontSize\":\"14px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}},\"metadata\":{\"name\":\"Order Now\"}} /--></div>\n<!-- /wp:group --></div>\n<!-- /wp:group --></div>\n<!-- /wp:group -->\n<!-- /wp:woocommerce/product-template --></div>\n<!-- /wp:woocommerce/product-collection --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);

}
