-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent-none.php
17 lines (13 loc) · 1.02 KB
/
content-none.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<header class="page-header">
<h1 class="page-title"><?php echo wp_kses(__( '<span class="light">Nothing</span> Found', 'thesod' ), array('span' => array('class' => array()))); ?></h1>
</header>
<div class="page-content content-none">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( wp_kses(__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'thesod' ), 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.', 'thesod' ); ?></p>
<?php else : ?>
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'thesod' ); ?></p>
<?php endif; ?>
<?php add_filter( 'get_search_form', 'thesod_serch_form_nothing_found' ); get_search_form(); remove_filter( 'get_search_form', 'thesod_serch_form_nothing_found' ); ?>
</div><!-- .page-content -->