64 lines
1.4 KiB
PHP
64 lines
1.4 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* The template for displaying a "No posts found" message.
|
||
|
*
|
||
|
* @package OceanWP WordPress theme
|
||
|
*/
|
||
|
|
||
|
?>
|
||
|
|
||
|
<div class="page-content">
|
||
|
|
||
|
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) { ?>
|
||
|
|
||
|
<p>
|
||
|
<?php
|
||
|
/* translators: 1: Admin URL 2: </a> */
|
||
|
echo sprintf( esc_html__( 'Ready to publish your first post? %1$sGet started here%2$s.', 'oceanwp' ), '<a href="' . esc_url( admin_url( 'post-new.php' ) ) . '" target="_blank">', '</a>' );
|
||
|
?>
|
||
|
</p>
|
||
|
|
||
|
<?php } elseif ( is_search() ) { ?>
|
||
|
|
||
|
<p>
|
||
|
<?php
|
||
|
esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with different keywords.', 'oceanwp' );
|
||
|
?>
|
||
|
</p>
|
||
|
|
||
|
<?php } elseif ( is_category() ) { ?>
|
||
|
|
||
|
<p>
|
||
|
<?php
|
||
|
esc_html_e( 'There aren\'t any posts currently published in this category.', 'oceanwp' );
|
||
|
?>
|
||
|
</p>
|
||
|
|
||
|
<?php } elseif ( is_tax() ) { ?>
|
||
|
|
||
|
<p>
|
||
|
<?php
|
||
|
esc_html_e( 'There aren\'t any posts currently published under this taxonomy.', 'oceanwp' );
|
||
|
?>
|
||
|
</p>
|
||
|
|
||
|
<?php } elseif ( is_tag() ) { ?>
|
||
|
|
||
|
<p>
|
||
|
<?php
|
||
|
esc_html_e( 'There aren\'t any posts currently published under this tag.', 'oceanwp' );
|
||
|
?>
|
||
|
</p>
|
||
|
|
||
|
<?php } else { ?>
|
||
|
|
||
|
<p>
|
||
|
<?php
|
||
|
esc_html_e( 'It seems we can’t find what you’re looking for.', 'oceanwp' );
|
||
|
?>
|
||
|
</p>
|
||
|
|
||
|
<?php } ?>
|
||
|
|
||
|
</div><!-- .page-content -->
|