<?php

namespace GSCOACH;
/**
 * GS Coach - Archive Template
 * @author GS Plugins <hello@gsplugins.com>
 * 
 * This template can be overridden by copying it to yourtheme/gs-coach/gs-coach-layout-archive.php
 * 
 * @package GS_Coach/Templates
 * @version 1.0.1
 */

remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );

if ( empty($gs_coach_thumbnail_sizes) ) {
	$gs_coach_thumbnail_sizes = 'large';
}

$display_ribbon = 'on';

get_header(); ?>

<div class="gs-containeer gs-archive-container">
	
	<h1 class="arc-title"><?php echo gs_get_post_type_archive_title(); ?></h1>

	<div class="gs-roow clearfix gs_coach" id="gs_coach_archive">

		<?php while ( have_posts() ) : the_post();
		
		$designation = get_post_meta( get_the_id(), '_gscoach_profession', true );
		
		?>
		
		<div class="gs-col-lg-3 gs-col-md-4 gs-col-sm-6 gs-col-xs-12">
			<div itemscope="" itemtype="http://schema.org/Person"> <!-- Start sehema -->
			
				<!-- Coach Image -->
				<div class="gs-arc-mem-img gs_ribon_wrapper">
					
					<a href="<?php the_permalink(); ?>">
						<?php coach_thumbnail( $gs_coach_thumbnail_sizes, true ); ?>
					</a>

					<!-- Ribbon -->
					<?php include Template_Loader::locate_template( 'partials/gs-coach-layout-ribon.php' ); ?>

				</div>
				<?php do_action( 'gs_coach_after_coach_thumbnail' ); ?>


				<div class="gs_coach_details gs-tm-sicons">

					<a href="<?php the_permalink(); ?>"><h3 class="gs-arc-mem-name" itemprop="name"><?php the_title(); ?></h3></a>
					<?php do_action( 'gs_coach_after_coach_name' ); ?>
					
					<div class="gs-arc-mem-desig" itemprop="jobtitle"><?php echo esc_html( $designation ); ?></div>
					<?php do_action( 'gs_coach_after_coach_designation' ); ?>

					<!-- Social Links -->
					<?php $gs_coach_connect = 'on'; ?>
					<?php include Template_Loader::locate_template( 'partials/gs-coach-layout-social-links.php' ); ?>

				</div>
			
			</div> <!-- end sehema -->
		</div> <!-- end col -->
	
		<?php endwhile; ?>

	</div>
	
</div>

<?php get_footer(); ?>