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

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

	register_block_pattern_category(
		'vw-event-planner',
		array( 'label' => __( 'VW Event Planner', 'vw-event-planner' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'vw-event-planner/banner-section',
		array(
			'title'      => __( 'Banner Section', 'vw-event-planner' ),
			'categories' => array( 'vw-event-planner' ),
			'content'    => "<!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner.png\",\"id\":364,\"dimRatio\":40,\"minHeight\":500,\"customGradient\":\"linear-gradient(90deg,rgb(74,0,125) 0%,rgb(209,0,123) 100%)\",\"align\":\"full\",\"className\":\"banner-section\"} -->\n<div class=\"wp-block-cover alignfull banner-section\" style=\"min-height:500px\"><span aria-hidden=\"true\" class=\"has-background-dim-40 wp-block-cover__gradient-background has-background-dim has-background-gradient\" style=\"background:linear-gradient(90deg,rgb(74,0,125) 0%,rgb(209,0,123) 100%)\"></span><img class=\"wp-block-cover__image-background wp-image-364\" 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 {\"align\":\"wide\",\"className\":\"m-0\"} -->\n<div class=\"wp-block-columns alignwide m-0\"><!-- wp:column {\"width\":\"20%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:20%\"></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"60%\",\"className\":\"banner-main\"} -->\n<div class=\"wp-block-column banner-main\" style=\"flex-basis:60%\"><!-- wp:heading {\"textAlign\":\"center\",\"level\":1,\"style\":{\"typography\":{\"fontSize\":45}},\"textColor\":\"white\",\"className\":\"mb-3\"} -->\n<h1 class=\"has-text-align-center mb-3 has-white-color has-text-color\" style=\"font-size:45px\">Lorem Ipsum Dolor Sit Amet</h1>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":14}},\"textColor\":\"white\",\"className\":\"text-center\"} -->\n<p class=\"has-text-align-center text-center has-white-color has-text-color\" style=\"font-size:14px\">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons {\"className\":\"text-center\",\"layout\":{\"type\":\"flex\",\"justifyContent\":\"center\"}} -->\n<div class=\"wp-block-buttons text-center\"><!-- wp:button {\"backgroundColor\":\"white\",\"style\":{\"color\":{\"text\":\"#d1007b\"},\"border\":{\"radius\":\"30px\"}}} -->\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-background-color has-text-color has-background\" style=\"border-radius:30px;color:#d1007b\">READ MORE</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"20%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:20%\"></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover -->",
		)
	);

	register_block_pattern(
		'vw-event-planner/events-section',
		array(
			'title'      => __( 'Events Section', 'vw-event-planner' ),
			'categories' => array( 'vw-event-planner' ),
			'content'    => "<!-- wp:group {\"align\":\"wide\",\"className\":\"events-section m-0 py-5\"} -->\n<div class=\"wp-block-group alignwide events-section m-0 py-5\"><!-- wp:heading {\"textAlign\":\"center\",\"align\":\"wide\",\"style\":{\"typography\":{\"fontSize\":35},\"color\":{\"text\":\"#4a007d\"}},\"className\":\"mx-0 mb-2\"} -->\n<h2 class=\"wp-block-heading alignwide has-text-align-center mx-0 mb-2 has-text-color\" style=\"color:#4a007d;font-size:35px\">See Our Best Events Services</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#555a5e\"},\"typography\":{\"fontSize\":\"14px\"}}} -->\n<p class=\"has-text-align-center has-text-color\" style=\"color:#555a5e;font-size:14px\">Lorem Ipsum is simply dummy text of the printing</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:columns {\"align\":\"wide\",\"className\":\"mx-0\"} -->\n<div class=\"wp-block-columns alignwide mx-0\"><!-- wp:column {\"className\":\"events-box\"} -->\n<div class=\"wp-block-column events-box\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/event1.png\",\"id\":376,\"dimRatio\":50,\"minHeight\":250,\"customGradient\":\"linear-gradient(180deg,rgb(209,0,123) 46%,rgba(155,82,224,0) 100%)\",\"isDark\":false,\"className\":\"my-0\"} -->\n<div class=\"wp-block-cover is-light my-0\" style=\"min-height:250px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim wp-block-cover__gradient-background has-background-gradient\" style=\"background:linear-gradient(180deg,rgb(209,0,123) 46%,rgba(155,82,224,0) 100%)\"></span><img class=\"wp-block-cover__image-background wp-image-376\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/event1.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:columns {\"className\":\"service-head p-3\"} -->\n<div class=\"wp-block-columns service-head p-3\"><!-- wp:column {\"width\":\"66.66%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\"><!-- wp:heading {\"level\":3,\"style\":{\"typography\":{\"fontSize\":15}},\"className\":\"my-2\"} -->\n<h3 class=\"wp-block-heading my-2\" style=\"font-size:15px\">Service Title 1</h3>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"33.33%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\"><!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textColor\":\"white\",\"style\":{\"border\":{\"radius\":\"50px\"}}} /--></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"events-box ms-0\"} -->\n<div class=\"wp-block-column events-box ms-0\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/event2.png\",\"id\":377,\"dimRatio\":50,\"minHeight\":250,\"customGradient\":\"linear-gradient(180deg,rgb(209,0,123) 52%,rgba(155,82,224,0) 100%)\",\"isDark\":false,\"className\":\"my-0\"} -->\n<div class=\"wp-block-cover is-light my-0\" style=\"min-height:250px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim wp-block-cover__gradient-background has-background-gradient\" style=\"background:linear-gradient(180deg,rgb(209,0,123) 52%,rgba(155,82,224,0) 100%)\"></span><img class=\"wp-block-cover__image-background wp-image-377\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/event2.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:columns {\"className\":\"service-head p-3\"} -->\n<div class=\"wp-block-columns service-head p-3\"><!-- wp:column {\"width\":\"66.66%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\"><!-- wp:heading {\"level\":3,\"style\":{\"typography\":{\"fontSize\":15}},\"className\":\"my-2\"} -->\n<h3 class=\"wp-block-heading my-2\" style=\"font-size:15px\">Service Title 2</h3>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"33.33%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\"><!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textColor\":\"white\",\"style\":{\"border\":{\"radius\":\"50px\"}}} /--></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"events-box ms-0\"} -->\n<div class=\"wp-block-column events-box ms-0\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/event3.png\",\"id\":378,\"dimRatio\":50,\"minHeight\":250,\"customGradient\":\"linear-gradient(180deg,rgb(209,0,123) 58%,rgba(155,82,224,0) 100%)\",\"className\":\"my-0\"} -->\n<div class=\"wp-block-cover my-0\" style=\"min-height:250px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim wp-block-cover__gradient-background has-background-gradient\" style=\"background:linear-gradient(180deg,rgb(209,0,123) 58%,rgba(155,82,224,0) 100%)\"></span><img class=\"wp-block-cover__image-background wp-image-378\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/event3.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:columns {\"className\":\"service-head p-3\"} -->\n<div class=\"wp-block-columns service-head p-3\"><!-- wp:column {\"width\":\"66.66%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\"><!-- wp:heading {\"level\":3,\"style\":{\"typography\":{\"fontSize\":15}},\"className\":\"my-2\"} -->\n<h3 class=\"wp-block-heading my-2\" style=\"font-size:15px\">Service Title 3</h3>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"33.33%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\"><!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textColor\":\"white\",\"style\":{\"border\":{\"radius\":\"50px\"}}} /--></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);
}