<?php
/**
 * Title: Home Banner
 * Slug: expert-travel-agent/home-banner
 * Categories: template
 */

$expert_travel_agent_active_plugins = get_option('active_plugins');
$expert_travel_agent_hotel_booking_lite_plugin = 'motopress-hotel-booking-lite/motopress-hotel-booking.php';
$expert_travel_agent_hotel_booking_lite_installed = in_array($expert_travel_agent_hotel_booking_lite_plugin, $expert_travel_agent_active_plugins);

if ($expert_travel_agent_hotel_booking_lite_installed) {
?>
    
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"},"blockGap":"0","padding":{"right":"0","left":"0","top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() . '/images/banner.png'); ?>","id":41,"overlayColor":"secondary","isUserOverlayColor":true,"minHeight":750,"sizeSlug":"full","className":"main-banner-sec","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"right":"0","left":"0","top":"0","bottom":"0"}}},"layout":{"type":"constrained","contentSize":"80%","wideSize":"100%"}} -->
<div class="wp-block-cover main-banner-sec" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;min-height:750px"><img class="wp-block-cover__image-background wp-image-41 size-full" alt="" src="<?php echo esc_url( get_template_directory_uri() . '/images/banner.png'); ?>" data-object-fit="cover"/><span aria-hidden="true" class="wp-block-cover__background has-secondary-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:heading {"textAlign":"center","level":1,"style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"typography":{"fontSize":"120px","fontStyle":"normal","fontWeight":"800","letterSpacing":"1px","textTransform":"uppercase"},"spacing":{"margin":{"top":"0","bottom":"0","left":"0","right":"0"},"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"textColor":"background","fontFamily":"nunito-sans"} -->
<h1 class="wp-block-heading has-text-align-center has-background-color has-text-color has-link-color has-nunito-sans-font-family" style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;font-size:120px;font-style:normal;font-weight:800;letter-spacing:1px;text-transform:uppercase"><?php esc_html_e('TRAVEL','expert-travel-agent'); ?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center","className":"slider-content","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"typography":{"fontSize":"23px","fontStyle":"normal","fontWeight":"500"},"spacing":{"padding":{"top":"0","bottom":"0"},"margin":{"top":"0","bottom":"0"}}},"textColor":"background","fontFamily":"nunito-sans"} -->
<p class="has-text-align-center slider-content has-background-color has-text-color has-link-color has-nunito-sans-font-family" style="margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;font-size:23px;font-style:normal;font-weight:500"><?php esc_html_e('Book Flights, Hotels and Holiday Packages','expert-travel-agent'); ?></p>
<!-- /wp:paragraph -->

