<?php
/**
 * TS Photography : Block Patterns
 *
 * @package  TS Photography 
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'ts-photography',
		array( 'label' => __( ' TS Photography ', 'ts-photography' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'ts-photography/banner-section',
		array(
			'title'      => __( 'Banner Section', 'ts-photography' ),
			'categories' => array( 'ts-photography' ),
			'content'    => "<!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/theme-block-pattern/images/banner.png\",\"id\":171,\"dimRatio\":30,\"minHeight\":600,\"isDark\":false,\"align\":\"full\",\"className\":\"banner-section\"} -->\n<div class=\"wp-block-cover alignfull is-light banner-section\" style=\"min-height:600px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-30 has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-171\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/theme-block-pattern/images/banner.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"textAlign\":\"center\",\"level\":1,\"style\":{\"typography\":{\"fontSize\":\"40px\"}},\"textColor\":\"white\"} -->\n<h1 class=\"has-text-align-center has-white-color has-text-color\" style=\"font-size:40px\">Lorem ipsum dolor sit amet, consectetur adipiscing elit</h1>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"15px\"}},\"textColor\":\"white\",\"className\":\"mb-0\"} -->\n<p class=\"has-text-align-center mb-0 has-white-color has-text-color\" style=\"font-size:15px\">Lorem Ipsum&nbsp;is simply dummy text Lorem ipsum Lorem Ipsum&nbsp;is simply</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"15px\"},\"color\":{\"background\":\"#00000000\",\"text\":\"var(--secondary-color)\"}},\"className\":\"banner-section-btn mt\"} -->\n<div class=\"wp-block-button aligncenter has-custom-font-size banner-section-btn mt\" style=\"font-size:15px\"><a class=\"wp-block-button__link has-text-color has-background\" style=\"background-color:#00000000;color:var(--secondary-color)\">DISCOVER MORE</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div></div>\n<!-- /wp:cover -->",
		)
	);

	register_block_pattern(
		'ts-photography/service-section',
		array(
			'title'      => __( 'service-section', 'ts-photography' ),
			'categories' => array( 'ts-photography' ),
			'content'    => "<!-- wp:group {\"className\":\"service-section mt-5\"} -->\n<div class=\"wp-block-group service-section mt-5\"><!-- wp:columns {\"className\":\"service-section\"} -->\n<div class=\"wp-block-columns service-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/theme-block-pattern/images/service-image1.png\",\"id\":179,\"dimRatio\":50} -->\n<div class=\"wp-block-cover\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-179\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/theme-block-pattern/images/service-image1.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"textAlign\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"24px\"}},\"className\":\"mb-2 mb-md-3 \"} -->\n<h2 class=\"has-text-align-center mb-2 mb-md-3\" style=\"font-size:24px\">LOREM IPSUM</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"12px\"}}} -->\n<p class=\"has-text-align-center\" style=\"font-size:12px\"><em>YOUR CATEGORIES SUB TITILE HERE</em></p>\n<!-- /wp:paragraph --></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()) . "/theme-block-pattern/images/service-image2.png\",\"id\":180,\"dimRatio\":50} -->\n<div class=\"wp-block-cover\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-180\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/theme-block-pattern/images/service-image2.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"textAlign\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"24px\"}},\"className\":\"mb-2 mb-md-3\"} -->\n<h2 class=\"has-text-align-center mb-2 mb-md-3\" style=\"font-size:24px\">LOREM IPSUM</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"12px\"}}} -->\n<p class=\"has-text-align-center\" style=\"font-size:12px\"><em>YOUR CATEGORIES SUB TITILE HERE</em></p>\n<!-- /wp:paragraph --></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()) . "/theme-block-pattern/images/service-image3.png\",\"id\":181,\"dimRatio\":50} -->\n<div class=\"wp-block-cover\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-181\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/theme-block-pattern/images/service-image3.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:heading {\"textAlign\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"24px\"}},\"className\":\"mb-2 mb-md-3\"} -->\n<h2 class=\"has-text-align-center mb-2 mb-md-3\" style=\"font-size:24px\">LOREM IPSUM</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"12px\"}}} -->\n<p class=\"has-text-align-center\" style=\"font-size:12px\"><em>YOUR CATEGORIES SUB TITILE HERE</em></p>\n<!-- /wp:paragraph --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);
}