SilentComics /
Strip
| 1 | <?php |
||||||||
| 2 | /** |
||||||||
| 3 | * The template for displaying image attachments |
||||||||
| 4 | * |
||||||||
| 5 | * @package WordPress |
||||||||
| 6 | * @subpackage Strip |
||||||||
| 7 | */ |
||||||||
| 8 | |||||||||
| 9 | get_header( 'lite' ); |
||||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||||
| 10 | ?> |
||||||||
| 11 | <div id="primary" class="content-area image-attachment"> |
||||||||
| 12 | <div id="content" class="site-content" role="main"> |
||||||||
| 13 | |||||||||
| 14 | <?php |
||||||||
| 15 | // Start the loop. |
||||||||
| 16 | while ( have_posts() ) : |
||||||||
|
0 ignored issues
–
show
The function
have_posts 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 | the_post(); ?> |
||||||||
|
0 ignored issues
–
show
The function
the_post 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...
|
|||||||||
| 18 | |||||||||
| 19 | <article id="post-<?php the_ID(); ?>"> |
||||||||
|
0 ignored issues
–
show
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...
|
|||||||||
| 20 | <div class="wrap"> |
||||||||
| 21 | |||||||||
| 22 | <div class="entry-attachment"> |
||||||||
| 23 | |||||||||
| 24 | <?php |
||||||||
| 25 | /** |
||||||||
| 26 | * Filter the default strip image attachment size. |
||||||||
| 27 | * |
||||||||
| 28 | * @since strip 1.0.0 |
||||||||
| 29 | * |
||||||||
| 30 | * @param string $image_size Image size. Default 'full'. |
||||||||
| 31 | */ |
||||||||
| 32 | $image_size = apply_filters( 'strip_attachment_size', 'full' ); |
||||||||
|
0 ignored issues
–
show
The function
apply_filters 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...
|
|||||||||
| 33 | |||||||||
| 34 | echo wp_get_attachment_image( get_the_ID(), $image_size ); |
||||||||
|
0 ignored issues
–
show
The function
get_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...
The function
wp_get_attachment_image 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 | |||||||||
| 38 | </div><!-- .entry-attachment --> |
||||||||
| 39 | |||||||||
| 40 | <?php // image navigation. ?> |
||||||||
| 41 | <nav role="navigation" id="image-navigation" class="image-navigation"> |
||||||||
| 42 | |||||||||
| 43 | <div class="previous"><?php previous_image_link( false, __( '<span class="meta-nav">←</span> <span class="text-nav">Previous panel</span>', 'strip' ) ); ?></div> |
||||||||
|
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...
The function
previous_image_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
Loading history...
|
|||||||||
| 44 | <div class="next"><?php next_image_link( false, __( '<span class="meta-nav">→</span> <span class="text-nav">Next panel</span>', 'strip' ) ); ?></div> |
||||||||
|
0 ignored issues
–
show
The function
next_image_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
Loading history...
|
|||||||||
| 45 | |||||||||
| 46 | <nav class="post-parent-title"> |
||||||||
| 47 | <?php printf( '<a href="%s" class="post-parent-title">%s</a>', |
||||||||
| 48 | esc_url( get_permalink( $post->post_parent ) ), |
||||||||
|
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
Loading history...
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...
|
|||||||||
| 49 | esc_html( get_the_title( $post->post_parent ) ) |
||||||||
|
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...
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...
|
|||||||||
| 50 | ); ?> |
||||||||
| 51 | </nav> |
||||||||
| 52 | </nav><!-- #image-navigation --> |
||||||||
| 53 | |||||||||
| 54 | <?php if ( has_excerpt() ) : ?> |
||||||||
|
0 ignored issues
–
show
The function
has_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...
|
|||||||||
| 55 | <div class="entry-caption"> |
||||||||
| 56 | <?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
Loading history...
|
|||||||||
| 57 | </div><!-- .entry-caption --> |
||||||||
| 58 | <?php endif; ?> |
||||||||
| 59 | |||||||||
| 60 | </div><!-- .entry-content --> |
||||||||
| 61 | </div><!-- .entry-wrap --> |
||||||||
| 62 | </article><!-- #post-## --> |
||||||||
| 63 | |||||||||
| 64 | <?php endwhile; // end of the loop. ?> |
||||||||
| 65 | |||||||||
| 66 | </div><!-- #content --> |
||||||||
| 67 | </div><!-- #primary --> |
||||||||
| 68 | |||||||||
| 69 | <?php get_footer( 'lite' ); ?> |
||||||||
|
0 ignored issues
–
show
The function
get_footer 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...
|
|||||||||
| 70 |