<?php
/**
 * Commercial Automation Services: Block Patterns
 *
 * @package Commercial Automation Services
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'commercial-automation-services',
		array( 'label' => __( 'Commercial Automation Services', 'commercial-automation-services' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'commercial-automation-services/banner-section',
		array(
			'title'      => __( 'Banner Section', 'commercial-automation-services' ),
			'categories' => array( 'commercial-automation-services' ),
			'content'    => "<!-- wp:columns {\"align\":\"full\",\"className\":\"banner-section\"} -->\n<div class=\"wp-block-columns alignfull banner-section\"><!-- wp:column {\"verticalAlignment\":\"top\",\"width\":\"50%\",\"className\":\"banner-left position-relative\"} -->\n<div class=\"wp-block-column is-vertically-aligned-top banner-left position-relative\" style=\"flex-basis:50%\"><!-- wp:columns {\"className\":\"banner-left12\"} -->\n<div class=\"wp-block-columns banner-left12\"><!-- wp:column {\"verticalAlignment\":\"top\",\"className\":\"banner-left1\"} -->\n<div class=\"wp-block-column is-vertically-aligned-top banner-left1\"><!-- wp:paragraph {\"className\":\"banner-grp-img1\",\"style\":{\"typography\":{\"fontSize\":\"14px\"},\"color\":{\"background\":\"#0c87e4\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"banner-grp-img1 has-white-color has-text-color has-background has-link-color\" style=\"background-color:#0c87e4;font-size:14px\">Manage Your Smart Home</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"level\":1,\"className\":\"banner-heading \",\"style\":{\"typography\":{\"fontSize\":\"45px\"}}} -->\n<h1 class=\"wp-block-heading banner-heading\" style=\"font-size:45px\"><img class=\"wp-image-170\" style=\"width: 35px;\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/arrow.png\" alt=\"\">Home Automation Revolutionized With The Of AI.</h1>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"}}} -->\n<p style=\"font-size:15px\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"className\":\"read-more\",\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"color\":{\"background\":\"#0c87e4\"},\"border\":{\"radius\":\"6px\"}}} -->\n<div class=\"wp-block-button has-custom-font-size read-more\" style=\"font-size:16px\"><a class=\"wp-block-button__link has-background wp-element-button\" style=\"border-radius:6px;background-color:#0c87e4\" rel=\"#\">Shop Now </a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"50%\",\"className\":\"banner-right position-relative\"} -->\n<div class=\"wp-block-column banner-right position-relative\" style=\"flex-basis:50%\"><!-- wp:image {\"id\":136,\"width\":\"700px\",\"height\":\"700px\",\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"align\":\"right\",\"className\":\"mask-img\"} -->\n<figure class=\"wp-block-image alignright size-full is-resized mask-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner.png\" alt=\"\" class=\"wp-image-136\" style=\"object-fit:cover;width:700px;height:700px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:group {\"className\":\"temperature position-absolute\",\"layout\":{\"type\":\"flex\",\"orientation\":\"vertical\",\"justifyContent\":\"center\"}} -->\n<div class=\"wp-block-group temperature position-absolute\"><!-- wp:image {\"id\":188,\"width\":\"65px\",\"height\":\"50px\",\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full is-resized\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/cloud-sun-solid.png\" alt=\"\" class=\"wp-image-188\" style=\"object-fit:cover;width:65px;height:50px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"30px\"}}} -->\n<p style=\"font-size:30px\">20'c</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);

	register_block_pattern(
		'commercial-automation-services/best-seller-section',
		array(
			'title'      => __( 'Best Seller Section', 'commercial-automation-services' ),
			'categories' => array( 'commercial-automation-services' ),
			'content'    => "<!-- wp:columns {\"className\":\"best-seller-section mt-4\"} -->\n<div class=\"wp-block-columns best-seller-section mt-4\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column {\"className\":\"heading-sec\"} -->\n<div class=\"wp-block-column heading-sec\"><!-- wp:paragraph {\"align\":\"center\",\"className\":\"product-small-heading\",\"style\":{\"typography\":{\"fontSize\":\"16px\"}}} -->\n<p class=\"has-text-align-center product-small-heading\" style=\"font-size:16px\">Best Seller</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"textAlign\":\"center\",\"level\":3,\"style\":{\"typography\":{\"fontSize\":\"35px\"}}} -->\n<h3 class=\"wp-block-heading has-text-align-center\" style=\"font-size:35px\">Shop Our Best Sellers</h3>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"15px\"}}} -->\n<p class=\"has-text-align-center\" style=\"font-size:15px\">Lorem Ipsum is simply dummy text of the printing and typesetting industry</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:shortcode -->\n[products limit=\"4\" columns=\"4\"]\n<!-- /wp:shortcode --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);

	register_block_pattern(
		'commercial-automation-services/offer-section',
		array(
			'title'      => __( 'Offer Section', 'commercial-automation-services' ),
			'categories' => array( 'commercial-automation-services' ),
			'content'    => "<!-- wp:columns {\"className\":\"offer-section\"} -->\n<div class=\"wp-block-columns offer-section\"><!-- wp:column {\"width\":\"66.66%\",\"className\":\"offer-col1\"} -->\n<div class=\"wp-block-column offer-col1\" style=\"flex-basis:66.66%\"><!-- wp:columns {\"className\":\"offer-col-sec\"} -->\n<div class=\"wp-block-columns offer-col-sec\"><!-- wp:column {\"verticalAlignment\":\"center\",\"width\":\"45%\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\" style=\"flex-basis:45%\"><!-- wp:paragraph {\"className\":\"offer-small-text\",\"style\":{\"typography\":{\"fontSize\":\"14px\"}}} -->\n<p class=\"offer-small-text\" style=\"font-size:14px\">Offers</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"level\":5,\"className\":\"offer-heading\",\"style\":{\"typography\":{\"fontSize\":\"30px\"}}} -->\n<h5 class=\"wp-block-heading offer-heading\" style=\"font-size:30px\">Exclusive Deals on Home Automation Systems</h5>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"className\":\"offer-para\",\"style\":{\"typography\":{\"fontSize\":\"15px\"}}} -->\n<p class=\"offer-para\" style=\"font-size:15px\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type.</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:columns {\"className\":\"timer-sec py-3\"} -->\n<div class=\"wp-block-columns timer-sec py-3\"><!-- wp:column {\"width\":\"50px\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:50px\"><!-- wp:group {\"layout\":{\"type\":\"flex\",\"orientation\":\"vertical\"}} -->\n<div class=\"wp-block-group\"><!-- wp:paragraph {\"align\":\"center\",\"className\":\"p-2 count\",\"style\":{\"typography\":{\"fontSize\":\"22px\"},\"layout\":{\"selfStretch\":\"fixed\",\"flexSize\":\"35px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"black\"} -->\n<p class=\"has-text-align-center p-2 count has-black-color has-white-background-color has-text-color has-background has-link-color\" style=\"font-size:22px\">01</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"className\":\"text\"} -->\n<p class=\"has-text-align-center text\">Days</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"50px\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:50px\"><!-- wp:group {\"layout\":{\"type\":\"flex\",\"orientation\":\"vertical\"}} -->\n<div class=\"wp-block-group\"><!-- wp:paragraph {\"align\":\"center\",\"className\":\"p-2 count\",\"style\":{\"typography\":{\"fontSize\":\"22px\"},\"layout\":{\"selfStretch\":\"fixed\",\"flexSize\":\"35px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"black\"} -->\n<p class=\"has-text-align-center p-2 count has-black-color has-white-background-color has-text-color has-background has-link-color\" style=\"font-size:22px\">18</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"className\":\"text\"} -->\n<p class=\"has-text-align-center text\">Hrs</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"50px\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:50px\"><!-- wp:group {\"layout\":{\"type\":\"flex\",\"orientation\":\"vertical\"}} -->\n<div class=\"wp-block-group\"><!-- wp:paragraph {\"align\":\"center\",\"className\":\"p-2 count\",\"style\":{\"typography\":{\"fontSize\":\"22px\"},\"layout\":{\"selfStretch\":\"fixed\",\"flexSize\":\"35px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"black\"} -->\n<p class=\"has-text-align-center p-2 count has-black-color has-white-background-color has-text-color has-background has-link-color\" style=\"font-size:22px\">21</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"className\":\"text\"} -->\n<p class=\"has-text-align-center text\">Mins</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"50px\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:50px\"><!-- wp:group {\"layout\":{\"type\":\"flex\",\"orientation\":\"vertical\"}} -->\n<div class=\"wp-block-group\"><!-- wp:paragraph {\"align\":\"center\",\"className\":\"p-2 count\",\"style\":{\"typography\":{\"fontSize\":\"22px\"},\"layout\":{\"selfStretch\":\"fixed\",\"flexSize\":\"35px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"black\"} -->\n<p class=\"has-text-align-center p-2 count has-black-color has-white-background-color has-text-color has-background has-link-color\" style=\"font-size:22px\">37</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"className\":\"text\"} -->\n<p class=\"has-text-align-center text\">Sec</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:group {\"className\":\"off-sec\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group off-sec\"><!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"className\":\"read-more\",\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"color\":{\"background\":\"#0c87e4\"},\"border\":{\"radius\":\"6px\"}}} -->\n<div class=\"wp-block-button has-custom-font-size read-more\" style=\"font-size:16px\"><a class=\"wp-block-button__link has-background wp-element-button\" style=\"border-radius:6px;background-color:#0c87e4\" rel=\"#\">Shop Now </a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->\n\n<!-- wp:paragraph {\"className\":\"shop_count_percent\",\"style\":{\"typography\":{\"fontSize\":\"55px\"}}} -->\n<p class=\"shop_count_percent\" style=\"font-size:55px\">50% off</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\",\"width\":\"55%\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\" style=\"flex-basis:55%\"><!-- wp:image {\"id\":234,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"shop-img\"} -->\n<figure class=\"wp-block-image size-full shop-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/seller-img.png\" alt=\"\" class=\"wp-image-234\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"33.33%\",\"className\":\"shop-col2\"} -->\n<div class=\"wp-block-column shop-col2\" style=\"flex-basis:33.33%\"><!-- wp:paragraph {\"className\":\"offer-small-text1\",\"style\":{\"typography\":{\"fontSize\":\"14px\"}}} -->\n<p class=\"offer-small-text1\" style=\"font-size:14px\">Offers</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"level\":6,\"className\":\"offer-heading1\",\"style\":{\"typography\":{\"fontSize\":\"35px\"}}} -->\n<h6 class=\"wp-block-heading offer-heading1\" style=\"font-size:35px\">Get Started with Home Automation Today</h6>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"className\":\"offer-para1\",\"style\":{\"typography\":{\"fontSize\":\"15px\"}}} -->\n<p class=\"offer-para1\" style=\"font-size:15px\">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:group {\"className\":\"cam-sec\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\",\"verticalAlignment\":\"top\"}} -->\n<div class=\"wp-block-group cam-sec\"><!-- wp:buttons {\"className\":\"m-3\",\"layout\":{\"type\":\"flex\"}} -->\n<div class=\"wp-block-buttons m-3\"><!-- wp:button {\"backgroundColor\":\"black\",\"className\":\"shop-more1\",\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"border\":{\"radius\":\"6px\"}}} -->\n<div class=\"wp-block-button has-custom-font-size shop-more1\" style=\"font-size:16px\"><a class=\"wp-block-button__link has-black-background-color has-background wp-element-button\" style=\"border-radius:6px\" rel=\"#\">Shop Now </a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->\n\n<!-- wp:image {\"id\":242,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"shop-img1\"} -->\n<figure class=\"wp-block-image size-full shop-img1\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/camera.png\" alt=\"\" class=\"wp-image-242\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);
}