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

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

	register_block_pattern_category(
		'vw-lifestyle-blog',
		array( 'label' => __( 'VW Lifestyle Blog ', 'vw-lifestyle-blog' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'vw-lifestyle-blog/banner-section',
		array(
			'title'      => __( 'Banner Section', 'vw-lifestyle-blog' ),
			'categories' => array( 'vw-lifestyle-blog' ),
			'content'    => "<!-- wp:group {\"metadata\":{\"categories\":[\"vw-lifestyle-blog\"],\"patternName\":\"vw-lifestyle-blog/banner-section\",\"name\":\"Banner Section\"},\"align\":\"full\",\"className\":\"vw-lifestyle-blog-slider-section\",\"fontSize\":\"medium\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group alignfull vw-lifestyle-blog-slider-section has-medium-font-size\"><!-- wp:columns {\"align\":\"full\",\"className\":\"slider-main\"} -->\n<div class=\"wp-block-columns alignfull slider-main\"><!-- wp:column {\"width\":\"15%\",\"className\":\"left-main\"} -->\n<div class=\"wp-block-column left-main\" style=\"flex-basis:15%\"><!-- wp:image {\"id\":70,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"left-img left-img1\"} -->\n<figure class=\"wp-block-image size-full left-img left-img1\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/left1.png\" alt=\"\" class=\"wp-image-70\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":71,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"left-img left-img2\"} -->\n<figure class=\"wp-block-image size-full left-img left-img2\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/left2.png\" alt=\"\" class=\"wp-image-71\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":72,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"left-img left-img3\"} -->\n<figure class=\"wp-block-image size-full left-img left-img3\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/left3.png\" alt=\"\" class=\"wp-image-72\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":73,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"left-img left-img4\"} -->\n<figure class=\"wp-block-image size-full left-img left-img4\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/left4.png\" alt=\"\" class=\"wp-image-73\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":74,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"left-img left-img5\"} -->\n<figure class=\"wp-block-image size-full left-img left-img5\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/left5.png\" alt=\"\" class=\"wp-image-74\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":75,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"left-img left-img6\"} -->\n<figure class=\"wp-block-image size-full left-img left-img6\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/left6.png\" alt=\"\" class=\"wp-image-75\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"70%\",\"className\":\"middle-main\"} -->\n<div class=\"wp-block-column middle-main\" style=\"flex-basis:70%\"><!-- wp:heading {\"textAlign\":\"center\",\"className\":\"banner-heading\"} -->\n<h2 class=\"wp-block-heading has-text-align-center banner-heading\">The Ultimate Morning Routine for Productivity and Wellness</h2>\n<!-- /wp:heading -->\n\n<!-- wp:group {\"className\":\"post-meta\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group post-meta\"><!-- wp:avatar {\"userId\":1,\"size\":33,\"isLink\":true,\"className\":\"avtar-img \"} /-->\n\n<!-- wp:html -->\n<i class=\"fa-solid fa-message\"></i>\n<!-- /wp:html -->\n\n<!-- wp:paragraph {\"align\":\"left\",\"className\":\"message-text\",\"style\":{\"elements\":{\"link\":{\"color\":{\"text\":\"#5b5858\"}}},\"color\":{\"text\":\"#5b5858\"}}} -->\n<p class=\"has-text-align-left message-text has-text-color has-link-color\" style=\"color:#5b5858\">0</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:post-date {\"style\":{\"color\":{\"text\":\"#929292\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#929292\"}}},\"typography\":{\"fontSize\":\"14px\"}}} /--></div>\n<!-- /wp:group -->\n\n<!-- wp:image {\"id\":49,\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"slider-img\"} -->\n<figure class=\"wp-block-image size-full slider-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner-post2.png\" alt=\"\" class=\"wp-image-49\" style=\"object-fit:cover\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:group {\"className\":\"post-meta\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group post-meta\"><!-- wp:image {\"id\":123,\"width\":\"72px\",\"height\":\"auto\",\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"indicator-img-wrapper\"} -->\n<figure class=\"wp-block-image size-full is-resized indicator-img-wrapper\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner-post1.png\" alt=\"\" class=\"wp-image-123\" style=\"aspect-ratio:1;object-fit:cover;width:72px;height:auto\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:paragraph {\"className\":\"post-para\",\"style\":{\"color\":{\"text\":\"#3a3a3a\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#3a3a3a\"}}},\"typography\":{\"fontStyle\":\"normal\",\"fontWeight\":\"400\",\"fontSize\":\"14px\"}}} -->\n<p class=\"post-para has-text-color has-link-color\" style=\"color:#3a3a3a;font-size:14px;font-style:normal;font-weight:400\">10 Simple Ways to Refresh Your Wardrobe for Fall</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:image {\"id\":127,\"width\":\"72px\",\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"indicator-img-wrapper\"} -->\n<figure class=\"wp-block-image size-full is-resized indicator-img-wrapper\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner-post2.png\" alt=\"\" class=\"wp-image-127\" style=\"aspect-ratio:1;object-fit:cover;width:72px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:paragraph {\"className\":\"post-para\",\"style\":{\"color\":{\"text\":\"#3a3a3a\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#3a3a3a\"}}},\"typography\":{\"fontStyle\":\"normal\",\"fontWeight\":\"400\",\"fontSize\":\"14px\"}}} -->\n<p class=\"post-para has-text-color has-link-color\" style=\"color:#3a3a3a;font-size:14px;font-style:normal;font-weight:400\">The Ultimate Morning Routine for Productivity and Wellness</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:image {\"id\":128,\"width\":\"72px\",\"aspectRatio\":\"1\",\"scale\":\"cover\",\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"indicator-img-wrapper\"} -->\n<figure class=\"wp-block-image size-full is-resized indicator-img-wrapper\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/banner-post3.png\" alt=\"\" class=\"wp-image-128\" style=\"aspect-ratio:1;object-fit:cover;width:72px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:paragraph {\"className\":\"post-para\",\"style\":{\"color\":{\"text\":\"#3a3a3a\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#3a3a3a\"}}},\"typography\":{\"fontStyle\":\"normal\",\"fontWeight\":\"400\",\"fontSize\":\"14px\"}}} -->\n<p class=\"post-para has-text-color has-link-color\" style=\"color:#3a3a3a;font-size:14px;font-style:normal;font-weight:400\">Top 5 Travel Destinations for Solo Adventurers in 2024</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:group --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"15%\",\"className\":\"right-main\"} -->\n<div class=\"wp-block-column right-main\" style=\"flex-basis:15%\"><!-- wp:image {\"id\":109,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"right-img right-img1\"} -->\n<figure class=\"wp-block-image size-full right-img right-img1\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/right1.png\" alt=\"\" class=\"wp-image-109\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":110,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"right-img right-img2\"} -->\n<figure class=\"wp-block-image size-full right-img right-img2\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/right2.png\" alt=\"\" class=\"wp-image-110\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":111,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"right-img right-img3\"} -->\n<figure class=\"wp-block-image size-full right-img right-img3\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/right3.png\" alt=\"\" class=\"wp-image-111\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":113,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"right-img right-img4\"} -->\n<figure class=\"wp-block-image size-full right-img right-img4\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/right4.png\" alt=\"\" class=\"wp-image-113\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":114,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"right-img right-img5\"} -->\n<figure class=\"wp-block-image size-full right-img right-img5\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/right5.png\" alt=\"\" class=\"wp-image-114\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:image {\"id\":115,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"right-img right-img6\"} -->\n<figure class=\"wp-block-image size-full right-img right-img6\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/right6.png\" alt=\"\" class=\"wp-image-115\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);

	register_block_pattern(
		'vw-lifestyle-blog/category-section',
		array(
			'title'      => __( 'Category Section ', 'vw-lifestyle-blog' ),
			'categories' => array( 'vw-lifestyle-blog' ),
			'content'    => "<!-- wp:group {\"metadata\":{\"categories\":[\"vw-lifestyle-blog\"],\"patternName\":\"vw-lifestyle-blog/category-section\",\"name\":\"Category Section \"},\"className\":\"vw-lifestyle-blog-section-content\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group vw-lifestyle-blog-section-content\"><!-- wp:paragraph {\"className\":\"section-text \"} -->\n<p class=\"section-text \">Blogs</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"className\":\"section-title \"} -->\n<h2 class=\"wp-block-heading section-title\">Explore tips, trends, and inspiration for modern living.</h2>\n<!-- /wp:heading -->\n\n<!-- wp:columns {\"className\":\"blogs-column\"} -->\n<div class=\"wp-block-columns blogs-column\"><!-- wp:column {\"width\":\"80%\",\"className\":\"section2-column1\"} -->\n<div class=\"wp-block-column section2-column1\" style=\"flex-basis:80%\"><!-- wp:query {\"queryId\":45,\"query\":{\"perPage\":3,\"pages\":0,\"offset\":0,\"postType\":\"post\",\"order\":\"desc\",\"orderBy\":\"date\",\"author\":\"\",\"search\":\"\",\"exclude\":[],\"sticky\":\"exclude\",\"inherit\":false},\"metadata\":{\"categories\":[\"posts\"],\"patternName\":\"core/query-grid-posts\",\"name\":\"Grid\"}} -->\n<div class=\"wp-block-query\"><!-- wp:post-template {\"className\":\"blogs-box\",\"layout\":{\"type\":\"grid\",\"columnCount\":3}} -->\n<!-- wp:group {\"className\":\"blog\",\"style\":{\"spacing\":{\"padding\":{\"top\":\"30px\",\"right\":\"30px\",\"bottom\":\"30px\",\"left\":\"30px\"}}},\"layout\":{\"inherit\":false}} -->\n<div class=\"wp-block-group blog\" style=\"padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\"><!-- wp:group {\"className\":\"post-img-group\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group post-img-group\"><!-- wp:post-featured-image {\"className\":\"classes-inner-box \"} /-->\n\n<!-- wp:post-terms {\"term\":\"post_tag\",\"separator\":\"\",\"className\":\"post-categories\"} /--></div>\n<!-- /wp:group -->\n\n<!-- wp:group {\"className\":\"shadow-box\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group shadow-box\"><!-- wp:group {\"className\":\"blogs-content \",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group blogs-content\"><!-- wp:post-title {\"isLink\":true,\"className\":\"blogs-title\"} /-->\n\n<!-- wp:post-excerpt {\"excerptLength\":10,\"className\":\"blogssec-desc\"} /-->\n\n<!-- wp:group {\"className\":\"author-row\",\"layout\":{\"type\":\"flex\",\"flexWrap\":\"nowrap\"}} -->\n<div class=\"wp-block-group author-row\"><!-- wp:avatar {\"isLink\":true,\"linkTarget\":\"_blank\",\"className\":\"author\"} /-->\n\n<!-- wp:group {\"className\":\"row-author\",\"layout\":{\"type\":\"flex\",\"orientation\":\"vertical\"}} -->\n<div class=\"wp-block-group row-author\"><!-- wp:paragraph {\"className\":\"author-para\"} -->\n<p class=\"author-para\">by</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:post-author-name {\"isLink\":true,\"linkTarget\":\"_blank\",\"className\":\"author-name\"} /--></div>\n<!-- /wp:group -->\n\n<!-- wp:post-date {\"className\":\"date \"} /--></div>\n<!-- /wp:group --></div>\n<!-- /wp:group --></div>\n<!-- /wp:group --></div>\n<!-- /wp:group -->\n<!-- /wp:post-template --></div>\n<!-- /wp:query --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"20%\",\"className\":\"section2-column2\"} -->\n<div class=\"wp-block-column section2-column2\" style=\"flex-basis:20%\"><!-- wp:cover {\"url\":\"  " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/category-bg.png\",\"id\":204,\"dimRatio\":60,\"isUserOverlayColor\":true,\"sizeSlug\":\"medium\",\"className\":\"category-bg\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover category-bg\"><img class=\"wp-block-cover__image-background wp-image-204 size-medium\" alt=\"\" src=\"  " . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/category-bg.png\" data-object-fit=\"cover\"/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-60 has-background-dim\"></span><div class=\"wp-block-cover__inner-container\"><!-- wp:group {\"className\":\"bg-content \",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-group bg-content\"><!-- wp:heading {\"level\":4,\"className\":\"cat-title\"} -->\n<h4 class=\"wp-block-heading cat-title\">Categories</h4>\n<!-- /wp:heading -->\n\n<!-- wp:categories {\"className\":\"category-list\"} /--></div>\n<!-- /wp:group --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->
			
			
			
			
			
			
			",
		)
	);
}