<?php

extract( $atts );

// classes
$classes = array(
	'ld-tm',
	'pos-rel',
	$color_type,
	$el_class, 
	$this->get_id()
);

$this->generate_css();

$socials  = (array) vc_param_group_parse_atts( $socials );


?>
<div id="<?php echo $this->get_id() ?>" class="<?php echo ld_helper()->sanitize_html_classes( $classes ) ?>">

	<?php $this->get_image(); ?>
	
	<?php if( !empty( $name ) || !empty( $position ) ) { ?>

	<div class="ld-tm-info ld-overlay d-flex flex-column align-items-center justify-content-center">

		<?php $this->get_name(); ?>
		<?php $this->get_position(); ?>
		<?php $this->get_social(); ?>

	</div><!-- /.ld-tm-info -->
	
	<?php } ?>

	<?php $this->get_overlay_link(); ?>
	
</div><!-- /.ld-team-member -->