<?php
/**
 * Template Name: Home Template
 */

get_header(); ?>

<main id="skip-content">
<?php if (get_theme_mod('pet_accessory_store_slider_section_setting', true) != '') { ?>
  <section id="top-slider" class="py-5">
    <div class="container">
      <div class="row">
        <div class="col-lg-4 col-md-4 col-sm-12 col-12 banner-left">
          <?php if(get_theme_mod('pet_accessory_store_banner_short_heading') != ''){ ?>
            <h5 class="short-heading mb-0"><?php echo esc_html(get_theme_mod('pet_accessory_store_banner_short_heading')); ?></h5>
          <?php }?>
          <?php if(get_theme_mod('pet_accessory_store_banner_heading') != ''){ ?>
            <h3 class="main-heading mb-2"><?php echo esc_html(get_theme_mod('pet_accessory_store_banner_heading')); ?></h3>
          <?php }?>
          <?php if(get_theme_mod('pet_accessory_store_banner_content') != ''){ ?>
            <p class="main-content mb-3"><?php echo esc_html(get_theme_mod('pet_accessory_store_banner_content')); ?></p>
          <?php }?>
          <?php if(get_theme_mod('pet_accessory_store_banner_btn_url') != '' || get_theme_mod('pet_accessory_store_banner_btn_text') != ''){ ?>
            <a class="product-btn mb-5" href="<?php echo esc_url(get_theme_mod('pet_accessory_store_banner_btn_url')); ?>"><?php echo esc_html(get_theme_mod('pet_accessory_store_banner_btn_text')); ?></a>
          <?php }?>
          <div class="row pt-5 mt-3">
            <div class="col-lg-6 col-md-12 col-sm-6">
              <?php if(get_theme_mod('pet_accessory_store_review_number') != '' || get_theme_mod('pet_accessory_store_review_text') != ''){ ?>
                <div class="review-box">
                  <?php if(get_theme_mod('pet_accessory_store_review_number') != ''){ ?>
                    <h6 class="main-heading mb-0"><?php echo esc_html(get_theme_mod('pet_accessory_store_review_number')); ?></h6>
                  <?php }?>
                  <?php if(get_theme_mod('pet_accessory_store_review_text') != ''){ ?>
                    <p class="main-heading mb-2"><?php echo esc_html(get_theme_mod('pet_accessory_store_review_text')); ?></p>
                  <?php }?>
                  <img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/img/review.png" alt="" />
                </div>
              <?php }?>
            </div>
            <div class="col-lg-6 col-md-12 col-sm-6">
              <?php if(get_theme_mod('pet_accessory_store_list_text_1') != ''){ ?>
                <div class="review-list mb-3">
                  <?php if(get_theme_mod('pet_accessory_store_list_text_1') != ''){ ?>
                    <h6 class="main-heading mb-0"><i class="fas fa-check-circle"></i><?php echo esc_html(get_theme_mod('pet_accessory_store_list_text_1')); ?></h6>
                  <?php }?>
                </div>
              <?php }?>
              <?php if(get_theme_mod('pet_accessory_store_list_text_2') != ''){ ?>
                <div class="review-list">
                  <?php if(get_theme_mod('pet_accessory_store_list_text_2') != ''){ ?>
                    <h6 class="main-heading mb-0"><i class="fas fa-check-circle"></i><?php echo esc_html(get_theme_mod('pet_accessory_store_list_text_2')); ?></h6>
                  <?php }?>
                </div>
              <?php }?>
            </div>
          </div>
        </div>
        <div class="col-lg-4 col-md-4 col-sm-12 col-12 pe-5 center-image">
          <?php if (!empty(get_theme_mod('pet_accessory_store_banner_center_image'))) { ?>
            <img class="object-fit-cover" src="<?php echo esc_url(get_theme_mod('pet_accessory_store_banner_center_image')); ?>" alt="" />
          <?php } else { ?>
            <img  src="<?php echo esc_url(get_template_directory_uri() . '/assets/img/slider.png'); ?>" alt="Default Banner Image" />
          <?php } ?>
        </div>
        <div class="col-lg-4 col-md-4 col-sm-12 col-12 ps-5 banner-right">
          <?php if(get_theme_mod('pet_accessory_store_customer_number') != '' || get_theme_mod('pet_accessory_store_customer_text') != '' || get_theme_mod('pet_accessory_store_customer_image') != '' ){ ?>
            <div class="customer-box mb-3">
              <?php if(get_theme_mod('pet_accessory_store_customer_number') != ''){ ?>
                <h6 class="main-heading mb-0"><?php echo esc_html(get_theme_mod('pet_accessory_store_customer_number')); ?></h6>
              <?php }?>
              <?php if(get_theme_mod('pet_accessory_store_customer_text') != ''){ ?>
                <p class="main-heading mb-2"><?php echo esc_html(get_theme_mod('pet_accessory_store_customer_text')); ?></p>
              <?php }?>
              <div class="customer-images d-flex">
                <?php if(get_theme_mod('pet_accessory_store_customer_image_1') != ''){ ?>
                  <img class="image-1" src="<?php echo esc_url(get_theme_mod('pet_accessory_store_customer_image_1')); ?>" alt="" />
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_customer_image_2') != ''){ ?>
                  <img class="image-2" src="<?php echo esc_url(get_theme_mod('pet_accessory_store_customer_image_2')); ?>" alt="" />
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_customer_image_3') != ''){ ?>
                  <img class="image-3" src="<?php echo esc_url(get_theme_mod('pet_accessory_store_customer_image_3')); ?>" alt="" />
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_customer_image_4') != ''){ ?>
                  <img class="image-4" src="<?php echo esc_url(get_theme_mod('pet_accessory_store_customer_image_4')); ?>" alt="" />
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_customer_image_5') != ''){ ?>
                  <img class="image-5" src="<?php echo esc_url(get_theme_mod('pet_accessory_store_customer_image_5')); ?>" alt="" />
                <?php }?>
              </div>
              
            </div>
          <?php }?>
          <?php if(get_theme_mod('pet_accessory_store_banner_right_short_heading') != ''){ ?>
            <h5 class="right-short-heading mb-2"><?php echo esc_html(get_theme_mod('pet_accessory_store_banner_right_short_heading')); ?></h5>
          <?php }?>
          <?php if(get_theme_mod('pet_accessory_store_banner_right_heading') != ''){ ?>
            <h3 class="right-main-heading mb-2"><?php echo esc_html(get_theme_mod('pet_accessory_store_banner_right_heading')); ?></h3>
          <?php }?>
          <?php if(get_theme_mod('pet_accessory_store_banner_right_content') != ''){ ?>
            <p class="right-main-content mb-0"><?php echo esc_html(get_theme_mod('pet_accessory_store_banner_right_content')); ?></p>
          <?php }?>
        </div>
      </div>
    </div>
  </section>
<?php }?>

