-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathno-results.php
30 lines (25 loc) · 992 Bytes
/
no-results.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* The template for displaying the No Results message.
*
* @package Bucket Lite
* @since Bucket Lite 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( is_home() && current_user_can( 'publish_posts' ) ) { ?>
<p><?php
/* translators: 1: New post link */
printf( wp_kses_post( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'bucket-lite' ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
<?php } elseif ( is_search() ) { ?>
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with different keywords.', 'bucket-lite' ); ?></p>
<div class="search-form">
<?php get_search_form(); ?>
</div>
<?php } else { ?>
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'bucket-lite' ); ?></p>
<div class="search-form search-form--404">
<?php get_search_form(); ?>
</div>
<?php }