~canonical-sysadmins/wordpress/5.1

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyseventeen/template-parts/post/content-none.php

  • Committer: Barry Price
  • Date: 2019-02-22 03:51:26 UTC
  • mfrom: (1.2.12 upstream)
  • Revision ID: barry.price@canonical.com-20190222035126-o28k38qs8jfyjsxt
Merge WP5.1 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/**
3
3
 * Template part for displaying a message that posts cannot be found
4
4
 *
5
 
 * @link https://codex.wordpress.org/Template_Hierarchy
 
5
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
6
6
 *
7
7
 * @package WordPress
8
8
 * @subpackage Twenty_Seventeen
18
18
        </header>
19
19
        <div class="page-content">
20
20
                <?php
21
 
                if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
 
21
                if ( is_home() && current_user_can( 'publish_posts' ) ) :
 
22
                        ?>
22
23
 
23
24
                        <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
 
28
29
                        <?php
29
30
                                get_search_form();
30
31
 
31
 
                endif; ?>
 
32
                endif;
 
33
                ?>
32
34
        </div><!-- .page-content -->
33
35
</section><!-- .no-results -->