<?php
/**
 * Cricket League: Block Patterns
 *
 * @package Cricket League
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'cricket-league',
		array( 'label' => __( 'Cricket League', 'cricket-league' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'cricket-league/banner-section',
		array(
			'title'      => __( 'Banner Section', 'cricket-league' ),
			'categories' => array( 'cricket-league' ),
			'content'    => "<!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner.png\",\"id\":1336,\"dimRatio\":60,\"overlayColor\":\"black\",\"isUserOverlayColor\":true,\"minHeight\":600,\"align\":\"full\",\"className\":\"banner-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover alignfull banner-section\" style=\"min-height:600px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-black-background-color has-background-dim-60 has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-1336\" 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 {\"className\":\"slider-content container \"} -->\n<div class=\"wp-block-columns slider-content container\"><!-- wp:column {\"width\":\"50%\",\"className\":\"slider-left\"} -->\n<div class=\"wp-block-column slider-left\" style=\"flex-basis:50%\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"}},\"className\":\"small-text\"} -->\n<p class=\"small-text\" style=\"font-size:15px\">Cricket WordPress Theme</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":\"48px\"}}} -->\n<h2 class=\"wp-block-heading\" style=\"font-size:48px\">Detailed Cricket Match News &amp; Review</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"}},\"className\":\"slider-para\"} -->\n<p class=\"slider-para\" style=\"font-size:15px\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:group {\"className\":\"btn-section\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group btn-section\"><!-- wp:buttons {\"className\":\"read-more\"} -->\n<div class=\"wp-block-buttons read-more\"><!-- wp:button {\"style\":{\"typography\":{\"fontSize\":\"15px\"},\"border\":{\"radius\":\"6px\"},\"color\":{\"background\":\"#f36c03\"}}} -->\n<div class=\"wp-block-button has-custom-font-size\" style=\"font-size:15px\"><a class=\"wp-block-button__link has-background wp-element-button\" style=\"border-radius:6px;background-color:#f36c03\">Read More<img class=\"wp-image-978\" style=\"width: 17px;\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/thumb.png\" alt=\"\"></a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->\n\n<!-- wp:buttons {\"className\":\"play-btn\",\"layout\":{\"type\":\"flex\",\"verticalAlignment\":\"top\"}} -->\n<div class=\"wp-block-buttons play-btn\"><!-- wp:button {\"textAlign\":\"center\",\"style\":{\"color\":{\"background\":\"#00000000\"},\"typography\":{\"fontSize\":\"15px\"}}} -->\n<div class=\"wp-block-button has-custom-font-size\" style=\"font-size:15px\"><a class=\"wp-block-button__link has-background has-text-align-center wp-element-button\" style=\"background-color:#00000000\"><img class=\"wp-image-1423\" style=\"width: 50px;\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/play.png\" alt=\"\">Last Highlight Match</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"50%\",\"className\":\"slider-right\"} -->\n<div class=\"wp-block-column slider-right\" style=\"flex-basis:50%\"></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover -->",
		)
	);

	register_block_pattern(
		'cricket-league/player-section',
		array(
			'title'      => __( 'Player Section', 'cricket-league' ),
			'categories' => array( 'cricket-league' ),
			'content'    => "<!-- wp:group {\"className\":\"player-section\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\",\"justifyContent\":\"right\"}} -->\n<div class=\"wp-block-group player-section\"><!-- wp:image {\"id\":1355,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"boll-sec\"} -->\n<figure class=\"wp-block-image size-full boll-sec\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/red-ball.png\" alt=\"\" class=\"wp-image-1355\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":1356,\"width\":\"650px\",\"height\":\"800px\",\"scale\":\"contain\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"player-sec\"} -->\n<figure class=\"wp-block-image size-full is-resized player-sec\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/plyer.png\" alt=\"\" class=\"wp-image-1356\" style=\"object-fit:contain;width:650px;height:800px\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:group -->",
		)
	);

	register_block_pattern(
		'cricket-league/about-us-section',
		array(
			'title'      => __( 'About Us Section', 'cricket-league' ),
			'categories' => array( 'cricket-league' ),
			'content'    => "<!-- wp:columns {\"className\":\"about-us-section  mt-5\"} -->\n<div class=\"wp-block-columns about-us-section  mt-5\"><!-- wp:column {\"className\":\"about-us-left\"} -->\n<div class=\"wp-block-column about-us-left\"><!-- wp:group {\"className\":\"position-relative top-col\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\",\"justifyContent\":\"center\"}} -->\n<div class=\"wp-block-group position-relative top-col\"><!-- wp:image {\"id\":1393,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"img-1\"} -->\n<figure class=\"wp-block-image size-full img-1\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/Bat.png\" alt=\"\" class=\"wp-image-1393\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":1394,\"width\":\"350px\",\"height\":\"260px\",\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"img-2\"} -->\n<figure class=\"wp-block-image size-full is-resized img-2\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/man1.png\" alt=\"\" class=\"wp-image-1394\" style=\"object-fit:cover;width:350px;height:260px\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:group -->\n\n<!-- wp:group {\"className\":\"position-relative bottom-col\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group position-relative bottom-col\"><!-- wp:image {\"id\":1400,\"width\":\"250px\",\"height\":\"180px\",\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"img-3\"} -->\n<figure class=\"wp-block-image size-full is-resized img-3\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/man2.png\" alt=\"\" class=\"wp-image-1400\" style=\"object-fit:cover;width:250px;height:180px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":1401,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"img-4\"} -->\n<figure class=\"wp-block-image size-full img-4\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/helmet.png\" alt=\"\" class=\"wp-image-1401\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:columns {\"style\":{\"color\":{\"background\":\"#ff6f00\"}},\"className\":\"img-5\"} -->\n<div class=\"wp-block-columns img-5 has-background\" style=\"background-color:#ff6f00\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"50px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\",\"className\":\"text1\"} -->\n<p class=\"text1 has-white-color has-text-color has-link-color\" style=\"font-size:50px\">22</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"18px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\",\"className\":\"text2\"} -->\n<p class=\"text2 has-white-color has-text-color has-link-color\" style=\"font-size:18px\">Year Experience In It</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"about-us-right\"} -->\n<div class=\"wp-block-column about-us-right\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"18px\"},\"color\":{\"text\":\"#ff6f00\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#ff6f00\"}}}},\"className\":\"small-text\"} -->\n<p class=\"small-text has-text-color has-link-color\" style=\"color:#ff6f00;font-size:18px\">About Us</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"level\":3,\"style\":{\"typography\":{\"fontSize\":\"35px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"textColor\":\"black\"} -->\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color\" style=\"font-size:35px\">Life Is An Elaborate Metaphor For VW Cricket</h3>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"textColor\":\"black\"} -->\n<p class=\"has-black-color has-text-color has-link-color\" style=\"font-size:15px\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:columns {\"className\":\"auther-sec\"} -->\n<div class=\"wp-block-columns auther-sec\"><!-- wp:column {\"verticalAlignment\":\"center\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\"><!-- wp:buttons {\"layout\":{\"type\":\"flex\",\"verticalAlignment\":\"center\"}} -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textAlign\":\"center\",\"backgroundColor\":\"black\",\"style\":{\"typography\":{\"fontSize\":\"15px\"},\"border\":{\"radius\":\"6px\"}},\"className\":\"explore-btn\"} -->\n<div class=\"wp-block-button has-custom-font-size explore-btn\" style=\"font-size:15px\"><a class=\"wp-block-button__link has-black-background-color has-background has-text-align-center wp-element-button\" style=\"border-radius:6px\">Explore More<img class=\"wp-image-978\" style=\"width: 17px;\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/thumb.png\" alt=\"\"></a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"author\"} -->\n<div class=\"wp-block-column author\"><!-- wp:columns {\"className\":\"john-section\"} -->\n<div class=\"wp-block-columns john-section\"><!-- wp:column {\"className\":\"john-img\"} -->\n<div class=\"wp-block-column john-img\"><!-- wp:image {\"id\":1440,\"width\":\"70px\",\"height\":\"70px\",\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full is-resized\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/john.png\" alt=\"\" class=\"wp-image-1440\" style=\"object-fit:cover;width:70px;height:70px\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"john-text pt-2\"} -->\n<div class=\"wp-block-column john-text pt-2\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"textColor\":\"black\",\"className\":\" mb-0\"} -->\n<p class=\"mb-0 has-black-color has-text-color has-link-color\" style=\"font-size:16px\">John Cena</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|black\"}}}},\"textColor\":\"black\",\"className\":\"post\"} -->\n<p class=\"post has-black-color has-text-color has-link-color\" style=\"font-size:15px\">Chairman</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);

	register_block_pattern(
		'cricket-league/product-section',
		array(
			'title'      => __( 'Product Section', 'cricket-league' ),
			'categories' => array( 'cricket-league' ),
			'content'    => "<!-- wp:columns {\"className\":\"product-section mt-5\"} -->\n<div class=\"wp-block-columns product-section mt-5\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"18px\"},\"color\":{\"text\":\"#ff6f00\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#ff6f00\"}}}},\"className\":\"product-heading\"} -->\n<p class=\"has-text-align-center product-heading has-text-color has-link-color\" style=\"color:#ff6f00;font-size:18px\">Product Shop</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"textAlign\":\"center\",\"level\":4,\"style\":{\"typography\":{\"fontSize\":\"26px\"}},\"className\":\"mb-5\"} -->\n<h4 class=\"wp-block-heading has-text-align-center mb-5\" style=\"font-size:26px\">Exclusive Collection</h4>\n<!-- /wp:heading -->\n\n<!-- wp:shortcode -->\n[products limit=\"4\" columns=\"4\"]\n<!-- /wp:shortcode --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);
	register_block_pattern(
		'cricket-league/sponser-section',
		array(
			'title'      => __( 'Sponser Section', 'cricket-league' ),
			'categories' => array( 'cricket-league' ),
			'content'    => "<!-- wp:columns {\"className\":\"sponser-section\"} -->\n<div class=\"wp-block-columns sponser-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\",\"justifyContent\":\"center\"}} -->\n<div class=\"wp-block-group\"><!-- wp:image {\"id\":1468,\"width\":\"180px\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"px-2\"} -->\n<figure class=\"wp-block-image size-full is-resized px-2\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slide1.png\" alt=\"\" class=\"wp-image-1468\" style=\"width:180px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":1470,\"width\":\"180px\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full is-resized\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slide2.png\" alt=\"\" class=\"wp-image-1470\" style=\"width:180px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":1471,\"width\":\"180px\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full is-resized\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slide3.png\" alt=\"\" class=\"wp-image-1471\" style=\"width:180px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":1472,\"width\":\"180px\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full is-resized\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slide4.png\" alt=\"\" class=\"wp-image-1472\" style=\"width:180px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":1473,\"width\":\"180px\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full is-resized\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slide5.png\" alt=\"\" class=\"wp-image-1473\" style=\"width:180px\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);
}