<?php
/**
 * Answyr Docs — fallback archive template (classic themes).
 *
 * @package Answyr
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

get_header();
?>
<main class="answyr-docs-archive" style="max-width:820px;margin:40px auto;padding:0 20px;">
	<h1><?php the_archive_title(); ?></h1>
	<?php if ( have_posts() ) : ?>
		<ul class="ssd-list">
			<?php
			while ( have_posts() ) :
				the_post();
				?>
				<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
				<?php
			endwhile;
			?>
		</ul>
	<?php else : ?>
		<p><?php esc_html_e( 'No docs yet.', 'answyr' ); ?></p>
	<?php endif; ?>
</main>
<?php
get_footer();
