1 | <?php |
||||||||||
2 | /** |
||||||||||
3 | * Template part for displaying comics |
||||||||||
4 | * |
||||||||||
5 | * @package WordPress |
||||||||||
6 | * @subpackage Strip |
||||||||||
7 | */ |
||||||||||
8 | |||||||||||
9 | ?> |
||||||||||
10 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
||||||||||
0 ignored issues
–
show
Bug
introduced
by
![]() The function
post_class 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
![]() |
|||||||||||
11 | <div class="entry-wrap wrap clear"> |
||||||||||
12 | <?php if ( '' !== get_the_post_thumbnail() ) : ?> |
||||||||||
0 ignored issues
–
show
The function
get_the_post_thumbnail 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
![]() |
|||||||||||
13 | |||||||||||
14 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail"> |
||||||||||
0 ignored issues
–
show
The function
the_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
![]() The function
the_title_attribute 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
![]() The function
esc_attr 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
![]() 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
![]() |
|||||||||||
15 | <?php the_post_thumbnail( 'strip-featured-image' ); ?> |
||||||||||
0 ignored issues
–
show
The function
the_post_thumbnail 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
![]() |
|||||||||||
16 | </a> |
||||||||||
17 | <?php endif; ?> |
||||||||||
18 | |||||||||||
19 | <footer class="entry-meta"> |
||||||||||
20 | <a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a> |
||||||||||
0 ignored issues
–
show
The function
get_the_date 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
![]() |
|||||||||||
21 | </footer><!-- .entry-meta --> |
||||||||||
22 | |||||||||||
23 | <header class="entry-header"> |
||||||||||
24 | |||||||||||
25 | <?php // calls each series by get_the_terms, custom taxonomy "story" instead of WP native category. |
||||||||||
26 | |||||||||||
27 | $terms = get_the_terms( $post->ID, 'story' ); |
||||||||||
0 ignored issues
–
show
The function
get_the_terms 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
![]() |
|||||||||||
28 | |||||||||||
29 | foreach ( $terms as $term ) { |
||||||||||
30 | // The $term is an object, so we don't need to specify the $taxonomy. |
||||||||||
31 | $term_link = get_term_link( $term ); |
||||||||||
0 ignored issues
–
show
The function
get_term_link 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
![]() |
|||||||||||
32 | // If there was an error, continue to the next term. |
||||||||||
33 | if ( is_wp_error( $term_link ) ) { |
||||||||||
0 ignored issues
–
show
The function
is_wp_error 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
![]() |
|||||||||||
34 | continue; |
||||||||||
35 | } |
||||||||||
36 | |||||||||||
37 | // We successfully got a link. Print it out. ?> |
||||||||||
38 | <nav class="categories-links"> |
||||||||||
39 | <?php printf( '<a href="%s" class="categories-links">%s</a>', |
||||||||||
40 | esc_url( $term_link ) , |
||||||||||
0 ignored issues
–
show
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
![]() |
|||||||||||
41 | esc_html( $term->name ) |
||||||||||
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
![]() |
|||||||||||
42 | ); |
||||||||||
43 | } ?> |
||||||||||
44 | </nav> |
||||||||||
45 | |||||||||||
46 | <?php edit_post_link( __( 'Edit Comic', 'strip' ), '<span class="edit-link">', '</span>' ); |
||||||||||
0 ignored issues
–
show
The function
edit_post_link 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
![]() |
|||||||||||
47 | |||||||||||
48 | if ( ! is_single() ) : |
||||||||||
0 ignored issues
–
show
The function
is_single 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
![]() |
|||||||||||
49 | the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></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
![]() 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
![]() |
|||||||||||
50 | else : |
||||||||||
51 | the_title( '<h1 class="entry-title">', '</h1>' ); |
||||||||||
52 | endif; ?> |
||||||||||
53 | |||||||||||
54 | </header><!-- .entry-header --> |
||||||||||
55 | |||||||||||
56 | <?php if ( is_search() ) : // Only display Excerpts for Search — implement search for custom taxonomies. ?> |
||||||||||
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
![]() |
|||||||||||
57 | |||||||||||
58 | <div class="entry-summary"> |
||||||||||
59 | |||||||||||
60 | <?php 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
![]() |
|||||||||||
61 | </div><!-- .entry-summary --> |
||||||||||
62 | |||||||||||
63 | <?php else : ?> |
||||||||||
64 | |||||||||||
65 | <div class="entry-comic"> |
||||||||||
66 | <?php the_content( __( 'Continue watching <span class="meta-nav">→</span>', 'strip' ) ); ?> |
||||||||||
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
![]() |
|||||||||||
67 | |||||||||||
68 | <?php endif; ?> |
||||||||||
69 | </div><!-- .entry-content --> |
||||||||||
70 | </div><!-- .entry-wrap --> |
||||||||||
71 | </article> |
||||||||||
72 |