forked from weDevsOfficial/dokani
-
Notifications
You must be signed in to change notification settings - Fork 0
/
no-results.php
78 lines (64 loc) · 1.75 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* The template part for displaying a message that posts cannot be found.
*
* @package dokani
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<div class="no-results not-found">
<div class="inside-article">
<?php
/**
* dokani_before_content hook.
*
* @since 1.0.0
*
* @hooked dokani_featured_page_header_inside_single - 10
*/
do_action( 'dokani_before_content' );
?>
<header class="entry-header">
<h1 class="entry-title"><?php esc_html_e( 'Nothing Found', 'dokani' ); ?></h1>
</header><!-- .entry-header -->
<?php
/**
* dokani_after_entry_header hook.
*
* @since 1.0.0
*
* @hooked dokani_post_image - 10
*/
do_action( 'dokani_after_entry_header' );
?>
<div class="entry-content">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p>
<?php
printf(
/* translators: 1: Admin URL */
wp_kses_post( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'dokani' ) ),
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 some different keywords.', 'dokani' ); // WPCS: XSS OK. ?></p>
<?php get_search_form(); ?>
<?php else : ?>
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'dokani' ); // WPCS: XSS OK. ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div><!-- .entry-content -->
<?php
/**
* dokani_after_content hook.
*
* @since 1.0.0
*/
do_action( 'dokani_after_content' );
?>
</div><!-- .inside-article -->
</div><!-- .no-results -->