<?php if (get_theme_mod('pet_accessory_store_activities_section_setting', true) != '') { ?>
  <section class="featured py-5">
    <div class="container">
      <div class="row">
        <div class="col-xl-8 col-lg-7 col-md-12 col-sm-12 col-12 align-self-center ">
          <div class="row offer-box-1">
            <div class="col-lg-7 col-md-7 col-sm-6 align-self-center">
              <div class="heading text-start mb-5 pb-4">
                <?php if(get_theme_mod('pet_accessory_store_services_short_heading') != ''){ ?>
                  <h4 class="offer-short-heading mb-1"><?php echo esc_html(get_theme_mod('pet_accessory_store_services_short_heading')); ?></h4>
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_services_heading') != ''){ ?>
                  <h3 class="offer-main-heading"><?php echo esc_html(get_theme_mod('pet_accessory_store_services_heading')); ?></h3>
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_services_content') != ''){ ?>
                  <p class="offer-main-content mb-4 pb-2"><?php echo esc_html(get_theme_mod('pet_accessory_store_services_content')); ?></p>
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_product_btn_url') != '' || get_theme_mod('pet_accessory_store_product_btn_text') != ''){ ?>
                  <a class="product-btn " href="<?php echo esc_url(get_theme_mod('pet_accessory_store_product_btn_url')); ?>"><?php echo esc_html(get_theme_mod('pet_accessory_store_product_btn_text')); ?></a>
                <?php }?>
              </div>
            </div>
            <div class="col-lg-5 col-md-5 col-sm-6 align-self-center offer-image">
              <?php if (!empty(get_theme_mod('pet_accessory_store_offer_box1_image'))) { ?>
                <img class="object-fit-cover" src="<?php echo esc_url(get_theme_mod('pet_accessory_store_offer_box1_image')); ?>" alt="" />
              <?php } else { ?>
                <img  src="<?php echo esc_url(get_template_directory_uri() . '/assets/img/offer-1.png'); ?>" alt="Offer Image" />
              <?php } ?>
            </div>
          </div>
        </div>
        <div class="col-xl-4 col-lg-5 col-md-12 col-sm-12 col-12 align-self-center">
          <div class="row offer-box-2">
            <div class="col-lg-7 col-md-7 col-sm-6 align-self-center">
              <div class="heading-box-1 text-start ">
                <?php if(get_theme_mod('pet_accessory_store_services_heading_1') != ''){ ?>
                  <h4 class="offer-2-short-heading mb-1"><?php echo esc_html(get_theme_mod('pet_accessory_store_services_heading_1')); ?></h4>
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_services_short_heading_1') != ''){ ?>
                  <h3 class="offer-2-heading mb-2"><?php echo esc_html(get_theme_mod('pet_accessory_store_services_short_heading_1')); ?></h3>
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_services_regular_price') != '' || get_theme_mod('pet_accessory_store_services_slae_price') != ''){ ?>
                  <p class="offer-price mb-0"><span><?php echo esc_html(get_theme_mod('pet_accessory_store_services_regular_price')); ?></span> <span class="regular-price"><?php echo esc_html(get_theme_mod('pet_accessory_store_services_slae_price')); ?></span></p>
                <?php }?>
              </div>
            </div>
            <div class="col-lg-5 col-md-5 col-sm-6 align-self-center offer-image-2">
              <?php if (!empty(get_theme_mod('pet_accessory_store_offer_box2_image'))) { ?>
                <img class="object-fit-cover" src="<?php echo esc_url(get_theme_mod('pet_accessory_store_offer_box2_image')); ?>" alt="" />
              <?php } else { ?>
                <img  src="<?php echo esc_url(get_template_directory_uri() . '/assets/img/offer-2.png'); ?>" alt="Offer Image" />
              <?php } ?>
            </div>
          </div>
          <div class="row offer-box-3">
            <div class="col-lg-7 col-md-7 col-sm-6 align-self-center">
              <div class="heading text-start">
                <?php if(get_theme_mod('pet_accessory_store_services_heading_2') != ''){ ?>
                  <h4 class="offer-2-short-heading mb-1"><?php echo esc_html(get_theme_mod('pet_accessory_store_services_heading_2')); ?></h4>
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_services_short_heading_2') != ''){ ?>
                  <h3 class="offer-2-heading"><?php echo esc_html(get_theme_mod('pet_accessory_store_services_short_heading_2')); ?></h3>
                <?php }?>
                <?php if(get_theme_mod('pet_accessory_store_services_regular_price_2') != '' || get_theme_mod('pet_accessory_store_services_slae_price_2') != ''){ ?>
                  <p class="offer-price mb-0"><span><?php echo esc_html(get_theme_mod('pet_accessory_store_services_regular_price_2')); ?></span> <span class="regular-price"><?php echo esc_html(get_theme_mod('pet_accessory_store_services_slae_price_2')); ?></span></p>
                <?php }?>
              </div>
            </div>
            <div class="col-lg-5 col-md-5 col-sm-6 align-self-center offer-image-1">
              <?php if (!empty(get_theme_mod('pet_accessory_store_offer_box3_image'))) { ?>
                <img class="object-fit-cover" src="<?php echo esc_url(get_theme_mod('pet_accessory_store_offer_box3_image')); ?>" alt="" />
              <?php } else { ?>
                <img  src="<?php echo esc_url(get_template_directory_uri() . '/assets/img/offer-3.png'); ?>" alt="Offer Image" />
              <?php } ?>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
<?php }?>
  <section id="page-content">
    <div class="container">
      <div class="py-5">
        <?php
          if ( have_posts() ) :
            while ( have_posts() ) : the_post();
              the_content();
            endwhile;
          endif;
        ?>
      </div>
    </div>
  </section>
</main>

<?php get_footer(); ?>