<div id="<?php echo esc_attr( $this->add_id( array( 'awsm-team',$id ) ) );?>" class="awsm-grid-wrapper">
	<?php
		echo $this->show_team_filter($team, $id );
	?>
	<?php if ( $team->have_posts() ): ?>
		<div class="awsm-grid">
			<div class="awsm-table <?php echo esc_attr( $this->item_style($options) );?>">
				<div class="awsm-table-row awsm-table-head">
					<div class="awsm-table-cell">
						<?php _e('Image','awsm-team-pro'); ?>
					</div>
					<div class="awsm-table-cell">
						<?php _e('Name','awsm-team-pro'); ?>
					</div>
					<div class="awsm-table-cell">
						<?php _e('Designation','awsm-team-pro'); ?>
					</div>
					<div class="awsm-table-cell">
						<?php _e('Short Description','awsm-team-pro'); ?>
					</div>		
					<div class="awsm-table-cell">
						<?php _e('Social Links','awsm-team-pro'); ?>
					</div>
				</div>
				<?php 
				while ($team->have_posts()): $team->the_post();
				$teamdata = $this->get_options('awsm_team_member', $team->post->ID);
				$member_terms = 'awsm-all';
				$terms = get_the_terms( $team->post->ID, 'awsm_team_filters' );
				if( !empty( $terms ) ){
					foreach ($terms as $member_term) {
						$member_terms .= ' awsm-'.str_replace( ' ', '-', $member_term->slug );
					}
				}
				?>
				<div id="<?php echo esc_attr( $this->add_id( array( 'awsm-member',$id,$team->post->ID ) ) );?>" class="awsm-table-row awsm-team-item awsm-scale-anm <?php echo esc_attr( $member_terms ); ?>">
					<div class="awsm-table-cell awsm-table-image">
						<div class="awsm-table-img-holder">
							<?php echo $this->get_team_thumbnail( $team->post->ID );?>
						</div>
					</div>
					<div class="awsm-table-cell awsm-table-name">
						<div class="awsm-table-cell-inner"><?php esc_html( the_title() ); ?></div>
					</div>
					<div class="awsm-table-cell awsm-table-designation">
						<div class="awsm-table-cell-inner"><?php $this->checkprint('%s', esc_html( $teamdata['awsm-team-designation'] ) );?></div>
					</div>
					<div class="awsm-table-cell awsm-table-description">
						<div class="awsm-table-cell-inner"><?php $this->checkprint('<p>%s</p>', esc_html( $teamdata['awsm-team-short-desc'] ) );?></div>
					</div>
					<div class="awsm-table-cell">
						<?php 
						include( $this->get_template_path( 'social.php', 'partials' ) );
					?>
					</div>
				</div>
				<?php endwhile; wp_reset_postdata();?>
			</div>
		</div>
	<?php endif;?>	
</div>