Completed
Push — master ( a4907d...9d5c33 )
by SILENT
02:28
created

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * The template for displaying image attachments
4
 *
5
 * @package WordPress
6
 * @subpackage Strip
7
 */
8
9
get_header( 'lite' );
10
$content_width = 1920;
11
?>
12
	<div id="primary" class="content-area image-attachment">
13
		<div id="content" class="site-content" role="main">
14
15
	<?php
16
	// Start the loop.
17
	while ( have_posts() ) :
18
		the_post(); ?>
19
20
			<article id="post-<?php the_ID(); ?>">
21
				<div class="wrap">
22
23
						<div class="entry-attachment">
24
25
<?php
26
					/**
27
					 * Filter the default strip image attachment size.
28
					 *
29
					 * @since strip 2.5.0
30
					 *
31
					 * @param string $image_size Image size. Default 'full'.
32
					 */
33
					$image_size = apply_filters( 'strip_attachment_size', 'full' );
34
35
					echo wp_get_attachment_image( get_the_ID(), $image_size );
36
37
					?>
38
39
			</div><!-- .entry-attachment -->
40
41
		<?php // image navigation. ?>
42
<nav role="navigation" id="image-navigation" class="image-navigation">
43
44
				<div class="previous"><?php previous_image_link( false, __( '<span class="meta-nav">&larr;</span> <span class="text-nav">Previous panel</span>', 'strip' ) ); ?></div>
45
				<div class="next"><?php next_image_link( false, __( '<span class="meta-nav">&rarr;</span> <span class="text-nav">Next panel</span>', 'strip' ) ); ?></div>
46
47
				<nav class="post-parent-title">
48
					<?php printf( '<a href="%s" class="post-parent-title">%s</a>',
49
						esc_url( get_permalink( $post->post_parent ) ),
50
						esc_html( get_the_title( $post->post_parent ) )
51
					); ?>
52
				</nav>
53
</nav><!-- #image-navigation --><!-- #image-navigation -->
54
55
		<?php if ( has_excerpt() ) : ?>
56
					<div class="entry-caption">
57
		<?php the_excerpt(); ?>
58
					</div><!-- .entry-caption -->
59
		<?php endif; ?>
60
61
					</div><!-- .entry-content -->
62
				</div><!-- .entry-wrap -->
63
			</article><!-- #post-## -->
64
65
			<?php
66
			// If comments are open or we have at least one comment, load up the comment template (disabled).
67
			// if ( comments_open() || '0' !== get_comments_number() ) {
0 ignored issues
show
Unused Code Comprehensibility introduced by
48% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
68
			// comments_template();
69
			// }
70
			?>
71
72
		<?php endwhile; // end of the loop. ?>
73
74
		</div><!-- #content -->
75
	</div><!-- #primary -->
76
77
<?php get_footer( 'lite' ); ?>
78