           <?php   if(sizeof(PageContext::$response->tagDetails)>0){
           foreach (PageContext::$response->tagDetails as $key=>$lead){ ?>

          <div class="col-sm-6 col-md-6 col-lg-6">
                                    <div class="mediapost">
                                    <div class="mediapost_left pull-left">
                                        <span class="mediapost_pic">
                                            <a href="<?php echo PageContext::$response->baseUrl.'directory/'.$lead->business_alias?>">
<img src="<?php echo PageContext::$response->userImagePath;?><?php if ($lead->file_path!=''){ ?>thumb/<?php echo $lead->file_path;}elseif($lead->file_path == ''){ ?>thumb/noimage.jpg <?php } ?>">
</a>                                        </span>
                                    </div>
                                    <div class="media-body">
                                        <h4 class="media-heading"><a class="jtab" href="<?php echo PageContext::$response->baseUrl.'directory/'.$lead->business_alias?>"><?php echo $lead->business_name; ?></a> </h4>
<!--                                        <p><?php echo $lead->role; ?></p>
                                        <p><?php echo $lead->tag_buisness_email; ?></p>-->
                                    </div>
                                    <div class="clearfix"></div>
                                </div>
                            </div>




           
          
          <?php }}else{
              if(PageContext::$response->alias == PageContext::$response->sess_user_alias){ ?>
                 <a href="#" class="edit_link jedittag">Add Business</a>
          <?php 
              }
          } ?>
<!--            <div class="clear"></div> -->
    
    