<article <?php post_class(); ?>>
	<div class="bt-thumb">
		<?php if ( has_post_thumbnail() ) the_post_thumbnail('full'); ?>
	</div>
	<div class="bt-overlay">
		<div class="bt-content">
			<h3 class="bt-title"><a href="<?php the_permalink(); ?>"><?php _e('@', 'consulta');the_title(); ?></a></h3>
			<div class="bt-position"><?php echo get_post_meta(get_the_ID(),'consulta_team_position',true); ?></div>
			<div class="bt-excerpt"><?php the_excerpt(); ?></div>
			<?php
				$facebook = get_post_meta(get_the_ID(),'consulta_team_facebook',true);
				$twitter = get_post_meta(get_the_ID(),'consulta_team_twitter',true);
				$linkedin = get_post_meta(get_the_ID(),'consulta_team_linkedin',true);
				$pinterest = get_post_meta(get_the_ID(),'consulta_team_pinterest',true);
				$google_plus = get_post_meta(get_the_ID(),'consulta_team_google_plus',true);
				$tumblr = get_post_meta(get_the_ID(),'consulta_team_tumblr',true);
				$instagram = get_post_meta(get_the_ID(),'consulta_team_instagram',true);
				$flickr = get_post_meta(get_the_ID(),'consulta_team_flickr',true);
				
				$social =  array();
				if($facebook) $social[] = '<li><a href="'.esc_url($facebook).'"><i class="fa fa-facebook"></i></a></li>';
				if($twitter) $social[] = '<li><a href="'.esc_url($twitter).'"><i class="fa fa-twitter"></i></a></li>';
				if($linkedin) $social[] = '<li><a href="'.esc_url($linkedin).'"><i class="fa fa-linkedin"></i></a></li>';
				if($pinterest) $social[] = '<li><a href="'.esc_url($pinterest).'"><i class="fa fa-pinterest"></i></a></li>';
				if($google_plus) $social[] = '<li><a href="'.esc_url($google_plus).'"><i class="fa fa-google-plus"></i></a></li>';
				if($tumblr) $social[] = '<li><a href="'.esc_url($tumblr).'"><i class="fa fa-tumblr"></i></a></li>';
				if($instagram) $social[] = '<li><a href="'.esc_url($instagram).'"><i class="fa fa-instagram"></i></a></li>';
				if($flickr) $social[] = '<li><a href="'.esc_url($flickr).'"><i class="fa fa-flickr"></i></a></li>';
				
				if(!empty($social)) echo '<ul class="bt-social">'.implode(' ', $social).'</ul>'
			?>
		</div>
	</div>
</article>