<?php
/*
*
* Home intro section for portfolix section
*
*
*/



function realestate_press_intro_section_output()
{
  $realestate_press_intro_show = get_theme_mod('realestate_press_intro_show');
  if (!$realestate_press_intro_show) {
    return;
  }

  $realestate_press_dfimgh = get_template_directory_uri() . '/assets/img/intro-img.jpg';
  $realestate_press_intro_img = get_theme_mod('realestate_press_intro_img', $realestate_press_dfimgh);
  $realestate_press_intro_subtitle = get_theme_mod('realestate_press_intro_subtitle');
  $realestate_press_intro_title = get_theme_mod('realestate_press_intro_title', __('YOUR TRUSTED PROPERTY', 'realestate-press'));
  $realestate_press_intro_designation = get_theme_mod('realestate_press_intro_designation', __('MANAGEMENT TEAM', 'realestate-press'));
  $realestate_press_intro_desc = get_theme_mod('realestate_press_intro_desc');
  $realestate_press_btn_text_one = get_theme_mod('realestate_press_btn_text_one', __('LEARN MORE', 'realestate-press'));
  $realestate_press_btn_url_one = get_theme_mod('realestate_press_btn_url_one', '#');
  $realestate_press_btn_text_two = get_theme_mod('realestate_press_btn_text_two', __('View Details', 'realestate-press'));
  $realestate_press_btn_url_two = get_theme_mod('realestate_press_btn_url_two');
?>
  <!-- home -->
  <section class="home-intro" id="home">
    <?php if ($realestate_press_intro_img) : ?>
      <div class="hero-img">
        <img src="<?php echo esc_url($realestate_press_intro_img); ?>" alt="<?php esc_attr($realestate_press_intro_title); ?>">
      <?php else : ?>
        <div class="hero-img px-noimg">
        <?php endif; ?>
        </div>
        <div class="intro-content">
          <div class="container">
            <div class="content text-center">
              <?php if ($realestate_press_intro_subtitle) : ?>
                <h5><?php echo esc_html($realestate_press_intro_subtitle); ?></h5>
              <?php endif; ?>
              <?php if ($realestate_press_intro_title) : ?>
                <h1><?php echo esc_html($realestate_press_intro_title); ?> <br><span id="type1"><?php echo esc_html($realestate_press_intro_designation); ?></span></h1>
              <?php endif; ?>
              <?php if ($realestate_press_intro_desc) : ?>
                <p><?php echo esc_html($realestate_press_intro_desc); ?></p>
              <?php endif; ?>
              <?php if ($realestate_press_btn_url_one || $realestate_press_btn_url_two) : ?>
                <div class="pc-intro-btns">
                  <?php if ($realestate_press_btn_url_one) : ?>

                    <a href="<?php echo esc_url($realestate_press_btn_url_one); ?>" class="btn btn-hero hero-btn1"><?php echo esc_html($realestate_press_btn_text_one); ?></a>
                  <?php endif; ?>
                  <?php if ($realestate_press_btn_url_two) : ?>
                    <a href="<?php echo esc_url($realestate_press_btn_url_two); ?>" class="btn btn-hero hero-btn2"><?php echo esc_html($realestate_press_btn_text_two); ?></a>
                  <?php endif; ?>
                </div>
              <?php endif; ?>
            </div>

          </div>
        </div>
  </section>

<?php
}
add_action('realestate_press_profile_intro', 'realestate_press_intro_section_output');
