<?php
/**
 * Book Publisher Agency: Block Patterns
 *
 * @package Book Publisher Agency
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'book-publisher-agency',
		array( 'label' => __( 'Book Publisher Agency', 'book-publisher-agency' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'book-publisher-agency/banner-section',
		array(
			'title'      => __( 'Banner Section', 'book-publisher-agency' ),
			'categories' => array( 'book-publisher-agency' ),
			'content'    => "<!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider.png\",\"id\":791,\"dimRatio\":50,\"customOverlayColor\":\"#1b1a1a\",\"isUserOverlayColor\":true,\"minHeight\":500,\"align\":\"full\",\"className\":\"banner-section\",\"layout\":{\"type\":\"constrained\"}} -->\n<div class=\"wp-block-cover alignfull banner-section\" style=\"min-height:500px\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\" style=\"background-color:#1b1a1a\"></span><img class=\"wp-block-cover__image-background wp-image-791\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/slider.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column {\"width\":\"50%\",\"className\":\"slider-content col-xl-6 col-lg-5 col-md-6 col-12 \"} -->\n<div class=\"wp-block-column slider-content col-xl-6 col-lg-5 col-md-6 col-12\" style=\"flex-basis:50%\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"}},\"className\":\"small-text\"} -->\n<p class=\"small-text\" style=\"font-size:15px\">PUBLISHING HOUSE</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"style\":{\"typography\":{\"fontSize\":\"32px\"}}} -->\n<h2 class=\"wp-block-heading\" style=\"font-size:32px\">The new novel From John Verma</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 dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:columns {\"className\":\"btn-section\"} -->\n<div class=\"wp-block-columns btn-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"border\":{\"radius\":\"30px\"},\"color\":{\"background\":\"#385cff\"}},\"className\":\"read-btn m-0\"} -->\n<div class=\"wp-block-button has-custom-font-size read-btn m-0\" style=\"font-size:16px\"><a class=\"wp-block-button__link has-background wp-element-button\" style=\"border-radius:30px;background-color:#385cff\">READ MORE</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"border\":{\"radius\":\"30px\"}},\"className\":\"is-style-outline contact-btn m-0\"} -->\n<div class=\"wp-block-button has-custom-font-size is-style-outline contact-btn m-0\" style=\"font-size:16px\"><a class=\"wp-block-button__link wp-element-button\" style=\"border-radius:30px\">CONTACT US</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"50%\",\"className\":\"position-relative slider-img col-xl-6 col-lg-7 col-md-6 col-12\"} -->\n<div class=\"wp-block-column position-relative slider-img col-xl-6 col-lg-7 col-md-6 col-12\" style=\"flex-basis:50%\"><!-- wp:image {\"id\":802,\"sizeSlug\":\"full\",\"linkDestination\":\"none\"} -->\n<figure class=\"wp-block-image size-full\"><img src=\"" . esc_url(get_template_directory_uri()) . "/inc/block-patterns/images/user.png\" alt=\"\" class=\"wp-image-802\"/></figure>\n<!-- /wp:image --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover -->",
		)
	);

	register_block_pattern(
		'book-publisher-agency/contact-section',
		array(
			'title'      => __( 'Contact Section', 'book-publisher-agency' ),
			'categories' => array( 'book-publisher-agency' ),
			'content'    => "<!-- wp:columns {\"align\":\"full\",\"backgroundColor\":\"black\",\"className\":\"contact-section\"} -->\n<div class=\"wp-block-columns alignfull contact-section has-black-background-color has-background\"><!-- wp:column {\"style\":{\"color\":{\"background\":\"#385cff\"}},\"className\":\"contact-us-left\"} -->\n<div class=\"wp-block-column contact-us-left has-background\" style=\"background-color:#385cff\"><!-- wp:heading {\"level\":3,\"style\":{\"typography\":{\"fontSize\":\"22px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<h3 class=\"wp-block-heading has-white-color has-text-color has-link-color\" style=\"font-size:22px\">For Any Help or Queries Please Contact Us</h3>\n<!-- /wp:heading -->\n\n<!-- wp:columns {\"className\":\"add-section\"} -->\n<div class=\"wp-block-columns add-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column {\"width\":\"20%\",\"className\":\"icon-sec\"} -->\n<div class=\"wp-block-column icon-sec\" style=\"flex-basis:20%\"><!-- wp:html -->\n<i class=\"fa-solid fa-phone\"></i>\n<!-- /wp:html --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"90%\",\"className\":\"text-sec\"} -->\n<div class=\"wp-block-column text-sec\" style=\"flex-basis:90%\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"},\"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:15px\">+001234567890</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column {\"width\":\"20%\",\"className\":\"icon-sec\"} -->\n<div class=\"wp-block-column icon-sec\" style=\"flex-basis:20%\"><!-- wp:html -->\n<i class=\"fa-solid fa-envelope-open-text\"></i>\n<!-- /wp:html --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"width\":\"90%\",\"className\":\"text-sec\"} -->\n<div class=\"wp-block-column text-sec\" style=\"flex-basis:90%\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"},\"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:15px\"><a href=\"mailto:xyz123@example.com\">xyz123@example.com</a></p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"contact-us-right\"} -->\n<div class=\"wp-block-column contact-us-right\"><!-- wp:columns {\"className\":\"book-section px-3\"} -->\n<div class=\"wp-block-columns book-section px-3\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\",\"className\":\"py-4\"} -->\n<p class=\"py-4 has-white-color has-text-color has-link-color\" style=\"font-size:16px\">(TRUSTED BY 5M+ BUSINESS)</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"py-2\"} -->\n<div class=\"wp-block-column py-2\"><!-- wp:html -->\n<i class=\"fa-solid fa-book\"></i>\n<!-- /wp:html -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-text-align-center has-white-color has-text-color has-link-color\" style=\"font-size:16px\">MY BOOKS</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"py-2\"} -->\n<div class=\"wp-block-column py-2\"><!-- wp:html -->\n<i class=\"fa-solid fa-book-open-reader\"></i>\n<!-- /wp:html -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-text-align-center has-white-color has-text-color has-link-color\" style=\"font-size:16px\">CREATIVE</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"py-2\"} -->\n<div class=\"wp-block-column py-2\"><!-- wp:html -->\n<i class=\"fa-solid fa-book-open\"></i>\n<!-- /wp:html -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-text-align-center has-white-color has-text-color has-link-color\" style=\"font-size:16px\">LAKE BOOK</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"py-2\"} -->\n<div class=\"wp-block-column py-2\"><!-- wp:html -->\n<i class=\"fa-solid fa-book-journal-whills\"></i>\n<!-- /wp:html -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<p class=\"has-text-align-center has-white-color has-text-color has-link-color\" style=\"font-size:16px\">PUBLISH</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);

	register_block_pattern(
		'book-publisher-agency/feature-section',
		array(
			'title'      => __( 'Feature Section', 'book-publisher-agency' ),
			'categories' => array( 'book-publisher-agency' ),
			'content'    => "<!-- wp:columns {\"className\":\"feature-section  mt-5 mb-3\"} -->\n<div class=\"wp-block-columns feature-section  mt-5 mb-3\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:columns {\"className\":\"heading-sec mb-4\"} -->\n<div class=\"wp-block-columns heading-sec mb-4\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"16px\"}}} -->\n<p style=\"font-size:16px\">FEATURED PUBLICATION</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:heading {\"level\":4,\"style\":{\"typography\":{\"fontSize\":\"22px\"}}} -->\n<h4 class=\"wp-block-heading\" style=\"font-size:22px\">EXPLORE OUR PUBLICATION</h4>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:buttons {\"layout\":{\"type\":\"flex\",\"justifyContent\":\"right\"}} -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"textAlign\":\"right\",\"textColor\":\"white\",\"style\":{\"typography\":{\"fontSize\":\"16px\"},\"border\":{\"radius\":\"30px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}},\"color\":{\"background\":\"#385cff\"}},\"className\":\"publish-btn\"} -->\n<div class=\"wp-block-button has-custom-font-size publish-btn\" style=\"font-size:16px\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color has-text-align-right wp-element-button\" style=\"border-radius:30px;background-color:#385cff\">View All Publication</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:columns {\"className\":\"img-section\"} -->\n<div class=\"wp-block-columns img-section\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:image {\"id\":863,\"width\":\"530px\",\"height\":\"300px\",\"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/book1.png\" alt=\"\" class=\"wp-image-863\" style=\"object-fit:cover;width:530px;height:300px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:columns {\"backgroundColor\":\"black\",\"className\":\"position-relative box\"} -->\n<div class=\"wp-block-columns position-relative box has-black-background-color has-background\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:heading {\"level\":4,\"style\":{\"typography\":{\"fontSize\":\"24px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<h4 class=\"wp-block-heading has-white-color has-text-color has-link-color\" style=\"font-size:24px\">Book Tittle 01</h4>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#ffe6e6\"}}},\"color\":{\"text\":\"#ffe6e6\"}}} -->\n<p class=\"has-text-color has-link-color\" style=\"color:#ffe6e6;font-size:15px\">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column -->\n\n<!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:image {\"id\":868,\"width\":\"530px\",\"height\":\"300px\",\"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/book2.png\" alt=\"\" class=\"wp-image-868\" style=\"object-fit:cover;width:530px;height:300px\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:columns {\"backgroundColor\":\"black\",\"className\":\"position-relative box\"} -->\n<div class=\"wp-block-columns position-relative box has-black-background-color has-background\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:heading {\"level\":4,\"style\":{\"typography\":{\"fontSize\":\"24px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"var:preset|color|white\"}}}},\"textColor\":\"white\"} -->\n<h4 class=\"wp-block-heading has-white-color has-text-color has-link-color\" style=\"font-size:24px\">Book Tittle 02</h4>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"15px\"},\"elements\":{\"link\":{\"color\":{\"text\":\"#ffe6e6\"}}},\"color\":{\"text\":\"#ffe6e6\"}}} -->\n<p class=\"has-text-color has-link-color\" style=\"color:#ffe6e6;font-size:15px\">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</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 -->",
		)
	);
}