<?php
/**
 * The template for displaying archive for portfolio
 */

get_header(); ?>

<?php educacion_mascot_get_title_area_parts(); ?>
<section>
	<div class="container">
		<div class="main-content-area">
			<div class="entry-content">
				<div class="tm-clients-grid">
					<!-- Isotope Gallery Grid -->
					<div id="<?php echo esc_attr( $holder_id ) ?>" class="isotope-layout grid-3 clearfix">
					<?php
						if ( have_posts() ) :
						// Start the Loop.
						while ( have_posts() ) : the_post();
					?>
					<div class="isotope-item">
						<div class="client-item">
							<a target="_blank" href="<?php echo esc_url( ( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "clients_mb_settings", 'client_url' ) == '' ) ? '#' : educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "clients_mb_settings", 'client_url' ) );?>">
							<?php
							$image = educacion_mascot_get_rwmb_group_advanced( 'educacion_mascot_' . 'clients_mb_settings', 'client_logo' );
							if ( !empty( $image ) ) {
								echo "<img src='{$image}' alt='image' />";
							}
							?>
							</a>
							<h3 class="client-name"><?php echo esc_html( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "clients_mb_settings", 'client_name' ) );?></h3>
							<div class="client-description"><?php echo wp_kses_post( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "clients_mb_settings", 'client_description' ) );?></div>
							<div class="mt-10"><a class="btn btn-theme-colored1 btn-sm" target="_blank" href="<?php echo esc_url( ( educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "clients_mb_settings", 'client_url' ) == '' ) ? '#' : educacion_mascot_get_rwmb_group( 'educacion_mascot_' . "clients_mb_settings", 'client_url' ) );?>"><?php esc_html_e( 'Link', 'educacion-wp' ); ?></a></div>
						</div>
					</div>
					<?php
						endwhile;
						endif;
					?>
					</div>
				</div>
			</div>
		</div>
	</div>
</section> 

<?php get_footer();
