<div class="global-profile-container">
<a id="demo02" href="#modal-02"><div class="user-search js-onebyone"><div class="icon-search icon-search-find"></div></div></a>
  <div class="user-info-area">
    <div class="profile-image-wrap">
     <svg width="0" height="0">
  <defs>
    <clipPath id="clipper" clipPathUnits="objectBoundingBox">
      <polygon points=".9232051 .40, .9379385 .431596, .9469616 .4652704, .95 .50, .9469616 .5347296, .9379385 .568404, .9232051 .60, .7982051 .8165064, .7782089 .8450639, .7535575 .8697152, .725 .8897114, .693404 .9044449, .6597296 .9134679, .625 .9165064, .375 .9165064, .3402704 .9134679, .306596 .9044449, .275 .8897114, .2464425 .8697152, .2217911 .8450639, .2017949 .8165064, .0767949 .60, .0620615 .568404, .0530384 .5347296, .05 .50, .0530384 .4652704, .0620615 .431596, .0767949 .40, .2017949 .1834936, .2217911 .1549361, .2464425 .1302848, .275 .1102886, .306596 .0955551, .3402704 .0865321, .375 .0834936, .625 .0834936, .6597296 .0865321, .693404 .0955551, .725 .1102886, .7535575 .1302848, .7782089 .1549361, .7982051 .1834936"
      />
    </clipPath>
  </defs>
</svg>
<div class="poligon" id="minitimelineProfilePic">
  <div class="loading_animation"></div>
  <?php include("mini-profile-image.php");?>
</div>
     </div>
<div class="user-profile-image-area" id="timelineProfilePic">
<div class="cover_loading"></div>
  <?php 
  if($friend_status == 'me'){?>
  <?php } else{ ?>
   <div class="block_u">
   <div class="icon-block_u icon-ellipsis"></div>
    <div class="block-menu">
    <ul>
       <li class="md-ripple block_pp" id="<?php echo $profile_uid;?>"><div class="icon_eye icon-eye-disabled"></div><?php echo $strings['block_user'];?></li>
    </ul>
  </div>
   </div>
  <?php }?>
   
    <?php include("profile-image.php");?>
    </div>
    <div class="place"><div class="icon-location icon-pin"></div><?php echo htmlspecialchars($session_city);?></div>
    <div class="profile-username"><?php echo htmlspecialchars($Mat->UserFullName($username));?><?php if($verified_user == 1){ echo '<img src="'.$base_url.'mat_icons/verified.png" width="23px" height="23px">';}?></div>
    <a href="<?php echo $base_url.'messages/'.$username;?>"><div class="user-images js-onebyone"><div class="materialtouch md-ripple md-ripple-yellow wow bounceInLeft" data-wow-offset="300"><div class="icon icon-paperplane-black"></div></div></div></a>
    <div class="follow-button-mp"><?php include("follow_button.php");?></div>
  </div>
  <div class="user-case">
    <div class="case">
      <div class="case-t collapse-card__heading"><?php echo $strings['user_info'];?></div>
      <div class="collapse-card__title"><?php echo htmlspecialchars($session_case);?></div>
      <div class="case_body">
        <div class="pr_social">
        <?php if($facebook_id) {
			     echo ' <a href="https://www.facebook.com/'.$facebook_id.'" target="_blank"><div class="fp-contacts icon-facebook-alt-1 tip tpy" title="Facebook"></div></a>';
			  }  
	    ?>
        <?php if($twitter_id) {
			    echo '<a href="https://www.twitter.com/'.$twitter_id.'" target="_blank"><div class="tp-contacts icon-twitter-square tip tpy" title="Twitter"></div></a>';
			  }
		?>
        <?php if($tumblr_id) {
			     echo '<a href="http://www.'.$tumblr_id.'.tumblr.com/" target="_blank"><div class="tup-contacts icon-tumblr-square tip tpy" title="Tumblr"></div></a>';
			  }
		?>
        <?php if($googleplus_id) {
			     echo '<a href="http://plus.google.com/'.$googleplus_id.'" target="_blank"><div class="gp-contacts icon-google-plus-1 tip tpy" title="Google Plus"></div></a>';
			 }
	    ?>
        <?php if($youtube_id) {
			     echo '<a href="http://youtube.com/channel/'.$youtube_id.'" target="_blank"><div class="yp-contacts icon-youtube-1 tip tpy" title="Youtube"></div></a>';
			 }
		?>
        <?php if($instagram_id) {
			     echo '<a href="http://instagram.com/'.$instagram_id.'" target="_blank"><div class="insp-contacts icon-instagram-2 tip tpy" title="Instagram"></div></a>';
			  }
		?>
       </div>
       <div class="glob_inf_d">
         <?php 
		    if($user_gender == '0') {
			   echo '<div class="ugender"><img src="'.$base_url.'css/icons/gender.png" width="25px" height="25px"/> Custom</div>';
		    }else if($user_gender == '1'){
			   echo '<div class="ugender"><img src="'.$base_url.'css/icons/man.png" width="25px" height="25px"/> Male</div>';
		    } else if($user_gender == '2'){
			  echo '<div class="ugender"><img src="'.$base_url.'css/icons/girl.png" width="25px" height="25px"/> Female</div>';	
			} else {
			  echo '<div class="ugender"><img src="'.$base_url.'css/icons/gender.png" width="25px" height="25px"/> He does not want to specify</div>';	
				}
		 ?>
       </div>
       <div class="glob_inf_d">
          <?php
             //date in mm/dd/yyyy format; or it can be in other formats as well
		    $birthDate = $bmnth.'/'.$brtday.'/'.$brthyear;
			if (strtotime("$brthyear-$bmnth-$brtday")) {
            // strtotime() parses it correctly, so it is a date
            // Simpler, using the 3 variables in mktime() directly:
            $age = (date("md", date("U", mktime(0, 0, 0, $bmnth, $brtday, $brthyear))) > date("md") ? ((date("Y") - $brthyear) - 1) : (date("Y") - $brthyear));
            echo '<div class="ubirthday"><img src="'.$base_url.'css/icons/birthday.png"/>'.$age.'</div>';	
            //get age from date or birthdate 
			 }
          ?>
        </div>
       </div>
      </div> 
  </div>
   <div class="profile_smenu">
   <div class="profile-buttons bord">
       <a href="<?php echo $base_url.$username;?>"><div class="home--page"><div class="homtext"><?php echo $strings['posts'];?></div><div class="total"><?php echo $session_update_count;?></div></div></a>
       <a href="<?php echo $base_url.'followers/'.$username;?>"><div class="home--page"><div class="homtext"><?php echo $strings['followers'];?></div><div class="total"><?php echo $user_ufollower_count;?></div></div></a>
       <a href="<?php echo $base_url.'following/'.$username;?>"><div class="home--page"><div class="homtext"><?php echo $strings['following'];?></div><div class="total"><?php echo $friend_count;?></div></div></a>
       <a href="<?php echo $base_url.'photos/'.$username;?>"><div class="home--page"><div class="homtext"><?php echo $strings['photos'];?></div><div class="total"><?php echo $user_upload_count;?></div></div></a>
    </div>
    </div>
    <div class="chated-poeople">
   <?php include("profile_posts.php"); ?>
    
  </div>
