content-none.php (1323B)
1 <?php 2 /** 3 * Template part for displaying a message that posts cannot be found 4 * 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 6 * 7 * @package welbim 8 */ 9 10 ?> 11 12 <section class="no-results not-found ri-fat-not-found"> 13 14 <div class="page-content news-block-one sidebar"> 15 <?php 16 if ( is_home() && current_user_can( 'publish_posts' ) ) : 17 18 printf( 19 '<p>' . wp_kses( 20 /* translators: 1: link to WP admin new post page. */ 21 __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'welbim' ), 22 array( 23 'a' => array( 24 'href' => array(), 25 ), 26 ) 27 ) . '</p>', 28 esc_url( admin_url( 'post-new.php' ) ) 29 ); 30 31 elseif ( is_search() ) : 32 ?> 33 34 <p class="no-found-text"><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'welbim' ); ?></p> 35 <div class="nothing-found-search"> 36 <?php 37 get_search_form(); 38 ?> 39 </div> 40 <?php 41 else : 42 ?> 43 44 <p class="no-found-text"><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'welbim' ); ?></p> 45 <div class="nothing-found-search"> 46 <?php 47 get_search_form(); 48 ?> 49 </div> 50 <?php 51 endif; 52 ?> 53 </div><!-- .page-content --> 54 </section><!-- .no-results -->