equal
deleted
inserted
replaced
1 <?php |
|
2 /** |
|
3 * The template part for displaying a message that posts cannot be found |
|
4 * |
|
5 * @package WordPress |
|
6 * @subpackage Twenty_Sixteen |
|
7 * @since Twenty Sixteen 1.0 |
|
8 */ |
|
9 ?> |
|
10 |
|
11 <section class="no-results not-found"> |
|
12 <header class="page-header"> |
|
13 <h1 class="page-title"><?php _e( 'Nothing Found', 'twentysixteen' ); ?></h1> |
|
14 </header><!-- .page-header --> |
|
15 |
|
16 <div class="page-content"> |
|
17 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> |
|
18 |
|
19 <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentysixteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> |
|
20 |
|
21 <?php elseif ( is_search() ) : ?> |
|
22 |
|
23 <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentysixteen' ); ?></p> |
|
24 <?php get_search_form(); ?> |
|
25 |
|
26 <?php else : ?> |
|
27 |
|
28 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentysixteen' ); ?></p> |
|
29 <?php get_search_form(); ?> |
|
30 |
|
31 <?php endif; ?> |
|
32 </div><!-- .page-content --> |
|
33 </section><!-- .no-results --> |
|