<?php
/**
 *Multipurpose Magazine: Block Patterns
 *
 * @package Multipurpose Magazine
 * @since   1.0.0
 */

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

	register_block_pattern_category(
		'multipurpose-magazine',
		array( 'label' => __( 'Multipurpose Magazine', 'multipurpose-magazine' ) )
	);
}

/**
 * Register Block Patterns.
 */
if ( function_exists( 'register_block_pattern' ) ) {
	register_block_pattern(
		'multipurpose-magazine/banner-section',
		array(
			'title'      => __( 'Banner Section', 'multipurpose-magazine' ),
			'categories' => array( 'multipurpose-magazine' ),
			'content'    => "<!-- wp:columns {\"align\":\"full\",\"className\":\"main-banner-section\"} -->\n<div class=\"wp-block-columns alignfull main-banner-section\"><!-- wp:column {\"className\":\"banner-section-first-cat\"} -->\n<div class=\"wp-block-column banner-section-first-cat\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/block-patterns/images/banner1.png\",\"id\":490,\"dimRatio\":50,\"className\":\"banner-section-first-col\"} -->\n<div class=\"wp-block-cover banner-section-first-col\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-490\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/block-patterns/images/banner1.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:columns {\"className\":\"banner-section-cat \"} -->\n<div class=\"wp-block-columns banner-section-cat\"><!-- wp:column {\"verticalAlignment\":\"bottom\",\"className\":\"mx-md-5  banner-section-cat ps-lg-4\"} -->\n<div class=\"wp-block-column is-vertically-aligned-bottom mx-md-5  banner-section-cat ps-lg-4\"><!-- wp:columns {\"className\":\"banner-section-date\"} -->\n<div class=\"wp-block-columns banner-section-date\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"style\":{\"border\":{\"radius\":\"4px\"}},\"fontSize\":\"small\"} -->\n<div class=\"wp-block-button has-custom-font-size has-small-font-size\"><a class=\"wp-block-button__link\" style=\"border-radius:4px\">CATEGORY</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"14px\"}},\"textColor\":\"white\",\"className\":\"date-text\"} -->\n<p class=\"date-text has-white-color has-text-color\" style=\"font-size:14px\">Oct. 21, 2017</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"14px\"}},\"textColor\":\"white\",\"className\":\"time-text\"} -->\n<p class=\"time-text has-white-color has-text-color\" style=\"font-size:14px\">12.00 am</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\"></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:columns {\"className\":\"banner-section-text-editor\"} -->\n<div class=\"wp-block-columns banner-section-text-editor\"><!-- wp:column {\"verticalAlignment\":\"top\",\"className\":\"banner-section-heading-col\"} -->\n<div class=\"wp-block-column is-vertically-aligned-top banner-section-heading-col\"><!-- wp:heading {\"style\":{\"typography\":{\"textTransform\":\"uppercase\"}},\"fontSize\":\"medium\"} -->\n<h2 class=\"has-medium-font-size\" style=\"text-transform:uppercase\">Lorem Ipsum&nbsp;is simply dummy text of the typesetting industry printing</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"fontSize\":\"small\"} -->\n<p class=\"has-small-font-size\">Lorem Ipsum&nbsp;is simply dummy text for the printing and typesetting industry. Ever since the 1500s, Lorem Ipsum has been the industry's standard dummy text.</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"className\":\"banner-section-second-cat\"} -->\n<div class=\"wp-block-column banner-section-second-cat\"><!-- wp:cover {\"url\":\"" . esc_url(get_template_directory_uri()) . "/block-patterns/images/banner2.png\",\"id\":520,\"dimRatio\":50,\"className\":\"banner-section-first-col\"} -->\n<div class=\"wp-block-cover banner-section-first-col\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\"></span><img class=\"wp-block-cover__image-background wp-image-520\" alt=\"\" src=\"" . esc_url(get_template_directory_uri()) . "/block-patterns/images/banner2.png\" data-object-fit=\"cover\"/><div class=\"wp-block-cover__inner-container\"><!-- wp:columns {\"className\":\"banner-section-cat\"} -->\n<div class=\"wp-block-columns banner-section-cat\"><!-- wp:column {\"verticalAlignment\":\"bottom\",\"className\":\"mx-md-5 banner-section-cat\"} -->\n<div class=\"wp-block-column is-vertically-aligned-bottom mx-md-5 banner-section-cat\"><!-- wp:columns {\"className\":\"banner-section-date\"} -->\n<div class=\"wp-block-columns banner-section-date\"><!-- wp:column -->\n<div class=\"wp-block-column\"><!-- wp:buttons -->\n<div class=\"wp-block-buttons\"><!-- wp:button {\"style\":{\"border\":{\"radius\":\"4px\"}},\"fontSize\":\"small\"} -->\n<div class=\"wp-block-button has-custom-font-size has-small-font-size\"><a class=\"wp-block-button__link\" style=\"border-radius:4px\">CATEGORY</a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"14px\"}},\"textColor\":\"white\",\"className\":\"date-text\"} -->\n<p class=\"date-text has-white-color has-text-color\" style=\"font-size:14px\">Oct. 21, 2017</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\"><!-- wp:paragraph {\"style\":{\"typography\":{\"fontSize\":\"14px\"}},\"textColor\":\"white\",\"className\":\"time-text\"} -->\n<p class=\"time-text has-white-color has-text-color\" style=\"font-size:14px\">12.00 am</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center\"></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:columns {\"verticalAlignment\":\"bottom\",\"className\":\"banner-section-text-editor\"} -->\n<div class=\"wp-block-columns are-vertically-aligned-bottom banner-section-text-editor\"><!-- wp:column {\"verticalAlignment\":\"bottom\",\"className\":\"banner-section-heading-col\"} -->\n<div class=\"wp-block-column is-vertically-aligned-bottom banner-section-heading-col\"><!-- wp:heading {\"style\":{\"typography\":{\"textTransform\":\"uppercase\"}},\"fontSize\":\"medium\"} -->\n<h2 class=\"has-medium-font-size\" style=\"text-transform:uppercase\">Lorem Ipsum&nbsp;is simply dummy text of the typesetting industry printing</h2>\n<!-- /wp:heading -->\n\n<!-- wp:paragraph {\"fontSize\":\"small\"} -->\n<p class=\"has-small-font-size\">Lorem Ipsum&nbsp;is simply dummy text of the printing and typesetting industry &nbsp;Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div></div>\n<!-- /wp:cover --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->",
		)
	);

	register_block_pattern(
		'multipurpose-magazine/top-trending-news-section',
		array(
			'title'      => __( 'Top Trending News', 'multipurpose-magazine' ),
			'categories' => array( 'multipurpose-magazine' ),
			'content'    => "<!-- wp:group {\"align\":\"full\",\"style\":{\"color\":{\"background\":\"#f7f7f7\"}},\"className\":\"main-service-section\"} -->\n<div class=\"wp-block-group alignfull main-service-section has-background\" style=\"background-color:#f7f7f7\"><!-- wp:heading {\"style\":{\"typography\":{\"textTransform\":\"uppercase\"}},\"className\":\"mx-5  main-heading\"} -->\n<h2 class=\"mx-5 main-heading\" style=\"text-transform:uppercase\">TOP TRAINING NEWS CATEGORY</h2>\n<!-- /wp:heading -->\n\n<!-- wp:columns {\"align\":\"full\",\"className\":\"mx-5 trainding-section align-self-center\"} -->\n<div class=\"wp-block-columns alignfull mx-5 trainding-section align-self-center\"><!-- wp:column {\"verticalAlignment\":\"center\",\"className\":\"main-service-section-img\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center main-service-section-img\"><!-- wp:image {\"id\":495,\"width\":226,\"height\":166,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"main-service-section-img\"} -->\n<figure class=\"wp-block-image size-full is-resized main-service-section-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/block-patterns/images/Category news1.png\" alt=\"\" class=\"wp-image-495\" width=\"226\" height=\"166\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:heading {\"level\":3,\"className\":\"main-service-section-para\"} -->\n<h3 class=\"main-service-section-para\"><strong>Lorem Ipsum&nbsp;is simply</strong>.&nbsp;</h3>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\",\"className\":\"main-service-section-img\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center main-service-section-img\"><!-- wp:image {\"id\":496,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"main-service-section-img\"} -->\n<figure class=\"wp-block-image size-full main-service-section-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/block-patterns/images/Category news3.png\" alt=\"\" class=\"wp-image-496\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:heading {\"level\":3,\"className\":\"main-service-section-para\"} -->\n<h3 class=\"main-service-section-para\"><strong>Lorem Ipsum&nbsp;is simply</strong>.</h3>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\",\"className\":\"main-service-section-img\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center main-service-section-img\"><!-- wp:image {\"id\":497,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"main-service-section-img\"} -->\n<figure class=\"wp-block-image size-full main-service-section-img\"><img src=\"" . esc_url(get_template_directory_uri()) . "/block-patterns/images/Category news2.png\" alt=\"\" class=\"wp-image-497\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:heading {\"level\":3,\"className\":\"main-service-section-para\"} -->\n<h3 class=\"main-service-section-para\"><strong>Lorem Ipsum&nbsp;is simply</strong>.</h3>\n<!-- /wp:heading --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"top\",\"width\":\"\"} -->\n<div class=\"wp-block-column is-vertically-aligned-top\"><!-- wp:image {\"align\":\"center\",\"id\":498,\"width\":183,\"height\":107,\"sizeSlug\":\"full\",\"linkDestination\":\"none\",\"className\":\"top-trainding-img-icon\"} -->\n<figure class=\"wp-block-image aligncenter size-full is-resized top-trainding-img-icon\"><img src=\"" . esc_url(get_template_directory_uri()) . "/block-patterns/images/top-col.png\" alt=\"\" class=\"wp-image-498\" width=\"183\" height=\"107\"/></figure>\n<!-- /wp:image -->\n\n<!-- wp:columns {\"className\":\"top-trainding-icon\"} -->\n<div class=\"wp-block-columns top-trainding-icon\"><!-- wp:column {\"verticalAlignment\":\"center\",\"backgroundColor\":\"vivid-cyan-blue\",\"className\":\"trainding-section-icon-facebook\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center trainding-section-icon-facebook has-vivid-cyan-blue-background-color has-background\"><!-- wp:social-links {\"align\":\"center\"} -->\n<ul class=\"wp-block-social-links aligncenter\"><!-- wp:social-link {\"url\":\"#\",\"service\":\"facebook\"} /--></ul>\n<!-- /wp:social-links -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"textColor\":\"white\"} -->\n<p class=\"has-text-align-center has-white-color has-text-color\">2000 +</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column -->\n\n<!-- wp:column {\"verticalAlignment\":\"center\",\"backgroundColor\":\"pale-cyan-blue\",\"className\":\"trainding-section-icon-twitter\"} -->\n<div class=\"wp-block-column is-vertically-aligned-center trainding-section-icon-twitter has-pale-cyan-blue-background-color has-background\"><!-- wp:social-links {\"align\":\"center\"} -->\n<ul class=\"wp-block-social-links aligncenter\"><!-- wp:social-link {\"url\":\"#\",\"service\":\"twitter\"} /--></ul>\n<!-- /wp:social-links -->\n\n<!-- wp:paragraph {\"align\":\"center\",\"textColor\":\"white\"} -->\n<p class=\"has-text-align-center has-white-color has-text-color\">2000 +</p>\n<!-- /wp:paragraph --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns -->\n\n<!-- wp:columns -->\n<div class=\"wp-block-columns\"><!-- wp:column -->\n<div class=\"wp-block-column\"></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:column --></div>\n<!-- /wp:columns --></div>\n<!-- /wp:group -->",
		)
	);
}