<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }

get_header(); ?>

<div class="content-wrapper">
	<header class="archive-header">
		<h1 class="archive-title">
			<?php post_type_archive_title(); ?>
		</h1>
		<?php if ( get_the_archive_description() ) : ?>
			<div class="archive-description"><?php echo get_the_archive_description(); ?></div>
		<?php endif; ?>
	</header>

	<?php if ( have_posts() ) : ?>
		<div class="partner-archive-grid">
			<?php while ( have_posts() ) : the_post(); ?>
				<?php get_template_part( 'template-parts/content', 'partner' ); ?>
			<?php endwhile; ?>
		</div>

		<?php the_posts_pagination( array(
			'prev_text' => __( '&larr; Anterior', 'culturando' ),
			'next_text' => __( 'Próximo &rarr;', 'culturando' ),
		) ); ?>

	<?php else : ?>
		<?php get_template_part( 'template-parts/content', 'none' ); ?>
	<?php endif; ?>
</div>

<?php get_footer(); ?>