SilentComics /
Strip
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() ) : |
||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 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">←</span> <span class="text-nav">Previous panel</span>', 'strip' ) ); ?></div> |
||
| 45 | <div class="next"><?php next_image_link( false, __( '<span class="meta-nav">→</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() ) : ?> |
||
|
0 ignored issues
–
show
|
|||
| 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 endwhile; // end of the loop. ?> |
||
| 66 | |||
| 67 | </div><!-- #content --> |
||
| 68 | </div><!-- #primary --> |
||
| 69 | |||
| 70 | <?php get_footer( 'lite' ); ?> |
||
| 71 |