Tan-007 /
DesignFly
| 1 | <?php |
||||||||
| 2 | /** |
||||||||
| 3 | * Template part for displaying a message that posts cannot be found |
||||||||
| 4 | * |
||||||||
| 5 | * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
||||||||
| 6 | * |
||||||||
| 7 | * @package DesignFly |
||||||||
| 8 | */ |
||||||||
| 9 | |||||||||
| 10 | ?> |
||||||||
| 11 | |||||||||
| 12 | <section class="no-results not-found"> |
||||||||
| 13 | <header class="page-header"> |
||||||||
| 14 | <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'designfly' ); ?></h1> |
||||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||||
| 15 | </header><!-- .page-header --> |
||||||||
| 16 | |||||||||
| 17 | <div class="page-content"> |
||||||||
| 18 | <?php |
||||||||
| 19 | if ( is_home() && current_user_can( 'publish_posts' ) ) : |
||||||||
|
0 ignored issues
–
show
The function
current_user_can was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
The function
is_home was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||
| 20 | |||||||||
| 21 | printf( |
||||||||
| 22 | '<p>' . wp_kses( |
||||||||
|
0 ignored issues
–
show
The function
wp_kses was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||
| 23 | /* translators: 1: link to WP admin new post page. */ |
||||||||
| 24 | __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'designfly' ), |
||||||||
|
0 ignored issues
–
show
The function
__ was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||
| 25 | array( |
||||||||
| 26 | 'a' => array( |
||||||||
| 27 | 'href' => array(), |
||||||||
| 28 | ), |
||||||||
| 29 | ) |
||||||||
| 30 | ) . '</p>', |
||||||||
| 31 | esc_url( admin_url( 'post-new.php' ) ) |
||||||||
|
0 ignored issues
–
show
The function
admin_url was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
The function
esc_url was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||
| 32 | ); |
||||||||
| 33 | |||||||||
| 34 | elseif ( is_search() ) : |
||||||||
|
0 ignored issues
–
show
The function
is_search was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||
| 35 | ?> |
||||||||
| 36 | |||||||||
| 37 | <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'designfly' ); ?></p> |
||||||||
| 38 | <?php |
||||||||
| 39 | get_search_form(); |
||||||||
|
0 ignored issues
–
show
The function
get_search_form was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||||
| 40 | |||||||||
| 41 | else : |
||||||||
| 42 | ?> |
||||||||
| 43 | |||||||||
| 44 | <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'designfly' ); ?></p> |
||||||||
| 45 | <?php |
||||||||
| 46 | get_search_form(); |
||||||||
| 47 | |||||||||
| 48 | endif; |
||||||||
| 49 | ?> |
||||||||
| 50 | </div><!-- .page-content --> |
||||||||
| 51 | </section><!-- .no-results --> |
||||||||
| 52 |