-
Notifications
You must be signed in to change notification settings - Fork 1
/
attachment.php
55 lines (33 loc) · 1.34 KB
/
attachment.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
<?php
/**
* @package WordPress
* @subpackage PulsePress
*/
?>
<?php get_header(); ?>
<div class="sleeve_main">
<div id="main">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts( ) ) : the_post(); ?>
<div <?php post_class( 'post' ); ?> id="post-<?php the_ID( ); ?>">
<h2><a class="permalink" href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <?php the_title(); ?></h2>
<div class="entry">
<?php edit_post_link( 'Edit this entry.', '<p>', '</p>' ); ?>
<div class="attachment-image">
<?php echo wp_get_attachment_image( $post->ID, array($content_width - 8, 700)); ?>
<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
<div class="image-description"><?php if ( !empty($post->post_content) ) the_content(); ?></div>
</div>
<div class="navigation attachment">
<div class="alignleft"><?php previous_image_link(); ?></div>
<div class="alignright"><?php next_image_link(); ?></div>
</div>
<div class="bottom_of_entry"> </div>
<?php comments_template(); ?>
</div> <!-- // entry -->
</div> <!-- post-<?php the_ID( ); ?> -->
<?php endwhile; ?>
<?php endif; ?>
</div> <!-- // main -->
</div>
<?php get_footer(); ?>