angelovcom.net

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

content-none.php (1752B)


      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 WordPress
      8  * @subpackage Twenty_Twenty_One
      9  * @since Twenty Twenty-One 1.0
     10  */
     11 
     12 ?>
     13 
     14 <section class="no-results not-found">
     15 	<header class="page-header alignwide">
     16 		<?php if ( is_search() ) : ?>
     17 
     18 			<h1 class="page-title">
     19 				<?php
     20 				printf(
     21 					/* translators: %s: Search term. */
     22 					esc_html__( 'Results for "%s"', 'twentytwentyone' ),
     23 					'<span class="page-description search-term">' . esc_html( get_search_query() ) . '</span>'
     24 				);
     25 				?>
     26 			</h1>
     27 
     28 		<?php else : ?>
     29 
     30 			<h1 class="page-title"><?php esc_html_e( 'Nothing here', 'twentytwentyone' ); ?></h1>
     31 
     32 		<?php endif; ?>
     33 	</header><!-- .page-header -->
     34 
     35 	<div class="page-content default-max-width">
     36 
     37 		<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
     38 
     39 			<?php
     40 			printf(
     41 				'<p>' . wp_kses(
     42 					/* translators: %s: Link to WP admin new post page. */
     43 					__( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwentyone' ),
     44 					array(
     45 						'a' => array(
     46 							'href' => array(),
     47 						),
     48 					)
     49 				) . '</p>',
     50 				esc_url( admin_url( 'post-new.php' ) )
     51 			);
     52 			?>
     53 
     54 		<?php elseif ( is_search() ) : ?>
     55 
     56 			<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentytwentyone' ); ?></p>
     57 			<?php get_search_form(); ?>
     58 
     59 		<?php else : ?>
     60 
     61 			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'twentytwentyone' ); ?></p>
     62 			<?php get_search_form(); ?>
     63 
     64 		<?php endif; ?>
     65 	</div><!-- .page-content -->
     66 </section><!-- .no-results -->