Current File : /home/kelaby89/muzza.fit/wp-content/themes/deadlift/templates/components/post/content-none.php |
<?php
/**
* Template part for displaying the content when no post is found
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Deadlift
* @version 1.8.2
*/
?>
<div class="no-results not-found">
<div class="entry-no-result wrap">
<?php
if ( is_home() && current_user_can( 'publish_posts' ) ) :
?>
<p>
<?php
printf(
wp_kses_post(
/* translators: %s: link to the new post admin page URL */
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'deadlift' )
),
esc_url( admin_url( 'post-new.php' ) )
);
?>
</p>
<?php else : ?>
<p><?php esc_html_e( 'Ouch. It seems we can’t find what you’re looking for.', 'deadlift' ); ?></p>
<?php
/**
* The "no result" end hook
* Allows to add a search form or anything else
*
* @since 1.0.0
*/
do_action( 'deadlift_no_result_end' );
?>
<?php endif; ?>
</div><!-- .entry-container -->
</div><!-- #post-## -->