2012-03-29 15:55:33 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2016-09-27 06:14:57 +00:00
|
|
|
* Template part for displaying a message that posts cannot be found
|
2012-03-29 15:55:33 +00:00
|
|
|
*
|
2017-10-29 08:51:29 +00:00
|
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
2012-03-29 15:55:33 +00:00
|
|
|
*
|
|
|
|
* @package _s
|
|
|
|
*/
|
2015-05-27 17:49:01 +00:00
|
|
|
|
2012-03-29 15:55:33 +00:00
|
|
|
?>
|
|
|
|
|
2013-03-02 01:28:18 +00:00
|
|
|
<section class="no-results not-found">
|
|
|
|
<header class="page-header">
|
2015-04-29 02:04:41 +00:00
|
|
|
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', '_s' ); ?></h1>
|
2013-03-02 01:28:18 +00:00
|
|
|
</header><!-- .page-header -->
|
2012-03-29 15:55:33 +00:00
|
|
|
|
2013-03-02 01:28:18 +00:00
|
|
|
<div class="page-content">
|
2015-11-11 21:59:40 +00:00
|
|
|
<?php
|
2017-08-01 20:27:46 +00:00
|
|
|
if ( is_home() && current_user_can( 'publish_posts' ) ) :
|
|
|
|
|
|
|
|
printf(
|
|
|
|
'<p>' . wp_kses(
|
|
|
|
/* translators: 1: link to WP admin new post page. */
|
|
|
|
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ),
|
|
|
|
array(
|
|
|
|
'a' => array(
|
|
|
|
'href' => array(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
) . '</p>',
|
|
|
|
esc_url( admin_url( 'post-new.php' ) )
|
|
|
|
);
|
|
|
|
|
|
|
|
elseif ( is_search() ) :
|
|
|
|
?>
|
2012-03-29 15:55:33 +00:00
|
|
|
|
2015-04-29 02:04:41 +00:00
|
|
|
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', '_s' ); ?></p>
|
2015-11-11 21:59:40 +00:00
|
|
|
<?php
|
2017-08-01 20:27:46 +00:00
|
|
|
get_search_form();
|
2012-03-29 15:55:33 +00:00
|
|
|
|
2017-08-01 20:27:46 +00:00
|
|
|
else :
|
|
|
|
?>
|
2012-03-29 15:55:33 +00:00
|
|
|
|
2015-04-29 02:04:41 +00:00
|
|
|
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', '_s' ); ?></p>
|
2015-11-11 21:59:40 +00:00
|
|
|
<?php
|
2017-08-01 20:27:46 +00:00
|
|
|
get_search_form();
|
2012-03-29 15:55:33 +00:00
|
|
|
|
2017-08-01 20:27:46 +00:00
|
|
|
endif;
|
|
|
|
?>
|
2013-03-02 01:28:18 +00:00
|
|
|
</div><!-- .page-content -->
|
2015-05-27 17:49:01 +00:00
|
|
|
</section><!-- .no-results -->
|