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
|
|
|
*
|
2015-07-01 15:21:44 +00:00
|
|
|
* @link https://codex.wordpress.org/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
|
|
|
|
if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
2012-03-29 15:55:33 +00:00
|
|
|
|
2017-04-02 22:19:17 +00:00
|
|
|
<p><?php
|
2017-04-02 22:38:36 +00:00
|
|
|
printf(
|
|
|
|
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(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
esc_url( admin_url( 'post-new.php' ) )
|
|
|
|
);
|
2017-04-02 22:19:17 +00:00
|
|
|
?></p>
|
2012-03-29 15:55:33 +00:00
|
|
|
|
2012-08-14 06:30:50 +00:00
|
|
|
<?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
|
|
|
|
get_search_form();
|
2012-03-29 15:55:33 +00:00
|
|
|
|
2015-11-11 21:59:40 +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
|
|
|
|
get_search_form();
|
2012-03-29 15:55:33 +00:00
|
|
|
|
2015-11-11 21:59:40 +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 -->
|