This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/template-parts/content-none.php

31 lines
811 B
PHP
Raw Normal View History

2018-03-21 18:19:20 +00:00
<?php
/**
* The template part for displaying a message that posts cannot be found.
*
* @package WordPress
* @subpackage Omphaloskepsis
* @since Omphaloskepsis 1.0
*/
2018-03-21 18:19:20 +00:00
?>
<section class="no-results not-found">
<header class="page-header">
<h1 class="page-title">Nothing Found</h1>
</header><!-- .page-header -->
2018-03-21 18:19:20 +00:00
<div class="page-content">
<?php if ( is_search() ) : ?>
2018-03-21 18:19:20 +00:00
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentysixteen' ); ?></p>
<?php get_search_form(); ?>
2018-03-21 18:19:20 +00:00
<?php else : ?>
2018-03-21 18:19:20 +00:00
<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentysixteen' ); ?></p>
<?php get_search_form(); ?>
2018-03-21 18:19:20 +00:00
<?php endif; ?>
</div><!-- .page-content -->
2018-03-21 18:19:20 +00:00
</section><!-- .no-results -->