<?php
/**
 * Anime Stream : Block Patterns
 *
 * @package Anime Stream 
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'anime-stream',
		array( 'label' => __( 'Anime Stream ', 'anime-stream' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'anime-stream/slider-settings',
		array(
			'title'      => __( 'Slider Settings', 'anime-stream' ),
			'categories' => array( 'anime-stream' ),
			'content'    => "<!-- wp:group {\"metadata\":{\"categories\":[\"anime-stream\"],\"patternName\":\"anime-stream/slider-settings\",\"name\":\"Slider Settings\"},\"className\":\"slider-setting\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group slider-setting\"><!-- wp:columns {\"className\":\"slider-info\"} -->\n<div class=\"wp-block-columns slider-info\"><!-- wp:column {\"verticalAlignment\":\"center\",\"width\":\"50%\",\"className\":\"slider-first-box\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center slider-first-box\" style=\"flex-basis:50%\"><!-- wp:paragraph {\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"textColor\":\"luminous-vivid-orange\",\"fontSize\":\"medium\"} -->\n<p class=\"has-luminous-vivid-orange-color has-text-color has-link-color has-medium-font-size\">Dragon Ball Z: Battle of Gods</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"25%\",\"className\":\"btn-content\"} -->\n<div class=\"wp-block-column btn-content\" style=\"flex-basis:25%\"><!-- wp:group {\"className\":\"btn-box\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group btn-box\"><!-- wp:buttons {\"className\":\"btn-info\",\"layout\":{\"type\":\"flex\",\"justifyContent\":\"space-between\"}} -->\n<div class=\"wp-block-buttons btn-info\"><!-- wp:button {\"backgroundColor\":\"white\",\"textColor\":\"luminous-vivid-orange\",\"className\":\"btn\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}}} -->\n<div class=\"wp-block-button btn\"><a class=\"wp-block-button__link has-luminous-vivid-orange-color has-white-background-color has-text-color has-background has-link-color wp-element-button\"><img class=\"wp-image-22\" style=\"width: 150px;\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/chat-bubble.png\" alt=\"\">View project</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->\n\n<!-- wp:buttons {\"className\":\"cross-btn\"} -->\n<div class=\"wp-block-buttons cross-btn\"><!-- wp:button {\"backgroundColor\":\"luminous-vivid-orange\",\"textColor\":\"white\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}}} -->\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-color has-luminous-vivid-orange-background-color has-text-color has-background has-link-color wp-element-button\"><img class=\"wp-image-25\" style=\"width: 150px;\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/close.png\" alt=\"\"></a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column {\"verticalAlignment\":\"stretch\",\"width\":\"100%\"} -->\n<div class=\"wp-block-column is-vertically-aligned-stretch\" style=\"flex-basis:100%\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider1.png\",\"id\":234,\"dimRatio\":0,\"customOverlayColor\":\"#725036\",\"isUserOverlayColor\":false,\"sizeSlug\":\"full\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover\"><img class=\"wp-block-cover__image-background wp-image-234 size-full\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider1.png\" data-object-fit=\"cover\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-0 has-background-dim\" style=\"background-color:#725036\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:paragraph {\"align\":\"center\",\"placeholder\":\"Write title…\",\"fontSize\":\"large\"} -->\n<p class=\"has-text-align-center has-large-font-size\"></p>\n<!-- /wp:paragraph --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);

	register_block_pattern(
		'anime-stream/top-charts-section',
		array(
			'title'      => __( 'Top Charts Section ', 'anime-stream' ),
			'categories' => array( 'anime-stream' ),
			'content'    => "<!-- wp:group {\"metadata\":{\"categories\":[\"anime-stream\"],\"patternName\":\"anime-stream/top-charts-section\",\"name\":\"Top Charts Section \"},\"className\":\"top-charts-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group top-charts-section\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"22px\"}}} -->\n<p style=\"font-size:22px\">Top Charts<br><br></p>\n<!-- /wp:paragraph -->\n\n<!-- wp:columns {\"className\":\"image-card\"} -->\n<div class=\"wp-block-columns image-card\"><!-- wp:column {\"width\":\"100%\",\"className\":\"cover-card\",\"style\":{\"color\":{\"background\":\"#333333\"}}} -->\n<div class=\"wp-block-column cover-card has-background\" style=\"background-color:#333333;flex-basis:100%\"><!-- wp:image {\"id\":101,\"width\":\"auto\",\"height\":\"300px\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"imagess\"} -->\n<figure class=\"wp-block-image size-full is-resized imagess\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/chart1.png\" alt=\"\" class=\"wp-image-101\" style=\"width:auto;height:300px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:paragraph {\"className\":\"chart-year\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"backgroundColor\":\"luminous-vivid-orange\",\"textColor\":\"white\"} -->\n<p class=\"chart-year has-white-color has-luminous-vivid-orange-background-color has-text-color has-background has-link-color\">2025</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:columns {\"className\":\"topcharts-info\"} -->\n<div class=\"wp-block-columns topcharts-info\"><!-- wp:column {\"width\":\"100%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:100%\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"className\":\"star-content\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"textColor\":\"luminous-vivid-orange\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group star-content has-luminous-vivid-orange-color has-text-color has-link-color\"><!-- wp:heading {\"level\":4,\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}},\"typography\":{\"fontSize\":\"22px\"}},\"textColor\":\"luminous-vivid-orange\"} -->\n<h4 class=\"wp-block-heading has-luminous-vivid-orange-color has-text-color has-link-color\" style=\"font-size:22px\"><strong>Demon Slayer</strong></h4>\n<!-- /wp:heading -->\n\n<!-- wp:html -->\n<i class=\"fa-solid fa-star\"></i>\n<!-- /wp:html --></div>\n<!-- /wp:group -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-white-color has-text-color has-link-color\" style=\"font-size:16px\">It is the Taisho Period in Japan. Tanjiro, a kindhearted…    </p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:columns {\"className\":\"btn-box\"} -->\n<div class=\"wp-block-columns btn-box\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"className\":\"learn-more-btn\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"luminous-vivid-orange\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group learn-more-btn has-luminous-vivid-orange-color has-white-background-color has-text-color has-background has-link-color\"><!-- wp:html -->\n<i class=\"fa-solid fa-comment-dots\"></i>\n<!-- /wp:html -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"14px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"textColor\":\"luminous-vivid-orange\"} -->\n<p class=\"has-luminous-vivid-orange-color has-text-color has-link-color\" style=\"font-size:14px\">Learn More</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"className\":\"play-btn\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"luminous-vivid-orange\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group play-btn has-luminous-vivid-orange-color has-white-background-color has-text-color has-background has-link-color\"><!-- wp:html -->\n<i class=\"fa-solid fa-play\"></i>\n<!-- /wp:html --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"100%\",\"className\":\"cover-card\",\"style\":{\"color\":{\"background\":\"#333333\"}}} -->\n<div class=\"wp-block-column cover-card has-background\" style=\"background-color:#333333;flex-basis:100%\"><!-- wp:image {\"id\":41,\"width\":\"auto\",\"height\":\"300px\",\"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/chart2.png\" alt=\"\" class=\"wp-image-41\" style=\"width:auto;height:300px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:paragraph {\"className\":\"chart-year\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"backgroundColor\":\"luminous-vivid-orange\",\"textColor\":\"white\"} -->\n<p class=\"chart-year has-white-color has-luminous-vivid-orange-background-color has-text-color has-background has-link-color\">2025</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:columns {\"className\":\"topcharts-info\"} -->\n<div class=\"wp-block-columns topcharts-info\"><!-- wp:column {\"width\":\"100%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:100%\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"className\":\"star-content\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"textColor\":\"luminous-vivid-orange\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group star-content has-luminous-vivid-orange-color has-text-color has-link-color\"><!-- wp:heading {\"level\":4,\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}},\"typography\":{\"fontSize\":\"22px\"}},\"textColor\":\"luminous-vivid-orange\"} -->\n<h4 class=\"wp-block-heading has-luminous-vivid-orange-color has-text-color has-link-color\" style=\"font-size:22px\"><strong>Demon Slayer</strong></h4>\n<!-- /wp:heading -->\n\n<!-- wp:html -->\n<i class=\"fa-solid fa-star\"></i>\n<!-- /wp:html --></div>\n<!-- /wp:group -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-white-color has-text-color has-link-color\" style=\"font-size:16px\">It is the Taisho Period in Japan. Tanjiro, a kindhearted…    </p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:columns {\"className\":\"btn-box\"} -->\n<div class=\"wp-block-columns btn-box\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"className\":\"learn-more-btn\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"luminous-vivid-orange\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group learn-more-btn has-luminous-vivid-orange-color has-white-background-color has-text-color has-background has-link-color\"><!-- wp:html -->\n<i class=\"fa-solid fa-comment-dots\"></i>\n<!-- /wp:html -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"14px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"textColor\":\"luminous-vivid-orange\"} -->\n<p class=\"has-luminous-vivid-orange-color has-text-color has-link-color\" style=\"font-size:14px\">Learn More</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"className\":\"play-btn\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"luminous-vivid-orange\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group play-btn has-luminous-vivid-orange-color has-white-background-color has-text-color has-background has-link-color\"><!-- wp:html -->\n<i class=\"fa-solid fa-play\"></i>\n<!-- /wp:html --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"100%\",\"className\":\"cover-card\",\"style\":{\"color\":{\"background\":\"#333333\"}}} -->\n<div class=\"wp-block-column cover-card has-background\" style=\"background-color:#333333;flex-basis:100%\"><!-- wp:image {\"id\":237,\"width\":\"auto\",\"height\":\"300px\",\"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/chart3.png\" alt=\"\" class=\"wp-image-237\" style=\"width:auto;height:300px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:paragraph {\"className\":\"chart-year\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"backgroundColor\":\"luminous-vivid-orange\",\"textColor\":\"white\"} -->\n<p class=\"chart-year has-white-color has-luminous-vivid-orange-background-color has-text-color has-background has-link-color\">2025</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:columns {\"className\":\"topcharts-info\"} -->\n<div class=\"wp-block-columns topcharts-info\"><!-- wp:column {\"width\":\"100%\"} -->\n<div class=\"wp-block-column\" style=\"flex-basis:100%\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"className\":\"star-content\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"textColor\":\"luminous-vivid-orange\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group star-content has-luminous-vivid-orange-color has-text-color has-link-color\"><!-- wp:heading {\"level\":4,\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}},\"typography\":{\"fontSize\":\"22px\"}},\"textColor\":\"luminous-vivid-orange\"} -->\n<h4 class=\"wp-block-heading has-luminous-vivid-orange-color has-text-color has-link-color\" style=\"font-size:22px\"><strong>Demon Slayer</strong></h4>\n<!-- /wp:heading -->\n\n<!-- wp:html -->\n<i class=\"fa-solid fa-star\"></i>\n<!-- /wp:html --></div>\n<!-- /wp:group -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-white-color has-text-color has-link-color\" style=\"font-size:16px\">It is the Taisho Period in Japan. Tanjiro, a kindhearted…    </p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:columns {\"className\":\"btn-box\"} -->\n<div class=\"wp-block-columns btn-box\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"className\":\"learn-more-btn\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"luminous-vivid-orange\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group learn-more-btn has-luminous-vivid-orange-color has-white-background-color has-text-color has-background has-link-color\"><!-- wp:html -->\n<i class=\"fa-solid fa-comment-dots\"></i>\n<!-- /wp:html -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"14px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"textColor\":\"luminous-vivid-orange\"} -->\n<p class=\"has-luminous-vivid-orange-color has-text-color has-link-color\" style=\"font-size:14px\">Learn More</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:group {\"className\":\"play-btn\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|luminous-vivid-orange\"}}}},\"backgroundColor\":\"white\",\"textColor\":\"luminous-vivid-orange\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group play-btn has-luminous-vivid-orange-color has-white-background-color has-text-color has-background has-link-color\"><!-- wp:html -->\n<i class=\"fa-solid fa-play\"></i>\n<!-- /wp:html --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);
}