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

?>


              <div class="col-md-3 col-sm-6 wow fadeInUp">
                  <div class="team_membar">
                    <?php 


                        if ( ! empty( $image )){
                           echo  '<img src="'.$image.'" alt="">';
                        }  

                    ?>
                     <div class="team_content">
                        <ul>
                          <?php

                             if ( ! empty( $fblink ) || ! empty( $twitterlink ) || ! empty( $linkedin )){
                               echo '
                            <li>
                              <a href="'.esc_url($fblink).'" <i class="fa fa-facebook" aria-hidden="true"></i>
                              </a>
                            </li>
                           <li>
                              <a href="'.esc_url($twitterlink).'" <i class="fa fa-twitter" aria-hidden="true"></i>
                              </a>
                           </li>
                           <li>
                              <a href="'.esc_url($linkedin).'" <i class="fa fa-linkedin" aria-hidden="true"></i>
                              </a>
                           </li>'; 
                         }
                          ?>
                          
                        </ul>
                        <?php 
                            
                            if ( ! empty( $name ) || ! empty( $designation )){

                                echo '<a href="#" class="name">'.$name.'</a>';

                                echo '<h6>'.$designation.'</h6>';
        
                            } ?>
                     </div>
                  </div>
               </div>
