<section id="profile" class="content_wrapper innerPage clearfix">
             <div class="contactWraper container">
                <div class="contactHeader clearfix">
                    <h2 class="inline noborder heading_people_private"><?php echo getLang('Members_access_your_private_pictures'); ?></h2>
                 </div>
               <div class="contactMessage" style="width: 100%;">

                <?php if(!empty($privacy_accepted_users)){ 
                    foreach ($privacy_accepted_users as $t_friend) { ?> 
                       <div class="messageBox private-pic-view">
                         <a href="<?php echo  base_url().'profil/'.$t_friend['alias'];?>">
                            <div class="messageAvatar" >
									<img src="<?php if(!empty($t_friend) && $t_friend['filename']!='' && file_exists(FCPATH.'assets/userfiles/'.$t_friend['path'].'/160/'.$t_friend['filename'].'.'.$t_friend['extension'])){ echo base_url().'assets/userfiles/'.$t_friend['path'].'/160/'.$t_friend['filename'].'.'.$t_friend['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; }?>" alt="" srcset="<?php if(!empty($t_friend['filename']) && file_exists(FCPATH.'assets/userfiles/'.$t_friend['path'].'/160/'.$t_friend['filename'].'.'.$t_friend['extension'])){ echo  base_url().'assets/userfiles/'.$t_friend['path'].'/160/'.$t_friend['filename'].'.'.$t_friend['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 1x, <?php if(!empty($t_friend['filename']) && file_exists(FCPATH.'assets/userfiles/'.$t_friend['path'].'/320/'.$t_friend['filename'].'.'.$t_friend['extension'])){ echo  base_url().'assets/userfiles/'.$t_friend['path'].'/320/'.$t_friend['filename'].'.'.$t_friend['extension']; } else { echo base_url().'assets/images/default-avatar.jpg'; } ?> 2x" >
								
								 </div>
                          </a>
                          <div class="messageContent messageBoxInnerDetails">
                            <a href="<?php echo  base_url().'profil/'.$t_friend['alias'];?>"><h4><?php echo $t_friend['username']; ?></h4></a>
                            <small><?php echo ucfirst($t_friend['accounttype']); ?>, <span><?php echo $t_friend['country_name']; ?></small>
                          </div>
                          <div class="messageContent messageBoxInnerAbout">
                            <h5><?php echo html_entity_decode($t_friend['about']); ?></h5>
                          </div>
                          
                          <?php if($t_friend['privacy']==0){ ?>
                            <a href="javascript:void(0)" class="quit_privacy btn_dark" data-id="<?php echo $t_friend['from_user_id']; ?>" data-type="1" title="<?php echo getLang('Accept'); ?>"><i class="fa fa-eye-slash"></i></a>
                          <?php } else { ?>
                            <a href="javascript:void(0)" class="quit_privacy btn_dark" data-id="<?php echo $t_friend['from_user_id']; ?>" data-type="2" title="<?php echo getLang('Reject'); ?>"><i class="fa fa-eye"></i></a>
                          <?php } ?>
                          <a href="javascript:void(0)" class="quit_privacy btn_dark" data-id="<?php echo $t_friend['from_user_id']; ?>" data-type="0" title="<?php echo getLang('Cancel'); ?>"><i class="fa fa-close"></i></a>
                          
                       </div>
                <?php  }
                      } else { echo getLang('No_record_found'); }
                    ?>  

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