<?php
/**
 * Template part for displaying a message when no content is found
 *
 * @package Paws_And_Care
 * @since 1.0.0
 */
?>

<section class="no-results not-found py-5">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-8 text-center">
                <header class="page-header mb-4">
                    <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'paws-and-care' ); ?></h1>
                </header>

                <div class="page-content">
                    <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
                        <p>
                            <?php
                            printf(
                                wp_kses(
                                    /* translators: %s: link to new post */
                                    __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'paws-and-care' ),
                                    array(
                                        'a' => array(
                                            'href' => array(),
                                        ),
                                    )
                                ),
                                esc_url( admin_url( 'post-new.php' ) )
                            );
                            ?>
                        </p>
                    <?php elseif ( is_search() ) : ?>
                        <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'paws-and-care' ); ?></p>
                        <?php get_search_form(); ?>
                    <?php else : ?>
                        <p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'paws-and-care' ); ?></p>
                        <?php get_search_form(); ?>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</section>

