forked from eddiemachado-zz/bones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
image.php
executable file
·46 lines (31 loc) · 1.52 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
<?php get_header(); ?>
<div id="content" class="clearfix">
<div id="main" class="clearfix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
<header>
<h1 class="h2"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <?php the_title(); ?></h2>
</header>
<section class="post_content clearfix">
<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
<p class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></p>
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
</section>
<footer>
<nav class="prev-next-links">
<ul class="clearfix">
<li><?php previous_image_link() ?></li>
<li><?php next_image_link() ?></li>
</ul>
</nav>
</footer>
</article>
<?php endwhile; else: ?>
<div class="help">
<p>Sorry, no attachments matched your criteria.</p>
</div>
<?php endif; ?>
</div> <!-- end #main -->
<?php get_sidebar(); // sidebar 1 ?>
</div> <!-- end #content -->
<?php get_footer(); ?>