71 lines
1.8 KiB
PHP
Executable File
71 lines
1.8 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Template part for displaying not found posts.
|
|
*
|
|
* @link https://codex.wordpress.org/Template_Hierarchy
|
|
*
|
|
* @package Bloghash
|
|
* @author Peregrine Themes
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
?>
|
|
|
|
<section class="no-results not-found">
|
|
|
|
<div class="page-content bloghash-entry">
|
|
|
|
<?php
|
|
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>.', 'bloghash' ),
|
|
array(
|
|
'a' => array(
|
|
'href' => array(),
|
|
),
|
|
)
|
|
) . '</p>',
|
|
esc_url( admin_url( 'post-new.php' ) )
|
|
);
|
|
|
|
elseif ( is_search() ) :
|
|
|
|
printf(
|
|
'<p>' . wp_kses( __( 'Sorry, no results were found. Please try again with different keywords.', 'bloghash' ), bloghash_get_allowed_html_tags() ) . '</p>'
|
|
);
|
|
get_search_form();
|
|
|
|
elseif ( is_category() ) :
|
|
|
|
printf(
|
|
'<p>' . wp_kses( __( 'There aren’t any posts currently published in this category.', 'bloghash' ), bloghash_get_allowed_html_tags() ) . '</p>'
|
|
);
|
|
|
|
elseif ( is_tax() ) :
|
|
|
|
printf(
|
|
'<p>' . wp_kses( __( 'There aren’t any posts currently published under this taxonomy.', 'bloghash' ), bloghash_get_allowed_html_tags() ) . '</p>'
|
|
);
|
|
|
|
elseif ( is_tag() ) :
|
|
|
|
printf(
|
|
'<p>' . wp_kses( __( 'There aren’t any posts currently published under this tag.', 'bloghash' ), bloghash_get_allowed_html_tags() ) . '</p>'
|
|
);
|
|
|
|
else :
|
|
|
|
printf(
|
|
'<p>' . wp_kses( __( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'bloghash' ), bloghash_get_allowed_html_tags() ) . '</p>'
|
|
);
|
|
get_search_form();
|
|
|
|
endif;
|
|
?>
|
|
|
|
</div><!-- .page-content -->
|
|
</section><!-- .no-results -->
|