<?php
/**
 *  VW Business Lounge: Block Patterns
 *
 * @package  VW Business Lounge
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'vw-business-lounge',
		array( 'label' => __( 'VW Business Lounge', 'vw-business-lounge' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'vw-business-lounge/banner-section',
		array(
			'title'      => __( 'Banner Section', 'vw-business-lounge' ),
			'categories' => array( 'vw-business-lounge' ),
			'content'    => "<!-- wp:group {\"className\":\"banner-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group banner-section\"><!-- wp:columns {\"align\":\"full\",\"className\":\"banner\\u002d\\u002dcontent\"} -->\n<div class=\"wp-block-columns alignfull banner--content\"><!-- wp:column {\"width\":\"35%\",\"className\":\"banner-left position-relative\"} -->\n<div class=\"wp-block-column banner-left position-relative\" style=\"flex-basis:35%\"><!-- wp:heading {\"className\":\"slide_title\",\"style\":{\"typography\":{\"fontSize\":\"40px\"}}} -->\n<h2 class=\"wp-block-heading slide_title\" style=\"font-size:40px\">Discover Your Executive Retreat: Where Business Meets Luxury</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"className\":\"slide_text\",\"style\":{\"typography\":{\"fontSize\":\"16px\"}}} -->\n<p class=\"slide_text\" style=\"font-size:16px\">Elevate Your Business Experience in Style and Comfort</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"backgroundColor\":\"white\",\"className\":\"is-style-outline slider-btn m-0\",\"style\":{\"color\":{\"text\":\"#292d32\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#292d32\"}}},\"border\":{\"radius\":\"10px\"},\"typography\":{\"fontSize\":\"15px\"}}} -->\n<div class=\"wp-block-button has-custom-font-size is-style-outline slider-btn m-0\" style=\"font-size:15px\"><a class=\"wp-block-button__link has-white-background-color has-text-color has-background has-link-color wp-element-button\" style=\"border-radius:10px;color:#292d32\">Read More</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"65%\",\"className\":\"banner-right position-relative\"} -->\n<div class=\"wp-block-column banner-right position-relative\" style=\"flex-basis:65%\"><!-- wp:image {\"id\":28,\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"banner-img\"} -->\n<figure class=\"wp-block-image size-full banner-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider1.png\" alt=\"\" class=\"wp-image-28\" style=\"object-fit:cover\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:gallery {\"columns\":4,\"linkTo\":\"none\",\"className\":\"slider-imges position-absolute\"} -->\n<figure class=\"wp-block-gallery has-nested-images columns-4 is-cropped slider-imges position-absolute\"><!-- wp:image {\"id\":58,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-large\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider2.png\" alt=\"\" class=\"wp-image-58\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":56,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-large\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider3.png\" alt=\"\" class=\"wp-image-56\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":57,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-large\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider4.png\" alt=\"\" class=\"wp-image-57\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":61,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-large\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider5.png\" alt=\"\" class=\"wp-image-61\"/></figure>\n<!-- /wp:image --></figure>\n<!-- /wp:gallery --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);

	register_block_pattern(
		'vw-business-lounge/heading-section',
		array(
			'title'      => __( 'Heading Section', 'vw-business-lounge' ),
			'categories' => array( 'vw-business-lounge' ),
			'content'    => "<!-- wp:columns {\"className\":\"main-section \"} -->\n<div class=\"wp-block-columns main-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:heading {\"className\":\"main-heading1\"} -->\n<h2 class=\"wp-block-heading main-heading1\">Business</h2>\n<!-- /wp:heading -->\n\n<!-- wp:heading {\"className\":\"main-heading2\"} -->\n<h2 class=\"wp-block-heading main-heading2\">Lounge</h2>\n<!-- /wp:heading --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);

	register_block_pattern(
		'vw-business-lounge/services-section',
		array(
			'title'      => __( 'Services Section', 'vw-business-lounge' ),
			'categories' => array( 'vw-business-lounge' ),
			'content'    => "<!-- wp:columns {\"align\":\"full\",\"className\":\"lounge-section\"} -->\n<div class=\"wp-block-columns alignfull lounge-section\"><!-- wp:column {\"width\":\"75%\",\"className\":\"col-1\"} -->\n<div class=\"wp-block-column col-1\" style=\"flex-basis:75%\"><!-- wp:gallery {\"linkTo\":\"none\"} -->\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped\"><!-- wp:image {\"id\":76,\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"className\":\"img-sec position-relative\"} -->\n<figure class=\"wp-block-image size-large img-sec position-relative\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/lounge1.png\" alt=\"\" class=\"wp-image-76\"/><figcaption class=\"wp-element-caption\">First Class Lounge</figcaption></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":78,\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"className\":\"img-sec position-relative\"} -->\n<figure class=\"wp-block-image size-large img-sec position-relative\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/lounge2.png\" alt=\"\" class=\"wp-image-78\"/><figcaption class=\"wp-element-caption\">Business Class Lounge</figcaption></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":77,\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"className\":\"img-sec position-relative\"} -->\n<figure class=\"wp-block-image size-large img-sec position-relative\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/lounge3.png\" alt=\"\" class=\"wp-image-77\"/><figcaption class=\"wp-element-caption\">Worldwide Class Lounge</figcaption></figure>\n<!-- /wp:image --></figure>\n<!-- /wp:gallery --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"25%\",\"className\":\"col-2\"} -->\n<div class=\"wp-block-column col-2\" style=\"flex-basis:25%\"><!-- wp:image {\"id\":79,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"img-sec\"} -->\n<figure class=\"wp-block-image size-full img-sec\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/lounge4.png\" alt=\"\" class=\"wp-image-79\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:columns {\"className\":\"figcaption position-relative\"} -->\n<div class=\"wp-block-columns figcaption position-relative\"><!-- wp:column {\"verticalAlignment\":\"stretch\"} -->\n<div class=\"wp-block-column is-vertically-aligned-stretch\"><!-- wp:heading {\"textAlign\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"18px\"}}} -->\n<h2 class=\"wp-block-heading has-text-align-center\" style=\"font-size:18px\">Upto 20% OFF</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"15px\"}}} -->\n<p class=\"has-text-align-center\" style=\"font-size:15px\">Elevate your lounge experience today!</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);
}