<?php
/**
 * Template part for displaying a message that posts cannot be found
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Zentorone
 */

?>

<section class="no-results not-found py-5">
	<header class="page-header mb-4">
		<h1 class="page-title h3"><?php esc_html_e( 'Nothing Found', 'zentorone' ); ?></h1>
	</header><!-- .page-header -->

	<div class="page-content">
		<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
			<p>
				<?php esc_html_e( 'Ready to publish your first post?', 'zentorone' ); ?>
				<a href="<?php echo esc_url( admin_url( 'post-new.php' ) ); ?>">
					<?php esc_html_e( 'Get started here', 'zentorone' ); ?>
				</a>.
			</p>

		<?php elseif ( is_search() ) : ?>
			<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'zentorone' ); ?></p>
			<div class="search-form-wrap mt-4" style="max-width: 500px;">
				<?php get_search_form(); ?>
			</div>

		<?php else : ?>
			<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'zentorone' ); ?></p>
			<div class="search-form-wrap mt-4" style="max-width: 500px;">
				<?php get_search_form(); ?>
			</div>
		<?php endif; ?>
	</div><!-- .page-content -->
</section><!-- .no-results -->