<section class="home_area home_style_2 HomeStyle_2 scroll_section" id="home">
  <div class="home_banner" style="background: url(<?= get_user_layout_img($id,'home')?>)"></div>
  <div class="vcardWrap profile_bg_wrap"> </div><!-- profile_bg_wrap -->
  <div class="container">
    <div class="home_img_area" >
      <img src="<?php echo base_url(get_user_info_by_slug($slug)['thumb']); ?>" alt="">
      <a href="javascript:;" class="home_fb_share" title="facebook share" onclick="window.open('http://www.facebook.com/sharer.php?u=<?= base_url(get_user_info_by_slug($slug)['username']);?>', 'sharer', 'toolbar=0,status=0,width=620,height=280');"><i class="fa fa-facebook "></i></a>
    </div><!-- home_img_area -->

    <div class="home2Details">
     <?php foreach ($home as $row): ?>
      <div class="home_content_details text-center">
        <?php if(get_user_pricing_by_id($id,'home')==1): ?>
          <div class="home_top_text">
            <h1><?= html_escape($row['title']); ?></h1>   
            <p><?= character_limiter($row['about_me'],200);?></p>   
          </div> 
        <?php endif ?>
        <?php if(get_user_pricing_by_id($id,'social-site')==1 && is_active($id,'social-site') ==1): ?>
        <div class="socialLink">
          <ul>
            <?php $i=1;foreach ($row['my_sites'] as $site): ?>
            <?php if (!empty($site['site_value'])): ?>
              <li class=""><a href="<?= redirect_url($site['type'],$site['site_value'],users($slug)['dial_code']); ?>" title="<?= html_escape($site['name']);?>"><?= $site['icon']; ?></a></li>
            <?php endif ?>
            <?php $i++; endforeach ?>
          </ul>
        </div>
      <?php endif ?>
    </div>
  <?php endforeach; ?>
</div>
</div>
</section>
