<?php global $qaleb;?>
<?php if($qaleb['searchform-ac']=='1'){?>
<div class="modal modal-top fade" id="top_modal" tabindex="-1" role="dialog" aria-labelledby="top_modal">
  <div class="modal-dialog" role="document">
<div class="modal-search">
<div class="modal-body">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>	  
<div class="search-top">
<form method="get" action="<?php echo home_url(); ?>">
<input type="search" name="s" id="searchText-main-header" placeholder="<?php global $qaleb; echo $qaleb['search-text'];?>" type="text">
<button type='submit'><i class="fa fa-search" aria-hidden="true"></i></button>
</form>
</div>     
</div>
</div>
  </div>
</div>
<?php } ?>

<?php if($qaleb['contact-form-ac']=='1'){?>
<div class="modal fade" id="regular_modal" tabindex="-1" role="dialog" aria-labelledby="regular_modal">
  <div class="modal-dialog modal-dialog-centered modal-xl" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title"><?php echo $qaleb['contact-title'];?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <p><?php echo $qaleb['contact-in'];?></p>
		</div>
    </div>
  </div>
</div>
<?php } ?>

<?php if($qaleb['login-ac']=='1'){?>
<div class="modal modal-left fade" id="left_modal" tabindex="-1" role="dialog" aria-labelledby="left_modal">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title"><?php echo $qaleb['login-title'];?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">	  
<?php if ( is_user_logged_in() ) : ?>
<div class="login-sidebar"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('login-sidebar') ) : ?><?php endif; ?></div>
<div class="login-footer">
<?php if($qaleb['login-site']=='1'){?>
<a class="io-login" href="<?php echo $qaleb['login-site-link'];?>"><?php echo $qaleb['login-site-title'];?></a>
<?php } ?>
<?php if($qaleb['login-left']=='1'){?>
<a class="io-logout" href="<?php echo wp_logout_url( home_url() ); ?>">خروج</a>
<?php } ?>
</div>
<?php else: ?>
<?php wp_login_form(); ?>

<?php if($qaleb['login-regest']=='1'){?>
<a class="io-regest" href="<?php echo $qaleb['login-regest-link'];?>"><?php echo $qaleb['login-regest-title'];?></a>
<?php } ?>

<?php endif; ?>
	  </div>
    </div>
  </div>
</div>
<?php } ?>