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

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

	register_block_pattern_category(
		'courier-services',
		array( 'label' => __( 'Courier Services', 'courier-services' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'courier-services/banner-section',
		array(
			'title'      => __( 'Banner Section', 'courier-services' ),
			'categories' => array( 'courier-services' ),
			'content'    => "<!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner.png\",\"id\":33,\"dimRatio\":30,\"customOverlayColor\":\"#00000000\",\"isUserOverlayColor\":true,\"minHeight\":640,\"metadata\":{\"name\":\"\"},\"align\":\"full\",\"className\":\"banner-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover alignfull banner-section\" style=\"min-height:640px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-30 has-background-dim\" style=\"background-color:#00000000\"></span><img class=\"wp-block-cover__image-background wp-image-33\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column {\"className\":\"banner-content\"} -->\n<div class=\"wp-block-column banner-content\"><!-- wp:paragraph {\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"color\":{\"background\":\"#2962ff\"},\"typography\":{\"fontSize\":\"16px\",\"textTransform\":\"uppercase\",\"fontStyle\":\"normal\",\"fontWeight\":\"400\"}},\"textColor\":\"white\",\"className\":\"small-text px-3 py-2\"} -->\n<p class=\"small-text px-3 py-2 has-white-color has-text-color has-background has-link-color\" style=\"background-color:#2962ff;font-size:16px;font-style:normal;font-weight:400;text-transform:uppercase\">the best moving service ever!</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"textTransform\":\"capitalize\"}},\"textColor\":\"white\"} -->\n<h2 class=\"wp-block-heading has-white-color has-text-color has-link-color\" style=\"text-transform:capitalize\">fast shipping with quality service</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"className\":\"pb-2\"} -->\n<p class=\"pb-2\">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textColor\":\"white\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"fontSize\":\"16px\",\"textTransform\":\"capitalize\",\"fontStyle\":\"normal\",\"fontWeight\":\"400\"},\"border\":{\"radius\":\"6px\"},\"color\":{\"background\":\"#00000000\"}}} -->\n<div class=\"wp-block-button has-custom-font-size\" style=\"font-size:16px;font-style:normal;font-weight:400;text-transform:capitalize\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" style=\"border-radius:6px;background-color:#00000000\">explore more</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover -->",
		)
	);

	register_block_pattern(
		'courier-services/contact-section',
		array(
			'title'      => __( 'Contact Section', 'courier-services' ),
			'categories' => array( 'courier-services' ),
			'content'    => "<!-- wp:shortcode -->\n[contact-form-7 id=\"672658f\" title=\"Contact Form\"]\n<!-- /wp:shortcode -->",
		)
	);

	register_block_pattern(
		'courier-services/services-section',
		array(
			'title'      => __( 'Services Section', 'courier-services' ),
			'categories' => array( 'courier-services' ),
			'content'    => "<!-- wp:group {\"className\":\"service-section py-5\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group service-section py-5\"><!-- wp:paragraph {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#2962ff\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#2962ff\"}}},\"typography\":{\"fontSize\":\"16px\",\"textTransform\":\"capitalize\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}}} -->\n<p class=\"has-text-align-center has-text-color has-link-color\" style=\"color:#2962ff;font-size:16px;font-style:normal;font-weight:600;text-transform:capitalize\">service</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"textAlign\":\"center\",\"level\":3,\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}},\"typography\":{\"fontSize\":\"25px\",\"textTransform\":\"capitalize\"}},\"textColor\":\"black\"} -->\n<h3 class=\"wp-block-heading has-text-align-center has-black-color has-text-color has-link-color\" style=\"font-size:25px;text-transform:capitalize\">trusted logistic &amp; transport</h3>\n<!-- /wp:heading -->\n\n<!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service1.png\",\"id\":71,\"dimRatio\":0,\"customOverlayColor\":\"#00000000\",\"isUserOverlayColor\":true,\"minHeight\":320,\"metadata\":{\"name\":\"\"},\"className\":\"transport1\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover transport1\" style=\"min-height:320px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\" style=\"background-color:#00000000\"></span><img class=\"wp-block-cover__image-background wp-image-71\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service1.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"textAlign\":\"left\",\"level\":4,\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"fontSize\":\"22px\",\"textTransform\":\"capitalize\"}},\"textColor\":\"white\",\"className\":\"title1\"} -->\n<h4 class=\"wp-block-heading has-text-align-left title1 has-white-color has-text-color has-link-color\" style=\"font-size:22px;text-transform:capitalize\">road transport</h4>\n<!-- /wp:heading --></div></div>\n<!-- /wp:cover --></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/service2.png\",\"id\":91,\"dimRatio\":0,\"customOverlayColor\":\"#00000000\",\"isUserOverlayColor\":true,\"minHeight\":320,\"metadata\":{\"name\":\"\"},\"className\":\"transport1\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover transport1\" style=\"min-height:320px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\" style=\"background-color:#00000000\"></span><img class=\"wp-block-cover__image-background wp-image-91\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service2.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"textAlign\":\"left\",\"level\":4,\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"fontSize\":\"22px\",\"textTransform\":\"capitalize\"}},\"textColor\":\"white\",\"className\":\"title2\"} -->\n<h4 class=\"wp-block-heading has-text-align-left title2 has-white-color has-text-color has-link-color\" style=\"font-size:22px;text-transform:capitalize\">ware housing</h4>\n<!-- /wp:heading --></div></div>\n<!-- /wp:cover --></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/service3.png\",\"id\":92,\"dimRatio\":0,\"customOverlayColor\":\"#00000000\",\"isUserOverlayColor\":true,\"minHeight\":320,\"isDark\":false,\"metadata\":{\"name\":\"\"},\"className\":\"transport1\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover is-light transport1\" style=\"min-height:320px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\" style=\"background-color:#00000000\"></span><img class=\"wp-block-cover__image-background wp-image-92\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/service3.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"textAlign\":\"left\",\"level\":4,\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"typography\":{\"fontSize\":\"22px\",\"textTransform\":\"capitalize\"}},\"textColor\":\"white\",\"className\":\"title3\"} -->\n<h4 class=\"wp-block-heading has-text-align-left title3 has-white-color has-text-color has-link-color\" style=\"font-size:22px;text-transform:capitalize\">commercial &amp; local</h4>\n<!-- /wp:heading --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);
}