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

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

	register_block_pattern_category(
		'vw-wedding',
		array( 'label' => __( 'VW Wedding', 'vw-wedding' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'vw-wedding/banner-section',
		array(
			'title'      => __( 'Banner Section', 'vw-wedding' ),
			'categories' => array( 'vw-wedding' ),
			'content'    => "<!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner.png\",\"id\":793,\"dimRatio\":30,\"minHeight\":500,\"isDark\":false,\"align\":\"full\",\"className\":\"banner-section\"} -->\n<div class=\"wp-block-cover alignfull is-light banner-section\" style=\"min-height:500px\"><span aria-hidden=\"true\" class=\"has-background-dim-30 wp-block-cover__gradient-background has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-793\" 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\":100}},\"textColor\":\"white\",\"className\":\"mb-3\"} -->\n<h1 class=\"has-text-align-center mb-3 has-white-color has-text-color\" style=\"font-size:100px\">Carol &amp; John</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..</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 {\"textColor\":\"white\",\"style\":{\"color\":{\"background\":\"#fc7277\"},\"border\":{\"radius\":\"0px\"}},\"className\":\"mt-4\"} -->\n<div class=\"wp-block-button mt-4\"><a class=\"wp-block-button__link has-white-color has-text-color has-background\" style=\"border-radius:0px;background-color:#fc7277\">Save the Date</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-wedding/about-section',
		array(
			'title'      => __( 'About Section', 'vw-wedding' ),
			'categories' => array( 'vw-wedding' ),
			'content'    => "<!-- wp:columns {\"align\":\"wide\",\"className\":\"about-section m-0 py-5\"} -->\n<div class=\"wp-block-columns alignwide about-section m-0 py-5\"><!-- wp:column {\"className\":\"bride-groom\"} -->\n<div class=\"wp-block-column bride-groom\"><!-- wp:columns {\"className\":\"mb-3\"} -->\n<div class=\"wp-block-columns mb-3\"><!-- wp:column {\"width\":\"33.33%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\"><!-- wp:image {\"id\":795,\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"className\":\"text-md-left text-center\"} -->\n<figure class=\"wp-block-image size-large text-md-left text-center\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/groom.png\" alt=\"\" class=\"wp-image-795\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"66.66%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\"><!-- wp:columns {\"className\":\"heading-icon-section\"} -->\n<div class=\"wp-block-columns heading-icon-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:heading {\"textAlign\":\"left\",\"level\":3,\"style\":{\"typography\":{\"fontSize\":30}},\"textColor\":\"black\",\"className\":\"mb-2 text-md-left text-center\"} -->\n<h3 class=\"wp-block-heading has-text-align-left mb-2 text-md-left text-center has-black-color has-text-color\" style=\"font-size:30px\">John Smith</h3>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"social-icon-section\"} -->\n<div class=\"wp-block-column social-icon-section\"><!-- wp:social-links {\"iconColor\":\"white\",\"iconColorValue\":\"#ffffff\",\"customIconBackgroundColor\":\"#1a1a1a\",\"iconBackgroundColorValue\":\"#1a1a1a\",\"openInNewTab\":true} -->\n<ul class=\"wp-block-social-links has-icon-color has-icon-background-color\"><!-- wp:social-link {\"url\":\"www.facebook.com\",\"service\":\"facebook\"} /-->\n\n<!-- wp:social-link {\"url\":\"www.twitter.com\",\"service\":\"twitter\"} /-->\n\n<!-- wp:social-link {\"url\":\"#\",\"service\":\"pinterest\"} /-->\n\n<!-- wp:social-link {\"url\":\"www.linkedin.com\",\"service\":\"linkedin\"} /--></ul>\n<!-- /wp:social-links --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:paragraph {\"className\":\"text-md-left text-center\"} -->\n<p class=\"text-md-left text-center\">Lorem Ipsum&nbsp;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since.</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:columns {\"className\":\"mb-3\"} -->\n<div class=\"wp-block-columns mb-3\"><!-- wp:column {\"width\":\"66.66%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:66.66%\"><!-- wp:columns {\"className\":\"heading-icon-section\"} -->\n<div class=\"wp-block-columns heading-icon-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:heading {\"textAlign\":\"left\",\"level\":3,\"style\":{\"typography\":{\"fontSize\":30}},\"textColor\":\"black\",\"className\":\"mb-2 text-md-left text-center\"} -->\n<h3 class=\"wp-block-heading has-text-align-left mb-2 text-md-left text-center has-black-color has-text-color\" style=\"font-size:30px\">Carol Teea</h3>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"social-icon-section\"} -->\n<div class=\"wp-block-column social-icon-section\"><!-- wp:social-links {\"iconColor\":\"white\",\"iconColorValue\":\"#ffffff\",\"customIconBackgroundColor\":\"#1a1a1a\",\"iconBackgroundColorValue\":\"#1a1a1a\",\"openInNewTab\":true} -->\n<ul class=\"wp-block-social-links has-icon-color has-icon-background-color\"><!-- wp:social-link {\"url\":\"www.facebook.com\",\"service\":\"facebook\"} /-->\n\n<!-- wp:social-link {\"url\":\"www.twitter.com\",\"service\":\"twitter\"} /-->\n\n<!-- wp:social-link {\"url\":\"#\",\"service\":\"pinterest\"} /-->\n\n<!-- wp:social-link {\"url\":\"www.linkedin.com\",\"service\":\"linkedin\"} /--></ul>\n<!-- /wp:social-links --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:paragraph {\"className\":\"text-md-left text-center\"} -->\n<p class=\"text-md-left text-center\">Lorem Ipsum&nbsp;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since.</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"33.33%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\"><!-- wp:image {\"id\":796,\"sizeSlug\":\"large\",\"linkDestination\":\"none\",\"className\":\"text-md-left text-center\"} -->\n<figure class=\"wp-block-image size-large text-md-left text-center\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/bride.png\" alt=\"\" class=\"wp-image-796\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"love-story\"} -->\n<div class=\"wp-block-column love-story\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/love-story.png\",\"id\":798,\"dimRatio\":0,\"minHeight\":300,\"className\":\"is-light my-0\"} -->\n<div class=\"wp-block-cover is-light my-0\" style=\"min-height:300px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-798\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/love-story.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:paragraph {\"style\":{\"color\":{\"background\":\"#fc7277\"},\"typography\":{\"fontSize\":22}},\"textColor\":\"white\",\"className\":\"story-date\"} -->\n<p class=\"story-date has-white-color has-text-color has-background\" style=\"background-color:#fc7277;font-size:22px\">27 Dec 2021</p>\n<!-- /wp:paragraph --></div></div>\n<!-- /wp:cover -->\n\n<!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":30}},\"textColor\":\"black\",\"className\":\"mt-4 mb-0 text-md-right text-center\"} -->\n<h2 class=\"wp-block-heading mt-4 mb-0 text-md-right text-center has-black-color has-text-color\" style=\"font-size:30px\">OUR FIRST MET</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"style\":{\"color\":{\"text\":\"#474646\"}},\"className\":\"text-md-right text-center\",\"fontSize\":\"small\"} -->\n<p class=\"text-md-right text-center has-text-color has-small-font-size\" style=\"color:#474646\">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);
}