Issues (631)

image.php (17 issues)

Labels
Severity
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
The function get_header 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 ignore-call  annotation

9
/** @scrutinizer ignore-call */ 
10
get_header( 'lite' );
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 ignore-call  annotation

16
	while ( /** @scrutinizer ignore-call */ have_posts() ) :
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 ignore-call  annotation

17
		/** @scrutinizer ignore-call */ 
18
  the_post(); ?>
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 ignore-call  annotation

19
			<article id="post-<?php /** @scrutinizer ignore-call */ the_ID(); ?>">
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 2.5.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 ignore-call  annotation

32
					$image_size = /** @scrutinizer ignore-call */ apply_filters( 'strip_attachment_size', 'full' );
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 ignore-call  annotation

34
					echo wp_get_attachment_image( /** @scrutinizer ignore-call */ get_the_ID(), $image_size );
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 ignore-call  annotation

34
					echo /** @scrutinizer ignore-call */ wp_get_attachment_image( get_the_ID(), $image_size );
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">&larr;</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 ignore-call  annotation

43
				<div class="previous"><?php previous_image_link( false, /** @scrutinizer ignore-call */ __( '<span class="meta-nav">&larr;</span> <span class="text-nav">Previous panel</span>', 'strip' ) ); ?></div>
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 ignore-call  annotation

43
				<div class="previous"><?php /** @scrutinizer ignore-call */ previous_image_link( false, __( '<span class="meta-nav">&larr;</span> <span class="text-nav">Previous panel</span>', 'strip' ) ); ?></div>
Loading history...
44
				<div class="next"><?php next_image_link( false, __( '<span class="meta-nav">&rarr;</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 ignore-call  annotation

44
				<div class="next"><?php /** @scrutinizer ignore-call */ next_image_link( false, __( '<span class="meta-nav">&rarr;</span> <span class="text-nav">Next panel</span>', 'strip' ) ); ?></div>
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 ignore-call  annotation

48
						/** @scrutinizer ignore-call */ 
49
      esc_url( get_permalink( $post->post_parent ) ),
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 ignore-call  annotation

48
						esc_url( /** @scrutinizer ignore-call */ get_permalink( $post->post_parent ) ),
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 ignore-call  annotation

49
						/** @scrutinizer ignore-call */ 
50
      esc_html( get_the_title( $post->post_parent ) )
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 ignore-call  annotation

49
						esc_html( /** @scrutinizer ignore-call */ get_the_title( $post->post_parent ) )
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 ignore-call  annotation

54
		<?php if ( /** @scrutinizer ignore-call */ has_excerpt() ) : ?>
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 ignore-call  annotation

56
		<?php /** @scrutinizer ignore-call */ the_excerpt(); ?>
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 ignore-call  annotation

69
<?php /** @scrutinizer ignore-call */ get_footer( 'lite' ); ?>
Loading history...
70