Tan-007 /
DesignFly
| 1 | <?php |
||||||
| 2 | /** |
||||||
| 3 | * Template part for displaying posts |
||||||
| 4 | * |
||||||
| 5 | * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
||||||
| 6 | * |
||||||
| 7 | * @package DesignFly |
||||||
| 8 | */ |
||||||
| 9 | |||||||
| 10 | ?> |
||||||
| 11 | |||||||
| 12 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
The function
the_ID 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...
|
|||||||
| 13 | <header class="entry-header"> |
||||||
| 14 | <?php |
||||||
| 15 | if ( is_singular() ) : |
||||||
|
0 ignored issues
–
show
The function
is_singular 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...
|
|||||||
| 16 | the_title( '<h1 class="entry-title">', '</h1>' ); |
||||||
|
0 ignored issues
–
show
The function
the_title 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...
|
|||||||
| 17 | else : |
||||||
| 18 | the_title( '<h2 class="entry-title"><a class="entry-title" href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); |
||||||
|
0 ignored issues
–
show
The function
get_permalink 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...
|
|||||||
| 19 | endif; |
||||||
| 20 | ?> |
||||||
| 21 | <div class="entry-meta"> |
||||||
| 22 | <?php |
||||||
| 23 | designfly_posted_by(); |
||||||
| 24 | designfly_posted_on(); |
||||||
| 25 | ?> |
||||||
| 26 | |||||||
| 27 | <span class="comments"><?php echo get_comments_number(); ?> Comment(s) </span> |
||||||
|
0 ignored issues
–
show
The function
get_comments_number 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...
|
|||||||
| 28 | </div><!-- .entry-meta --> |
||||||
| 29 | <hr class="bar"/> |
||||||
| 30 | </header><!-- .entry-header --> |
||||||
| 31 | |||||||
| 32 | <div class="entry-content"> |
||||||
| 33 | <?php |
||||||
| 34 | if ( is_singular() ) : |
||||||
| 35 | the_content( sprintf( |
||||||
|
0 ignored issues
–
show
The function
the_content 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...
|
|||||||
| 36 | 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...
|
|||||||
| 37 | /* translators: %s: Name of current post. Only visible to screen readers */ |
||||||
| 38 | __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', '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...
|
|||||||
| 39 | array( |
||||||
| 40 | 'span' => array( |
||||||
| 41 | 'class' => array(), |
||||||
| 42 | ), |
||||||
| 43 | ) |
||||||
| 44 | ), |
||||||
| 45 | get_the_title() |
||||||
|
0 ignored issues
–
show
The function
get_the_title 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...
|
|||||||
| 46 | ) ); |
||||||
| 47 | |||||||
| 48 | wp_link_pages( array( |
||||||
|
0 ignored issues
–
show
The function
wp_link_pages 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...
|
|||||||
| 49 | 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'designfly' ), |
||||||
|
0 ignored issues
–
show
The function
esc_html__ 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...
|
|||||||
| 50 | 'after' => '</div>', |
||||||
| 51 | ) ); |
||||||
| 52 | else : |
||||||
| 53 | the_excerpt(); |
||||||
|
0 ignored issues
–
show
The function
the_excerpt 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...
|
|||||||
| 54 | endif; |
||||||
| 55 | ?> |
||||||
| 56 | </div><!-- .entry-content --> |
||||||
| 57 | |||||||
| 58 | <footer class="entry-footer"> |
||||||
| 59 | <?php designfly_entry_footer(); ?> |
||||||
| 60 | </footer><!-- .entry-footer --> |
||||||
| 61 | </article><!-- #post-<?php the_ID(); ?> --> |
||||||
| 62 |