<!-- wp:group {"className":"main-form-div","style":{"spacing":{"margin":{"top":"4em","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group main-form-div" style="margin-top:4em;margin-bottom:0"><!-- wp:paragraph {"className":"hotel-text","style":{"border":{"radius":{"topLeft":"10px","topRight":"10px","bottomLeft":"0px","bottomRight":"0px"}},"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600","textTransform":"capitalize"},"spacing":{"padding":{"top":"7px","bottom":"7px","left":"25px","right":"25px"}}},"backgroundColor":"primary","fontFamily":"nunito-sans"} -->
<p class="hotel-text has-primary-background-color has-background has-nunito-sans-font-family" style="border-top-left-radius:10px;border-top-right-radius:10px;border-bottom-left-radius:0px;border-bottom-right-radius:0px;padding-top:7px;padding-right:25px;padding-bottom:7px;padding-left:25px;font-size:17px;font-style:normal;font-weight:600;text-transform:capitalize"><?php esc_html_e('Hotel','expert-travel-agent'); ?></p>
<!-- /wp:paragraph -->

<!-- wp:group {"className":"form-sec-slider","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group form-sec-slider" style="margin-top:0;margin-bottom:0"><!-- wp:shortcode -->
<!-- /wp:shortcode --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover --></div>
<!-- /wp:group -->

<?php } else { ?>
    
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"},"blockGap":"0","padding":{"right":"0","left":"0","top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() . '/images/banner.png'); ?>","id":41,"overlayColor":"secondary","isUserOverlayColor":true,"minHeight":750,"sizeSlug":"full","className":"main-banner-sec","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"right":"0","left":"0","top":"0","bottom":"0"}}},"layout":{"type":"constrained","contentSize":"80%","wideSize":"100%"}} -->
<div class="wp-block-cover main-banner-sec" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;min-height:750px"><img class="wp-block-cover__image-background wp-image-41 size-full" alt="" src="<?php echo esc_url( get_template_directory_uri() . '/images/banner.png'); ?>" data-object-fit="cover"/><span aria-hidden="true" class="wp-block-cover__background has-secondary-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:heading {"textAlign":"center","level":1,"style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"typography":{"fontSize":"120px","fontStyle":"normal","fontWeight":"800","letterSpacing":"1px","textTransform":"uppercase"},"spacing":{"margin":{"top":"0","bottom":"0","left":"0","right":"0"},"padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"textColor":"background","fontFamily":"nunito-sans"} -->
<h1 class="wp-block-heading has-text-align-center has-background-color has-text-color has-link-color has-nunito-sans-font-family" style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;font-size:120px;font-style:normal;font-weight:800;letter-spacing:1px;text-transform:uppercase"><?php esc_html_e('TRAVEL','expert-travel-agent'); ?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center","className":"slider-content","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}},"typography":{"fontSize":"23px","fontStyle":"normal","fontWeight":"500"},"spacing":{"padding":{"top":"0","bottom":"0"},"margin":{"top":"0","bottom":"0"}}},"textColor":"background","fontFamily":"nunito-sans"} -->
<p class="has-text-align-center slider-content has-background-color has-text-color has-link-color has-nunito-sans-font-family" style="margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;font-size:23px;font-style:normal;font-weight:500"><?php esc_html_e('Book Flights, Hotels and Holiday Packages','expert-travel-agent'); ?></p>
<!-- /wp:paragraph -->

<!-- wp:group {"className":"main-form-div","style":{"spacing":{"margin":{"top":"4em","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group main-form-div" style="margin-top:4em;margin-bottom:0"><!-- wp:paragraph {"className":"hotel-text","style":{"border":{"radius":{"topLeft":"10px","topRight":"10px","bottomLeft":"0px","bottomRight":"0px"}},"typography":{"fontSize":"17px","fontStyle":"normal","fontWeight":"600","textTransform":"capitalize"},"spacing":{"padding":{"top":"7px","bottom":"7px","left":"25px","right":"25px"}}},"backgroundColor":"primary","fontFamily":"nunito-sans"} -->
<p class="hotel-text has-primary-background-color has-background has-nunito-sans-font-family" style="border-top-left-radius:10px;border-top-right-radius:10px;border-bottom-left-radius:0px;border-bottom-right-radius:0px;padding-top:7px;padding-right:25px;padding-bottom:7px;padding-left:25px;font-size:17px;font-style:normal;font-weight:600;text-transform:capitalize"><?php esc_html_e('Hotel','expert-travel-agent'); ?></p>
<!-- /wp:paragraph -->

<!-- wp:group {"className":"form-sec-slider","style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group form-sec-slider" style="margin-top:0;margin-bottom:0"><!-- wp:html --><div class="form-sec-slider my-form">
    <div class="mphb_sc_search-wrapper">
      <form class="mphb_sc_search-form" action="#" method="get">
        <p class="mphb_sc_search-check-in-date mphb_sc_search-form__field">
          <input type="text" name="check_in_date" placeholder="Start Date" required />
        </p>
        <p class="mphb_sc_search-check-out-date mphb_sc_search-form__field">
          <input type="text" name="check_out_date" placeholder="Return Date" required />
        </p>
        <p class="mphb_sc_search-adults mphb_sc_search-form__field">
          <select name="adults" required>
            <option value="" disabled selected>Person</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
            <option value="4">4</option>
            <!-- More options as needed -->
          </select>
        </p>
        <p class="mphb_sc_search-children mphb_sc_search-form__field">
          <select name="children" required>
            <option value="" disabled selected>Children</option>
            <option value="0">0</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <!-- More options as needed -->
          </select>
        </p>
        <p class="mphb_sc_search-submit-button-wrapper mphb_sc_search-form__field" style="flex:0 0 auto;border-right:none;">
          <button type="submit" class="button">Search Now</button>
        </p>
      </form>
    </div>
  </div><!-- /wp:html --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover --></div>
<!-- /wp:group -->

<?php } ?>
