<?php
/**
 * Manufacturing Plant: Block Patterns
 *
 * @package Manufacturing Plant
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'manufacturing-plant',
		array( 'label' => __( 'Manufacturing Plant', 'manufacturing-plant' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'manufacturing-plant/banner-section',
		array(
			'title'      => __( 'Banner Section', 'manufacturing-plant' ),
			'categories' => array( 'manufacturing-plant' ),
			'content'    => "<!-- wp:group {\"metadata\":{\"categories\":[\"manufacturing-plant\"],\"patternName\":\"manufacturing-plant/banner-section\",\"name\":\"Banner Section\"},\"align\":\"full\",\"className\":\"manufacturing-plant-banner-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group alignfull manufacturing-plant-banner-section\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider-bg1.png\",\"id\":45,\"dimRatio\":60,\"overlayColor\":\"black\",\"isUserOverlayColor\":true,\"focalPoint\":{\"x\":0.5,\"y\":0.5},\"minHeight\":800,\"sizeSlug\":\"full\",\"className\":\"slider-img\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover slider-img\" style=\"min-height:800px\"><img class=\"wp-block-cover__image-background wp-image-45 size-full\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider-bg1.png\" style=\"object-position:50% 50%\" data-object-fit=\"cover\" data-object-position=\"50% 50%\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-black-background-color has-background-dim-60 has-background-dim\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:columns {\"align\":\"full\",\"className\":\"container content\"} -->\n<div class=\"wp-block-columns alignfull container content\"><!-- wp:column {\"width\":\"8%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:8%\"></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"92%\",\"className\":\"inner-container\"} -->\n<div class=\"wp-block-column inner-container\" style=\"flex-basis:92%\"><!-- wp:paragraph {\"align\":\"left\",\"placeholder\":\"Write title…\",\"className\":\"slider-small-title\",\"style\":{\"typography\":{\"fontSize\":\"15px\"}}} -->\n<p class=\"has-text-align-left slider-small-title\" style=\"font-size:15px\">Welcome to&nbsp;<strong><a href=\"#\">PrimePlantTech</a>,&nbsp;</strong>where innovation meets precision.<br></p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"level\":1,\"className\":\"slider-title\",\"style\":{\"typography\":{\"fontSize\":\"50px\"}}} -->\n<h1 class=\"wp-block-heading slider-title\" style=\"font-size:50px\">Leading the Way in Modern&nbsp; <a href=\"#\">Manufacturing</a>&nbsp;Excellence!</h1>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"className\":\"slider-text\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"fontSize\":\"15px\"}},\"textColor\":\"white\"} -->\n<p class=\"slider-text has-white-color has-text-color has-link-color\" style=\"font-size:15px\">We deliver high-quality, custom manufacturing solutions across diverse industries, ensuring excellence and sustainability in every product we create.</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:group -->",
		)
	);

	register_block_pattern(
		'manufacturing-plant/service-section',
		array(
			'title'      => __( 'Category Section ', 'manufacturing-plant' ),
			'categories' => array( 'manufacturing-plant' ),
			'content'    => "<!-- wp:group {\"className\":\"industry-sec-content \",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group  maufacture-industry-sec-content\"><!-- wp:group {\"className\":\"row\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"wrap\"}} -->\n<div class=\"wp-block-group row\"><!-- wp:columns {\"className\":\"section2-serv\"} -->\n<div class=\"wp-block-columns section2-serv\"><!-- wp:column {\"width\":\"px\",\"className\":\"section-left-content \"} -->\n<div class=\"wp-block-column section-left-content\"><!-- wp:paragraph {\"className\":\"left-text\"} -->\n<p class=\"left-text\">Indusrties We Served  </p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"className\":\"section-title1\"} -->\n<h2 class=\"wp-block-heading section-title1\">We Serve <a href=\"#\">Diverse Industrial</a>&nbsp; Sectors</h2>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"section2-col2-serv\"} -->\n<div class=\"wp-block-column section2-col2-serv\"></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"\",\"className\":\"section-right-content \"} -->\n<div class=\"wp-block-column section-right-content\"><!-- wp:paragraph {\"className\":\"right-text\"} -->\n<p class=\"right-text\">We proudly serve a diverse range of industries, including automotive, aerospace, consumer electronics, medical and healthcare, renewable energy, food, defense, and textiles.</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->\n\n<!-- wp:group {\"className\":\"row-2\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group row-2\"><!-- wp:columns {\"className\":\"service-column\"} -->\n<div class=\"wp-block-columns service-column\"><!-- wp:column {\"width\":\"25%\",\"className\":\"serv-1\"} -->\n<div class=\"wp-block-column serv-1\" style=\"flex-basis:25%\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service1.png\",\"id\":98,\"dimRatio\":50,\"overlayColor\":\"black\",\"isUserOverlayColor\":true,\"focalPoint\":{\"x\":0.5,\"y\":0.5},\"sizeSlug\":\"full\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover\"><img class=\"wp-block-cover__image-background wp-image-98 size-full\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service1.png\" style=\"object-position:50% 50%\" data-object-fit=\"cover\" data-object-position=\"50% 50%\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-black-background-color has-background-dim\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"className\":\"cat-title\"} -->\n<h2 class=\"wp-block-heading cat-title\">Aerospace</h2>\n<!-- /wp:heading --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"25%\",\"className\":\"serv-2\"} -->\n<div class=\"wp-block-column serv-2\" style=\"flex-basis:25%\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service2.png\",\"id\":104,\"dimRatio\":50,\"overlayColor\":\"black\",\"isUserOverlayColor\":true,\"sizeSlug\":\"full\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover\"><img class=\"wp-block-cover__image-background wp-image-104 size-full\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service2.png\" data-object-fit=\"cover\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-black-background-color has-background-dim\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"className\":\"cat-title\"} -->\n<h2 class=\"wp-block-heading cat-title\">Renewable Energy</h2>\n<!-- /wp:heading --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"25%\",\"className\":\"serv-3\"} -->\n<div class=\"wp-block-column serv-3\" style=\"flex-basis:25%\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service3.png\",\"id\":105,\"dimRatio\":50,\"overlayColor\":\"black\",\"isUserOverlayColor\":true,\"sizeSlug\":\"full\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover\"><img class=\"wp-block-cover__image-background wp-image-105 size-full\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service3.png\" data-object-fit=\"cover\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-black-background-color has-background-dim\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"className\":\"cat-title\"} -->\n<h2 class=\"wp-block-heading cat-title\">Automotive</h2>\n<!-- /wp:heading --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"25%\",\"className\":\"serv-4\"} -->\n<div class=\"wp-block-column serv-4\" style=\"flex-basis:25%\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service4.png\",\"id\":106,\"dimRatio\":50,\"overlayColor\":\"black\",\"isUserOverlayColor\":true,\"sizeSlug\":\"full\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover\"><img class=\"wp-block-cover__image-background wp-image-106 size-full\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service4.png\" data-object-fit=\"cover\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-black-background-color has-background-dim\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"className\":\"cat-title\"} -->\n<h2 class=\"wp-block-heading cat-title\">Construction</h2>\n<!-- /wp:heading --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group --></div>\n<!-- /wp:group -->",
		)
	);
}