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