<?php
/**
 * Electronics Retailer : Block Patterns
 *
 * @package Electronics Retailer 
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'electronics-retailer',
		array( 'label' => __( 'Electronics Retailer ', 'electronics-retailer' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'electronics-retailer/banner-section',
		array(
			'title'      => __( 'Banner Section', 'electronics-retailer' ),
			'categories' => array( 'electronics-retailer' ),
			'content'    => "<!-- wp:group {\"align\":\"full\",\"className\":\"main-banner-group mb-5\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group alignfull main-banner-group mb-5\"><!-- wp:columns {\"isStackedOnMobile\":false,\"className\":\"main-banner-col\"} -->\n<div class=\"wp-block-columns is-not-stacked-on-mobile main-banner-col\"><!-- wp:column {\"width\":\"60%\",\"className\":\"first-col\"} -->\n<div class=\"wp-block-column first-col\" style=\"flex-basis:60%\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner.png\",\"id\":46,\"dimRatio\":50,\"isUserOverlayColor\":true,\"minHeight\":550,\"customGradient\":\"linear-gradient(135deg,rgba(0,0,0,0.51) 0%,rgba(8,8,8,0.46) 45%,rgba(84,84,84,0) 96%)\",\"sizeSlug\":\"full\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover\" style=\"min-height:550px\"><img class=\"wp-block-cover__image-background wp-image-46 size-full\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner.png\" data-object-fit=\"cover\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim wp-block-cover__gradient-background has-background-gradient\" style=\"background:linear-gradient(135deg,rgba(0,0,0,0.51) 0%,rgba(8,8,8,0.46) 45%,rgba(84,84,84,0) 96%)\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:group {\"className\":\"banner-contents position-absolute\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group banner-contents position-absolute\"><!-- wp:paragraph {\"className\":\"small-title\",\"style\":{\"typography\":{\"fontSize\":\"14px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"small-title has-white-color has-text-color has-link-color\" style=\"font-size:14px;font-style:normal;font-weight:600\">Electronics Market</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"left\",\"placeholder\":\"Write title…\",\"className\":\"banner-heading\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}},\"textColor\":\"white\",\"fontSize\":\"large\"} -->\n<p class=\"has-text-align-left banner-heading has-white-color has-text-color has-link-color has-large-font-size\" style=\"font-style:normal;font-weight:600\">Upgrade Your Life with Cutting-Edge Electronics!</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-white-color has-text-color has-link-color\">Discover the latest in electronics at unbeatable prices. From cutting-edge gadgets to everyday essentials, we bring you quality, innovation, and style. Shop now for smarter, seamless living!</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textColor\":\"white\",\"className\":\"explore-but is-style-fill\",\"style\":{\"typography\":{\"fontSize\":\"14px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"color\":{\"gradient\":\"linear-gradient(90deg,rgb(50,189,238) 0%,rgb(200,23,134) 78%)\"}}} -->\n<div class=\"wp-block-button explore-but is-style-fill\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color has-custom-font-size wp-element-button\" style=\"background:linear-gradient(90deg,rgb(50,189,238) 0%,rgb(200,23,134) 78%);font-size:14px;font-style:normal;font-weight:600\">Explore More</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:group --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"20%\",\"className\":\"sec-col \"} -->\n<div class=\"wp-block-column sec-col\" style=\"flex-basis:20%\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/middle-banner.png\",\"id\":48,\"dimRatio\":20,\"customOverlayColor\":\"#262525\",\"isUserOverlayColor\":true,\"minHeight\":550,\"sizeSlug\":\"full\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover\" style=\"min-height:550px\"><img class=\"wp-block-cover__image-background wp-image-48 size-full\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/middle-banner.png\" data-object-fit=\"cover\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-20 has-background-dim\" style=\"background-color:#262525\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:group {\"className\":\"sec_col_content\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group sec_col_content\"><!-- wp:paragraph {\"align\":\"center\",\"placeholder\":\"Write title…\",\"style\":{\"typography\":{\"fontSize\":\"20px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-text-align-center has-white-color has-text-color has-link-color\" style=\"font-size:20px;font-style:normal;font-weight:600\">Immerse Yourself in Sound: Exclusive Headphone Deals Await!</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons {\"layout\":{\"type\":\"flex\",\"verticalAlignment\":\"center\",\"justifyContent\":\"center\",\"orientation\":\"horizontal\"}} -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textAlign\":\"center\",\"className\":\"shop-now-but\",\"style\":{\"border\":{\"radius\":\"30px\"},\"typography\":{\"fontSize\":\"14px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"},\"color\":{\"gradient\":\"linear-gradient(90deg,rgb(50,189,238) 0%,rgb(200,23,134) 92%)\"}}} -->\n<div class=\"wp-block-button shop-now-but\"><a class=\"wp-block-button__link has-background has-text-align-center has-custom-font-size wp-element-button\" style=\"border-radius:30px;background:linear-gradient(90deg,rgb(50,189,238) 0%,rgb(200,23,134) 92%);font-size:14px;font-style:normal;font-weight:600\">SHOP NOW</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:group -->\n\n<!-- wp:group {\"className\":\"discount-box position-absolute\",\"style\":{\"color\":{\"gradient\":\"linear-gradient(90deg,rgb(50,189,238) 0%,rgb(200,23,134) 100%)\"}},\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group discount-box position-absolute has-background\" style=\"background:linear-gradient(90deg,rgb(50,189,238) 0%,rgb(200,23,134) 100%)\"><!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"10px\",\"fontStyle\":\"normal\",\"fontWeight\":\"500\"}}} -->\n<p class=\"has-text-align-center\" style=\"font-size:10px;font-style:normal;font-weight:500\">Get Upto</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontStyle\":\"normal\",\"fontWeight\":\"700\",\"fontSize\":\"20px\"}}} -->\n<p class=\"has-text-align-center\" style=\"font-size:20px;font-style:normal;font-weight:700\">50% OFF</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"20%\",\"className\":\"third-col\"} -->\n<div class=\"wp-block-column third-col\" style=\"flex-basis:20%\"><!-- wp:group {\"className\":\"third-banner-up\",\"style\":{\"color\":{\"background\":\"#f2f6fe\"}},\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group third-banner-up has-background\" style=\"background-color:#f2f6fe\"><!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"20px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}}} -->\n<p class=\"has-text-align-center\" style=\"font-size:20px;font-style:normal;font-weight:600\">Deal of the Day</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"10px\",\"fontStyle\":\"normal\",\"fontWeight\":\"500\"}}} -->\n<p class=\"has-text-align-center\" style=\"font-size:10px;font-style:normal;font-weight:500\">Todays Special Price: Dont Miss Out! Visit Daily to Win!</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:image {\"id\":134,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"third-col-img\"} -->\n<figure class=\"wp-block-image size-full third-col-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/product-img.png\" alt=\"\" class=\"wp-image-134\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:paragraph {\"align\":\"left\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}},\"typography\":{\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}},\"textColor\":\"black\"} -->\n<p class=\"has-text-align-left has-black-color has-text-color has-link-color\" style=\"font-style:normal;font-weight:600\"><a href=\"http://localhost/block-pattern/index.php/product/macbook-pro-16-inch/?customize_changeset_uuid=4a9e955c-f67d-4a0f-a333-7726d1b76f7b&amp;customize_messenger_channel=preview-0\">MacBook pro 16 inch</a></p>\n<!-- /wp:paragraph -->\n\n<!-- wp:group {\"className\":\"progress\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group progress\"><!-- wp:paragraph {\"className\":\"progress-bar\"} -->\n<p class=\"progress-bar\"></p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group -->\n\n<!-- wp:group {\"className\":\"stock-info\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group stock-info\"><!-- wp:paragraph {\"align\":\"left\"} -->\n<p class=\"has-text-align-left\">0 sold</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>10 Remaining</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:group -->\n\n<!-- wp:group {\"className\":\"third-banner-bottom\",\"style\":{\"color\":{\"gradient\":\"linear-gradient(90deg,rgb(50,189,238) 0%,rgb(200,23,134) 100%)\"}},\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group third-banner-bottom has-background\" style=\"background:linear-gradient(90deg,rgb(50,189,238) 0%,rgb(200,23,134) 100%)\"><!-- wp:columns {\"isStackedOnMobile\":false} -->\n<div class=\"wp-block-columns is-not-stacked-on-mobile\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"fontSize\":\"16px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}},\"textColor\":\"white\"} -->\n<p class=\"has-white-color has-text-color has-link-color\" style=\"font-size:16px;font-style:normal;font-weight:600\">New Dual Sense Console</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"fontSize\":\"10px\"}},\"textColor\":\"white\"} -->\n<p class=\"has-white-color has-text-color has-link-color\" style=\"font-size:10px\">For PlayStation 5</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"play-remote\"} -->\n<div class=\"wp-block-column play-remote\"><!-- wp:image {\"id\":206,\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/bottom-img.png\" alt=\"\" class=\"wp-image-206\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);

	register_block_pattern(
		'electronics-retailer/category-section',
		array(
			'title'      => __( 'Category Section ', 'electronics-retailer' ),
			'categories' => array( 'electronics-retailer' ),
			'content'    => "<!-- wp:group {\"className\":\"category-sec\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group category-sec\"><!-- wp:shortcode -->\n<div class=\"custom-product-cat\">\n  [product_categories number=\"6\" columns=\"6\"]\n</div>\n<!-- /wp:shortcode --></div>\n<!-- /wp:group -->",
		)
	);
}
// " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/product-img-9.png\"