<?php
/**
 * Error template (admin-only)
 *
 * Override by copying to: your-theme/celersearch/views/search/error.php
 *
 * @var array $template_args
 * @var array $template_args['errors']
 *
 * @package CelerSearch
 */

defined( 'ABSPATH' ) || exit;

$errors = $template_args['errors'] ?? [];
?>
<div class="cs-search__error">
	<p><strong><?php esc_html_e( 'CelerSearch Error:', 'celersearch' ); ?></strong></p>
	<ul>
		<?php foreach ( $errors as $error ) : ?>
			<li><?php echo esc_html( $error ); ?></li>
		<?php endforeach; ?>
	</ul>
</div>
