<?php
/**
 * Template part for displaying a message that posts cannot be found.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * This template part can be overridden by copying it to a child theme or in the same theme
 * by putting it in the root `/template-parts/content-none.php` or in `/template-parts/blog/content-none.php`.
 * @see pixelgrade_locate_component_template_part()
 *
 * HOWEVER, on occasion Pixelgrade will need to update template files and you
 * will need to copy the new files to your child theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see        https://pixelgrade.com
 * @author     Pixelgrade
 * @package    Components/Blog
 * @version    1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

//we first need to know the bigger picture - the location this template part was loaded from
$location = pixelgrade_get_location( '404' );
?>

<section class="no-results not-found">
	<div class="page-content entry-content">
		<h2 class="page-title h3"><?php esc_html_e( 'Nothing Found', 'vasco' ); ?></h2>

		<?php
		if ( is_home() && current_user_can( 'publish_posts' ) ) { ?>

			<p><?php
				/* translators: 1: the admin URL for new post. */
				printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'vasco' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>

		<?php } elseif ( is_search() ) { ?>

			<p class="entry-content"><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'vasco' ); ?></p>

			<?php get_search_form();

		} else { ?>

			<p class="entry-content"><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'vasco' ); ?></p>

			<?php get_search_form();

		} ?>
	</div><!-- .page-content -->
</section><!-- .no-results -->
