<?php 
  /*
  $image =  For Image
  $designation = For Designation
  $name =  For Name
  $fblink =  For Facebook Link
  $twitterlink =  For Twitter Link
  $linkedin =  For skype Link
  $google =  For Google Link
*/
    $image = wp_get_attachment_image_src( $image, 'small-thumb');
  $image = $image[0];
 
  
?>



<div class="col-md-4 col-sm-6 col-xs-12 wow fadeInUp mt-80">
  <div class="blog box-radius">
     <div class="blog-img">
        <?php 
          if ( ! empty( $image )){
             echo  '<img src="'.$image.'" alt=""/>';
          }  

        ?>
     </div>
     <div class="team-content">
       <?php 
                            
        if ( ! empty( $name ) || ! empty( $designation )){

            echo '<h3>'.$name.'</h3>';

            echo '<p>'.$designation.'</p>';

        } ?>

        <div class="team-footer-social">
          <?php

            if ( ! empty( $fblink ) || ! empty( $twitterlink ) || ! empty( $linkedin )) { ?>
          
           <a href="<?php echo $fblink; ?>" target="_blank"><i id="social-fb" class="fa fa-facebook fa-2x social"></i></a>
           <a href="<?php echo $twitterlink; ?>" target="_blank"><i id="social-tw" class="fa fa-twitter fa-2x social"></i></a>
           <a href="<?php echo $linkedin; ?>" target="_blank"><i id="social-em" class="fa fa-instagram fa-2x social"></i></a>
        <?php } ?>
       </div>
     </div>
  </div>
</div>


