-
Notifications
You must be signed in to change notification settings - Fork 0
/
image.php
75 lines (63 loc) · 2.3 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
68
69
70
71
72
73
74
75
<?php
/**
* The template for displaying image attachments
*
* @package WordPress
* @subpackage Palmetto
* @since Palmetto 0.1
*/
get_header(); ?>
<div class="row">
<div class="large-8 columns" id="blog" itemscope itemtype ="http://schema.org/BlogPost">
<?php
// Start the loop.
while ( have_posts() ) : the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<nav id="image-navigation" class="navigation image-navigation">
<div class="nav-links">
<div class="nav-previous"><?php previous_image_link( false, __( 'Previous Image', 'foundation' ) ); ?></div>
<div class="nav-next"><?php next_image_link( false, __( 'Next Image', 'foundation' ) ); ?></div>
</div><!-- .nav-links -->
</nav><!-- .image-navigation -->
<?php the_title( '<h1>', '</h1>' ); ?>
<?php foundation_entry_meta(); ?>
<div class="entry-content">
<figure>
<?php
$image_size = apply_filters( 'foundation_attachment_size', 'large' );
echo wp_get_attachment_image( get_the_ID(), $image_size );
?>
<?php foundation_excerpt( 'entry-caption' ); ?>
</figure><!-- .entry-attachment -->
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'foundation' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'foundation' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
<?php
// Parent post navigation.
the_post_navigation( array(
'prev_text' => _x( '<span class="meta-nav">Published in: </span><span class="post-title">%title</span>', 'Parent post link', 'foundation' ),
) );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
// End the loop.
endwhile;
?>
</div><!-- .content-area -->
<div class="large-4 columns">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>