</div>
<!--Create New Post STARTED-->
<div class="create-post bounceInLeft">
 <div class="icon-a icon-mail-send"></div>
 <div class="select-post-tipe">
    <a id="post04" href="#animatedModalImage"><div class="ImagePost one"><div class="icon-po icon-picture"></div></div></a>
    <a id="post01" href="#animatedModal"><div class="textandlinkPost two  md-ripple md-ripple-yellow wow"  data-wow-offset="300"><div class="icon-po-p icon-pencil-edit"></div></div></a>
    <a id="post05" href="#animatedModalVideo"><div class="textandlinkPost two  md-ripple md-ripple-yellow wow"  data-wow-offset="300"><div class="icon-po-p icon-video-camera"></div></div></a>
  </div>
</div>
<!--Create New Post FINISHED-->
<!--Text and Link Post Area STARTED-->
<?php include("postupdate.php");?>
<!--Text and Link Post Area FINISHED-->

<!--Image Post Area STARTED-->
<?php include("postupdateImage.php");?>
<!--Image Post Area FINISHED-->
<!--Video Post Area STARTED-->
<?php include("postvideoupdate.php");?>
<!--Video Post Area FINISHED-->
<!--User Search modal Started-->
<?php include("search.php");?>
<!--User Search Modal Finished-->
<!--Kullanıcıyı Engelle Alanı Başladı-->
<div class="block_pop_wrap">
    <div class="language_header"><?php echo $strings['blocked_ap'];?><div class="report_cancel_wrap go"><div class="icon-block_cancel icon-cross-mark"></div></div></div>
    <div class="language_items">
      <div class="select-language-type">
        <?php echo $strings['blocked_at'];?>
      </div>
      <div class="block_items"><?php echo $strings['blocked_if1'];?></div>
      <div class="block_items"><?php echo $strings['blocked_if2'];?></div>
      <div class="block_items"><?php echo $strings['blocked_if3'];?></div>
      <div class="block_items"><?php echo $strings['blocked_if4'];?></div>
    </div>
    <div class="change_language_wrap">
      
      <div class="language_dpost md-ripple"><input type="submit" class="block_this_user_p timer" value="<?php echo $strings['block_him'];?>"></div>
      
    </div>
</div>
<!--Kullanıcıyı Engelle Alanı Bitti-->
<div class="backbar"></div>
<script type="text/javascript">
$('.case').paperCollapse();
</script>