File: /disk001/machen/www/support/wp-content/themes/wp-moose/template-parts/content-none.php
<?php
/**
* Template part for displaying a message that posts cannot be found.
*
* @link https://codex.wordpress.org/Template_Hierarchy
* @package Moose
*/
?>
<section class="px-half-gutter mb-60">
<header class="text-center mt-10 mb-half-gutter">
<h1 class="text-3xl font-bold">
<?php
if ( is_404() ) {
esc_html_e( 'Oops! That page can’t be found.', 'wp-moose' );
} else {
esc_html_e( 'Nothing Found', 'wp-moose' );
}
?>
</h1>
</header>
<div class="text-center form-controls form-default form-primary">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<!-- For Home Page -->
<p class="mb-gutter">
<?php
printf( wp_kses(
/*translators: %1$s: the url of 'post-new.php'*/
__( 'Ready to publish your first post? <a class="link link-hover-primary" href="%1$s">Get started here</a>.', 'wp-moose' ),
array( 'a' => array( 'href' => array(), 'class' => array() ) ) ),
esc_url( admin_url( 'post-new.php' ) )
);
?>
</p>
<?php elseif ( is_search() ) : ?>
<!-- For Search Result -->
<p class="mb-gutter">
<?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'wp-moose' ); ?>
</p>
<div class="max-w-prose mx-auto">
<?php get_search_form(); ?>
</div>
<?php else : ?>
<!-- For Archive Page -->
<p class="mb-gutter">
<?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'wp-moose' ); ?>
</p>
<div class="max-w-prose mx-auto">
<?php get_search_form(); ?>
</div>
<?php endif; ?>
</div>
</section>