balmet.com

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

content-none.php (1260B)


      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 appside
      8  */
      9 
     10 ?>
     11 
     12 <section class="no-results not-found">
     13 	<header class="page-header">
     14 		<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'aapside' ); ?></h1>
     15 	</header><!-- .page-header -->
     16 
     17 	<div class="page-content">
     18 		<?php
     19 		if ( is_home() && current_user_can( 'publish_posts' ) ) :
     20 
     21 			printf(
     22 				'<p>' . wp_kses(
     23 					/* translators: 1: link to WP admin new post page. */
     24 					__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'aapside' ),
     25 					array(
     26 						'a' => array(
     27 							'href' => array(),
     28 						),
     29 					)
     30 				) . '</p>',
     31 				esc_url( admin_url( 'post-new.php' ) )
     32 			);
     33 
     34 		elseif ( is_search() ) :
     35 			?>
     36 
     37 			<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'aapside' ); ?></p>
     38 			<?php
     39 			get_search_form();
     40 
     41 		else :
     42 			?>
     43 
     44 			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'aapside' ); ?></p>
     45 			<?php
     46 			get_search_form();
     47 
     48 		endif;
     49 		?>
     50 	</div><!-- .page-content -->
     51 </section><!-- .no-results -->