<?php
/**
 * Banner Section
 * 
 * @package urban_courier_logistics
 */
$urban_courier_logistics_banner = get_theme_mod( 'urban_courier_logistics_banner_setting',false );
$urban_courier_logistics_banner_btn_url  = get_theme_mod( 'urban_courier_logistics_banner_btn_url' );
$urban_courier_logistics_banner_btn_text = get_theme_mod( 'urban_courier_logistics_banner_btn_text' );
?>
<?php if ( $urban_courier_logistics_banner ){?>
    <div class="banner wow fadeInDown" data-wow-duration="1.5s">
      <div class="banner_box">
        <div class="container">
        <div class="row">
          <div class="col-lg-6 col-md-12 align-self-center banner-info">
            <?php 
                $urban_courier_logistics_banner_text_extra = get_theme_mod('urban_courier_logistics_banner_text_extra');
                if ( $urban_courier_logistics_banner_text_extra ) : ?>
                <h4>
                    <?php echo esc_html($urban_courier_logistics_banner_text_extra); ?>
                </h4>
            <?php endif; ?>
            <?php 
                $urban_courier_logistics_banner_title = get_theme_mod('urban_courier_logistics_banner_title');
                if ( $urban_courier_logistics_banner_title ) : ?>
                <h1>
                    <?php echo esc_html($urban_courier_logistics_banner_title); ?>
                </h1>
            <?php endif; ?>
            <?php if ( get_theme_mod('urban_courier_logistics_banner_content') ) : ?>
                <p class="slide-extra-content"><?php echo esc_html(get_theme_mod('urban_courier_logistics_banner_content')); ?></p>
            <?php endif; ?>
            <div class="banner-buttons">
              <div class="slide-btn-green">
                  <?php if ($urban_courier_logistics_banner_btn_text ) : ?>
                  <a href="<?php echo esc_url( $urban_courier_logistics_banner_btn_url ); ?>">                   
                      <?php echo esc_html( $urban_courier_logistics_banner_btn_text ); ?>
                  </a>
                  <?php endif; ?>
              </div>
            </div>
          </div>
          <div class="col-lg-6 col-md-12 align-self-end">
            <div class="imagebox">
                <div class="banner-img">
                  <?php if ( get_theme_mod('urban_courier_logistics_banner_image') ) : ?>
                    <img src="<?php echo esc_url(get_theme_mod('urban_courier_logistics_banner_image'));?>">
                  <?php else: ?>
                      <img src="<?php echo get_stylesheet_directory_uri() . '/images/default.png'; ?>">
                  <?php endif; ?>
                </div>
            </div>
          </div>
        </div>
        </div>
      </div>
    </div>
  </div>
<?php } ?>