| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The template part for displaying a message that posts cannot be found. |
|---|
| 4 | * |
|---|
| 5 | * Learn more: http://codex.wordpress.org/Template_Hierarchy |
|---|
| 6 | * |
|---|
| 7 | * @package Sydney |
|---|
| 8 | */ |
|---|
| 9 | ?> |
|---|
| 10 | |
|---|
| 11 | <section class="no-results not-found"> |
|---|
| 12 | <header class="page-header"> |
|---|
| 13 | <h1 class="page-title"><?php _e( 'Nothing Found', 'sydney' ); ?></h1> |
|---|
| 14 | </header><!-- .page-header --> |
|---|
| 15 | |
|---|
| 16 | <div class="page-content"> |
|---|
| 17 | <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> |
|---|
| 18 | |
|---|
| 19 | <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'sydney' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> |
|---|
| 20 | |
|---|
| 21 | <?php elseif ( is_search() ) : ?> |
|---|
| 22 | |
|---|
| 23 | <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'sydney' ); ?></p> |
|---|
| 24 | <?php get_search_form(); ?> |
|---|
| 25 | |
|---|
| 26 | <?php else : ?> |
|---|
| 27 | |
|---|
| 28 | <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'sydney' ); ?></p> |
|---|
| 29 | <?php get_search_form(); ?> |
|---|
| 30 | |
|---|
| 31 | <?php endif; ?> |
|---|
| 32 | </div><!-- .page-content --> |
|---|
| 33 | </section><!-- .no-results --> |
|---|
Note: See
TracBrowser
for help on using the repository browser.