<?php
/**
 * Title: Category Section
 * Slug: coupon-shop/category-section
 * Categories: coupon-shop
 * Keywords: category-section
 * Block Types: core/post-content
 * Post Types: page, wp_template
 */

$coupon_shop_pluginsList = get_option( 'active_plugins' );
$coupon_shop_plugin = 'gutentor/gutentor.php';
$coupon_shop_results = in_array( $coupon_shop_plugin , $coupon_shop_pluginsList);
if ( $coupon_shop_results )  {
?>
<!-- wp:group {"metadata":{"name":"smart-by-category"},"className":"smart-by-category-section","style":{"spacing":{"padding":{"right":"0px","left":"0px","bottom":"var:preset|spacing|30"},"margin":{"top":"0","bottom":"0"}}},"backgroundColor":"base-2","layout":{"type":"constrained","contentSize":"83%"}} -->
<div class="wp-block-group smart-by-category-section has-base-2-background-color has-background" style="margin-top:0;margin-bottom:0;padding-right:0px;padding-bottom:var(--wp--preset--spacing--30);padding-left:0px"><!-- wp:group {"className":"head-box wow zoomIn","style":{"spacing":{"margin":{"bottom":"35px"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group head-box wow zoomIn" style="margin-bottom:35px"><!-- wp:paragraph {"align":"left","style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600"}},"textColor":"primary"} -->
<p class="has-text-align-left has-primary-color has-text-color has-link-color" style="font-size:17px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Top Categories', 'coupon-shop' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":196,"sizeSlug":"full","linkDestination":"none","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}}} -->
<figure class="wp-block-image size-full" style="margin-top:0;margin-bottom:0"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/Line-1.png" alt="" class="wp-image-196"/></figure>
<!-- /wp:image -->

<!-- wp:heading {"textAlign":"left","style":{"elements":{"link":{"color":{"text":"var:preset|color|text-2"}}},"typography":{"fontSize":"28px","fontStyle":"normal","fontWeight":"600"},"spacing":{"padding":{"top":"12px"}}},"textColor":"text-2"} -->
<h2 class="wp-block-heading has-text-align-left has-text-2-color has-text-color has-link-color" style="padding-top:12px;font-size:28px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Shop Smarter by Category', 'coupon-shop' ); ?></h2>
<!-- /wp:heading --></div>
<!-- /wp:group -->

<!-- wp:group {"className":"best-product-main-box wow zoomIn","layout":{"type":"default"}} -->
<div class="wp-block-group best-product-main-box wow zoomIn"><!-- wp:columns {"className":"category-box-outer"} -->
<div class="wp-block-columns category-box-outer"><!-- wp:column {"width":"30%","className":"category-card-left"} -->
<div class="wp-block-column category-card-left" style="flex-basis:30%"><!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/coupon.png","id":142,"dimRatio":5,"isUserOverlayColor":true,"focalPoint":{"x":0.5,"y":0.5},"minHeight":418,"sizeSlug":"medium","className":"section1-coupon-img","layout":{"type":"constrained"}} -->
<div class="wp-block-cover section1-coupon-img" style="min-height:418px"><img class="wp-block-cover__image-background wp-image-142 size-medium" alt="" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/coupon.png" style="object-position:50% 50%" data-object-fit="cover" data-object-position="50% 50%"/><span aria-hidden="true" class="wp-block-cover__background has-background-dim-10 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:heading {"textAlign":"left","className":"section1-coupon-text","style":{"typography":{"fontSize":"25px","fontStyle":"normal","fontWeight":"700"},"spacing":{"margin":{"top":"0","bottom":"0","right":"0","left":"0"}}},"fontFamily":"heading"} -->
<h2 class="wp-block-heading has-text-align-left section1-coupon-text has-heading-font-family" style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;font-size:25px;font-style:normal;font-weight:700"><?php echo esc_html__( 'Exclusive Discounts Coupons', 'coupon-shop' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"className":"section1-coupon-para","style":{"elements":{"link":{"color":{"text":"var:preset|color|base-2"}}},"typography":{"fontStyle":"normal","fontWeight":"600","fontSize":"14px"}},"textColor":"base-2","fontFamily":"heading"} -->
<p class="section1-coupon-para has-base-2-color has-text-color has-link-color has-heading-font-family" style="font-size:14px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Grab the latest verified discounts today', 'coupon-shop' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"className":"section2-btn","style":{"border":{"radius":"0px"}}} -->
<div class="wp-block-button section2-btn"><a class="wp-block-button__link wp-element-button" style="border-radius:0px"><?php echo esc_html__( 'View Coupons', 'coupon-shop' ); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div></div>
<!-- /wp:cover --></div>
<!-- /wp:column -->

<!-- wp:column {"width":"70%","className":"section2-category-coupon"} -->
<div class="wp-block-column section2-category-coupon" style="flex-basis:70%"><!-- wp:gutentor/t1 {"gID":"g-1z1d1qc","pName":"gutentor/t1","tBtnIconOpt":{"position":"after","size":"","dSize":19},"tBtnIcon":{"label":"fa-angle-double-right","value":"fas fa-angle-double-right","code":"f101"},"tBtnTxt":"View Coupons","tOnBtn":true,"tBtnTxtC":{"enable":true,"normal":"#fafafa","hover":"#fff"},"tBtnM":{"dTop":"6"},"tBtnTypography":{"fontType":"default","desktopFontSize":16,"tabletFontSize":16,"mobileFontSize":16,"textTransform":"normal"},"tOnDesc":true,"tBxP":{"type":"px","dTop":"15","dBottom":"15","tTop":"15","tBottom":"15","mTop":"15","mBottom":"15"},"tTitleTypography":{"desktopFontSize":"14px","fontType":"google","googleFont":"Montserrat","fontWeight":"600"},"tOnCount":false,"tCountOpt":{"display":"sorting","prefix":"","suffix":"Items"}} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"60px"} -->
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<?php } else { ?>

<!-- wp:group {"metadata":{"name":"smart-by-category"},"className":"smart-by-category-section","style":{"spacing":{"padding":{"right":"0px","left":"0px","bottom":"var:preset|spacing|30"},"margin":{"top":"0","bottom":"0"}}},"backgroundColor":"base-2","layout":{"type":"constrained","contentSize":"83%"}} -->
<div class="wp-block-group smart-by-category-section has-base-2-background-color has-background" style="margin-top:0;margin-bottom:0;padding-right:0px;padding-bottom:var(--wp--preset--spacing--30);padding-left:0px"><!-- wp:group {"className":"head-box wow zoomIn","style":{"spacing":{"margin":{"bottom":"35px"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group head-box wow zoomIn" style="margin-bottom:35px"><!-- wp:paragraph {"align":"left","style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}},"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600"}},"textColor":"primary"} -->
<p class="has-text-align-left has-primary-color has-text-color has-link-color" style="font-size:17px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Top Categories', 'coupon-shop' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":196,"sizeSlug":"full","linkDestination":"none","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}}} -->
<figure class="wp-block-image size-full" style="margin-top:0;margin-bottom:0"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/Line-1.png" alt="" class="wp-image-196"/></figure>
<!-- /wp:image -->

<!-- wp:heading {"textAlign":"left","style":{"elements":{"link":{"color":{"text":"var:preset|color|text-2"}}},"typography":{"fontSize":"28px","fontStyle":"normal","fontWeight":"600"},"spacing":{"padding":{"top":"12px"}}},"textColor":"text-2"} -->
<h2 class="wp-block-heading has-text-align-left has-text-2-color has-text-color has-link-color" style="padding-top:12px;font-size:28px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Shop Smarter by Category', 'coupon-shop' ); ?></h2>
<!-- /wp:heading --></div>
<!-- /wp:group -->

<!-- wp:group {"layout":{"type":"default"}} -->
<div class="wp-block-group"><!-- wp:columns {"className":"card-boxes"} -->
<div class="wp-block-columns card-boxes"><!-- wp:column {"width":"30%","className":"category-card-left"} -->
<div class="wp-block-column category-card-left" style="flex-basis:30%"><!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/coupon.png","id":142,"dimRatio":5,"isUserOverlayColor":true,"focalPoint":{"x":0.5,"y":0.5},"minHeight":418,"sizeSlug":"medium","className":"section1-coupon-img","layout":{"type":"constrained"}} -->
<div class="wp-block-cover section1-coupon-img" style="min-height:418px"><img class="wp-block-cover__image-background wp-image-142 size-medium" alt="" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/coupon.png" style="object-position:50% 50%" data-object-fit="cover" data-object-position="50% 50%"/><span aria-hidden="true" class="wp-block-cover__background has-background-dim-10 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:heading {"textAlign":"left","className":"section1-coupon-text","style":{"typography":{"fontSize":"25px","fontStyle":"normal","fontWeight":"700"},"spacing":{"margin":{"top":"0","bottom":"0","right":"0","left":"0"}}},"fontFamily":"heading"} -->
<h2 class="wp-block-heading has-text-align-left section1-coupon-text has-heading-font-family" style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;font-size:25px;font-style:normal;font-weight:700"><?php echo esc_html__( 'Exclusive Discounts Coupons', 'coupon-shop' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"className":"section1-coupon-para","style":{"elements":{"link":{"color":{"text":"var:preset|color|base-2"}}},"typography":{"fontStyle":"normal","fontWeight":"600","fontSize":"14px"}},"textColor":"base-2","fontFamily":"heading"} -->
<p class="section1-coupon-para has-base-2-color has-text-color has-link-color has-heading-font-family" style="font-size:14px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Grab the latest verified discounts today', 'coupon-shop' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"className":"section2-btn","style":{"border":{"radius":"0px"}}} -->
<div class="wp-block-button section2-btn"><a class="wp-block-button__link wp-element-button" style="border-radius:0px"><?php echo esc_html__( 'View Coupons', 'coupon-shop' ); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div></div>
<!-- /wp:cover --></div>
<!-- /wp:column -->

<!-- wp:column {"width":"70%","className":"section2-category-coupon-static"} -->
<div class="wp-block-column section2-category-coupon-static" style="flex-basis:70%"><!-- wp:columns {"className":"cards-right"} -->
<div class="wp-block-columns cards-right"><!-- wp:column {"className":"fashion-col"} -->
<div class="wp-block-column fashion-col"><!-- wp:image {"id":206,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category1.png" alt="" class="wp-image-206"/></figure>
<!-- /wp:image -->

<!-- wp:heading {"style":{"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600"}},"fontFamily":"body"} -->
<h2 class="wp-block-heading has-body-font-family" style="font-size:17px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Fashion', 'coupon-shop' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"textColor":"contrast-2","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-2"}}},"typography":{"fontStyle":"normal","fontWeight":"500"},"border":{"radius":"0px"}},"fontFamily":"body"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-contrast-2-color has-text-color has-link-color has-body-font-family wp-element-button" style="border-radius:0px;font-style:normal;font-weight:500"><?php echo esc_html__( 'View Coupons  ', 'coupon-shop' ); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:column -->

<!-- wp:column {"className":"electronics-col"} -->
<div class="wp-block-column electronics-col"><!-- wp:image {"id":213,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category2.png" alt="" class="wp-image-213"/></figure>
<!-- /wp:image -->

<!-- wp:heading {"style":{"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600"}},"fontFamily":"heading"} -->
<h2 class="wp-block-heading has-heading-font-family" style="font-size:17px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Electronics', 'coupon-shop' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"textColor":"contrast-2","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-2"}}},"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontFamily":"body"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-contrast-2-color has-text-color has-link-color has-body-font-family wp-element-button" style="font-style:normal;font-weight:500"><?php echo esc_html__( 'View Coupons  ', 'coupon-shop' ); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:column -->

<!-- wp:column {"className":"fashion-col"} -->
<div class="wp-block-column fashion-col"><!-- wp:image {"id":178,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category3.png" alt="" class="wp-image-178"/></figure>
<!-- /wp:image -->

<!-- wp:heading {"style":{"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600"}},"fontFamily":"body"} -->
<h2 class="wp-block-heading has-body-font-family" style="font-size:17px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Travel', 'coupon-shop' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"textColor":"contrast-2","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-2"}}},"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontFamily":"body"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-contrast-2-color has-text-color has-link-color has-body-font-family wp-element-button" style="font-style:normal;font-weight:500"><?php echo esc_html__( 'View Coupons  ', 'coupon-shop' ); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:columns {"className":"cards-right"} -->
<div class="wp-block-columns cards-right"><!-- wp:column {"className":"fashion-col"} -->
<div class="wp-block-column fashion-col"><!-- wp:image {"id":179,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category4.png" alt="" class="wp-image-179"/></figure>
<!-- /wp:image -->

<!-- wp:heading {"style":{"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600"}},"fontFamily":"body"} -->
<h2 class="wp-block-heading has-body-font-family" style="font-size:17px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Home & Living', 'coupon-shop' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"textColor":"contrast-2","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-2"}}},"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontFamily":"body"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-contrast-2-color has-text-color has-link-color has-body-font-family wp-element-button" style="font-style:normal;font-weight:500"><?php echo esc_html__( 'View Coupons  ', 'coupon-shop' ); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:column -->

<!-- wp:column {"className":"fashion-col"} -->
<div class="wp-block-column fashion-col"><!-- wp:image {"id":180,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category5.png" alt="" class="wp-image-180"/></figure>
<!-- /wp:image -->

<!-- wp:heading {"style":{"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600"}},"fontFamily":"body"} -->
<h2 class="wp-block-heading has-body-font-family" style="font-size:17px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Entertainment', 'coupon-shop' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"textColor":"contrast-2","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-2"}}},"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontFamily":"body"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-contrast-2-color has-text-color has-link-color has-body-font-family wp-element-button" style="font-style:normal;font-weight:500"><?php echo esc_html__( 'View Coupons  ', 'coupon-shop' ); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:column -->

<!-- wp:column {"className":"fashion-col"} -->
<div class="wp-block-column fashion-col"><!-- wp:image {"id":169,"sizeSlug":"full","linkDestination":"none","align":"center"} -->
<figure class="wp-block-image aligncenter size-full"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/category6.png" alt="" class="wp-image-169"/></figure>
<!-- /wp:image -->

<!-- wp:heading {"style":{"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600"}},"fontFamily":"body"} -->
<h2 class="wp-block-heading has-body-font-family" style="font-size:17px;font-style:normal;font-weight:600"><?php echo esc_html__( 'Food & Dining', 'coupon-shop' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"textColor":"contrast-2","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast-2"}}},"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontFamily":"body"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-contrast-2-color has-text-color has-link-color has-body-font-family wp-element-button" style="font-style:normal;font-weight:500"><?php echo esc_html__( 'View Coupons  ', 'coupon-shop' ); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"60px"} -->
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<?php } ?>