<?php if($user['is_expired']==0): ?>
<?php $v_settings = !empty($u_settings['vcard_settings'])?json_decode($u_settings['vcard_settings']):'' ?> 
  <?php $style ='style_3'; ?>
    <div class="vcardArea">
      <div class="container">
        <div class="row justify-content-center">
        	<div class="col-md-8 w_100">
            <div class="vcardStyle_3">
              <div class="topContent-vcard">
                <div class="leftCard">
                  <div class="leftCoverImg coverImg" style="background: url(<?= !empty($user['cover_photo'])?base_url($user['cover_photo']):"";?>),#<?= $user['vcard_bg_color'];?>">
                    <div class="leftUserInfo">
                      <div class="userTopImg">
                        <div class="leftUserimage">
                            <img src="<?= isset($user['thumb']) && !empty($user['thumb'])?base_url($user['thumb']):base_url("assets/images/avatar.png"); ;?>" alt="">
                        </div>
                        <div class="leftUserdetails">
                            <h4><?=  html_escape($user['name']);?></h4>
                            <p><?=  html_escape($user['designation']);?></p>
                        </div>
                      </div>
                      <div class="leftUserSocial userqrcode">
                        <img src="<?= isset($user['qr_code']) && !empty($user['qr_code'])?base_url($user['qr_code']):""; ;?>" alt="">
                      </div>
                    </div>

                  </div><!-- leftCoverImg -->
                </div>
                <div class="rightCard">
                    <div class="topStyle3_info">
                      <?php if(!empty($user['about_me_short'])): ?>
                        <div class="aboutUs">
                          <h4><?= !empty(lang('about_me'))?lang('about_me'):"About Me" ;?></h4>
                          <p><?= character_limiter(html_escape($user['about_me_short']),200) ;?></p>
                        </div>
                      <?php endif; ?>
                        <?php if($active_vcard==1): ?>
                          <div class="home_profile_bottom style_4 icon_style_3" >

                           <div class="second_media">
                             <ul>
                              <?php foreach ($icon_list as $key => $row): ?>
                                 <li>
                                    <a href="<?= isset($v_settings->is_clickable) && $v_settings->is_clickable==1? redirect_url($row['type'],$row['value'],$user['dial_code']):"javascript:;" ;?>">
                                      <?= $row['icon'] ;?> 
                                      <div class="vdetails">
                                         <?php if(isset($v_settings->is_value) && $v_settings->is_value==1): ?>
                                          <h4><?= $row['type']=="phone" || $row['type']=="whatsapp"?$user['dial_code']:'' ;?> <?= html_escape($row['value']); ;?></h4>
                                        <?php endif ?>
                                        <p><?= html_escape($row['label']); ;?></p>
                                      </div>
                                  </a>
                                </li>
                              <?php endforeach ?>
                              
                           </ul>
                         </div>
                       </div>
                        <?php else: ?>
                             <?php if(get_user_pricing_by_id($id,'social-site')==1 && is_active($id,'social-site') ==1): ?>
                              <div class="home_profile_bottom style_4 icon_style_3" >
                   
                                 <div class="second_media">
                                   <ul>
                                      <?php if(!empty($user['whatsapp'])): ?>
                                        <li><a href="<?= redirect_url('whatsapp',$user['whatsapp'],$user['dial_code']) ;?>"><i class="fab fa-whatsapp"></i> <?= html_escape($user['whatsapp']); ;?></a></li>
                                      <?php endif;?>

                                      <?php if(!empty($user['phone'])): ?>
                                       <li><a href="<?= redirect_url('phone',$user['phone'],$user['dial_code']) ;?>"><i class="fas fa-phone fa-flip-horizontal"></i> <?= html_escape($user['phone']); ;?></a></li>
                                      <?php endif;?>

                                      <?php if(!empty($user['email'])): ?>
                                       <li><a href="<?= redirect_url('email',$user['email']) ;?>"><i class="fas fa-envelope"></i><?= html_escape($user['email']); ?></a></li>
                                      <?php endif;?>

                                      <?php if(!empty($user['google_map'])): ?>
                                       <li><a href="<?= redirect_url('google_map',$user['google_map']) ;?>"><i class="fas fa-map-marker-alt"></i> <?= html_escape($user['address']); ;?></a></li>
                                      <?php endif;?>

                                      <?php if(!empty($user['website'])): ?>
                                       <li><a href="<?= redirect_url('website',$user['website']) ;?>"><i class="fas fa-globe"></i> <?= html_escape($user['website']); ;?> </a></li>
                                      <?php endif;?>
                                     </ul>
                                 </div>
                               </div>
                          <?php endif;?><!-- old style -->
                      <?php endif;?>
                    </div>
                   
                    <div class="bottomStyle_3">
                     <div class="addTolist pb-xs-10">
                       <?php if(isset($user['vcard_status']) && $user['vcard_status']==3): ?>
                         <a href="<?= base_url('profile/'.$slug); ?>" class="addToContact"><?= !empty(lang('profile'))?lang('profile'):'Profile' ;?> &nbsp;<i class="fa fa-long-arrow-right"></i></a>

                        <?php endif; ?>
                           
                       </div>
                    </div>
                </div>
                
              </div>
              <?php include 'aboutus.php' ?>
            </div>

        	</div>

      </div><!-- container -->
       <?php include "vcardMenu.php"; ?>
    </div><!-- vcardArea -->


<?php endif;?>