-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathimage.php
executable file
·67 lines (51 loc) · 1.98 KB
/
image.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* The template for displaying image attachments.
*
* @since vantage 1.0
*
* @license GPL 2.0
*/
get_header();
?>
<div id="primary" class="content-area image-attachment">
<div id="content" class="site-content" role="main">
<?php while ( have_posts() ) {
the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php if ( siteorigin_setting( 'blog_post_metadata' ) ) { ?>
<div class="entry-meta">
<?php echo vantage_posted_on(); ?>
</div><!-- .entry-meta -->
<?php } ?>
<nav id="image-navigation" class="site-navigation">
<span class="previous-image"><?php previous_image_link( false, __( '← Previous', 'vantage' ) ); ?></span>
<span class="next-image"><?php next_image_link( false, __( 'Next →', 'vantage' ) ); ?></span>
</nav><!-- #image-navigation -->
</header><!-- .entry-header -->
<div class="entry-content">
<div class="entry-attachment">
<div class="attachment">
<?php $next_attachment_url = vantage_next_attachment_url(); ?>
<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment">
<?php
$attachment_size = apply_filters( 'vantage_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
echo wp_get_attachment_image( $post->ID, $attachment_size );
?>
</a>
</div><!-- .attachment -->
<?php if ( ! empty( $post->post_excerpt ) ) { ?>
<div class="entry-caption">
<?php the_excerpt(); ?>
</div><!-- .entry-caption -->
<?php } ?>
</div><!-- .entry-attachment -->
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php comments_template(); ?>
<?php } // end of the loop.?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area .image-attachment -->
<?php get_footer(); ?>