<?php
/**
 * Accommodation Rental: Block Patterns
 *
 * @package Accommodation Rental
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'accommodation-rental',
		array( 'label' => __( 'Accommodation Rental', 'accommodation-rental' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'accommodation-rental/banner-section',
		array(
			'title'      => __( 'Banner Section', 'accommodation-rental' ),
			'categories' => array( 'accommodation-rental' ),
			'content'    => "<!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner.png\",\"id\":1593,\"dimRatio\":50,\"minHeight\":650,\"align\":\"full\",\"className\":\"banner-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover alignfull banner-section\" style=\"min-height:650px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-1593\" 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 {\"width\":\"66.66%\",\"className\":\"banner-content\"} -->\n<div class=\"wp-block-column banner-content\" style=\"flex-basis:66.66%\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"16px\",\"fontStyle\":\"normal\",\"fontWeight\":\"700\",\"textTransform\":\"capitalize\"}},\"textColor\":\"white\",\"className\":\"short-text\"} -->\n<p class=\"short-text has-white-color has-text-color\" style=\"font-size:16px;font-style:normal;font-weight:700;text-transform:capitalize\">Relax &amp; Enjoy</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"textAlign\":\"left\",\"level\":1,\"style\":{\"typography\":{\"textTransform\":\"capitalize\",\"fontSize\":\"38px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}},\"textColor\":\"white\"} -->\n<h1 class=\"wp-block-heading has-text-align-left has-white-color has-text-color\" style=\"font-size:38px;font-style:normal;font-weight:600;text-transform:capitalize\">great experiences are just around the corner</h1>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"}},\"textColor\":\"white\"} -->\n<p class=\"has-white-color has-text-color\" style=\"font-size:15px\">Lorem Ipsum&nbsp;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been pulvinar.</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textColor\":\"white\",\"style\":{\"color\":{\"background\":\"#2264c6\"},\"typography\":{\"textTransform\":\"capitalize\",\"fontSize\":\"15px\",\"fontStyle\":\"normal\",\"fontWeight\":\"700\"},\"border\":{\"radius\":\"6px\"}}} -->\n<div class=\"wp-block-button has-custom-font-size\" style=\"font-size:15px;font-style:normal;font-weight:700;text-transform:capitalize\"><a class=\"wp-block-button__link has-white-color has-text-color has-background wp-element-button\" style=\"border-radius:6px;background-color:#2264c6\">book your stay</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"33.33%\",\"className\":\"search-form\"} -->\n<div class=\"wp-block-column search-form\" style=\"flex-basis:33.33%\"><!-- wp:heading {\"textAlign\":\"center\",\"style\":{\"typography\":{\"textTransform\":\"capitalize\",\"fontStyle\":\"normal\",\"fontWeight\":\"700\",\"fontSize\":\"30px\"}},\"textColor\":\"black\",\"className\":\"banner-form-title\"} -->\n<h2 class=\"wp-block-heading has-text-align-center banner-form-title has-black-color has-text-color\" style=\"font-size:30px;font-style:normal;font-weight:700;text-transform:capitalize\">find</h2>\n<!-- /wp:heading -->\n\n<!-- wp:shortcode -->\n[mphb_availability_search]\n<!-- /wp:shortcode --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover -->",
		)
	);

	register_block_pattern(
		'accommodation-rental/about-us-section',
		array(
			'title'      => __( 'Featured Villa Section', 'accommodation-rental' ),
			'categories' => array( 'accommodation-rental' ),
			'content'    => "<!-- wp:columns {\"className\":\"featured-section\"} -->\n<div class=\"wp-block-columns featured-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"align\":\"center\",\"style\":{\"color\":{\"text\":\"#2264c6\"},\"typography\":{\"textTransform\":\"capitalize\",\"fontSize\":\"16px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}},\"className\":\"section-small-text\"} -->\n<p class=\"has-text-align-center section-small-text has-text-color\" style=\"color:#2264c6;font-size:16px;font-style:normal;font-weight:600;text-transform:capitalize\">Recently Added Villa</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"textAlign\":\"center\",\"level\":3,\"style\":{\"typography\":{\"textTransform\":\"none\",\"fontSize\":\"30px\",\"fontStyle\":\"normal\",\"fontWeight\":\"600\"}},\"textColor\":\"black\",\"className\":\"section-heading\"} -->\n<h3 class=\"wp-block-heading has-text-align-center section-heading has-black-color has-text-color\" style=\"font-size:30px;font-style:normal;font-weight:600;text-transform:none\">We believe in giving you the best comfort ever</h3>\n<!-- /wp:heading -->\n\n<!-- wp:shortcode -->\n[mphb_rooms]\n<!-- /wp:shortcode --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);
}