This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
image.php
111 lines (53 loc) · 2.64 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php get_header(); ?>
<!-- image.php -->
<div id="wrapper">
<div id="main_wrapper" class="clearfix">
<div id="page_wrapper">
<div id="content" class="clearfix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2 class="post_title"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <?php the_title(); ?></h2>
<p><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
<?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?>
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
<p class="postmetadata" style="clear: left;">
This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
and is filed under <?php the_category(', ') ?>.
<?php the_taxonomies(); ?>
You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php } edit_post_link('Edit this entry.','',''); ?>
</p>
<ul class="image_link">
<li class="alignright">
<h4>Next Image »</h4>
<?php next_image_link() ?>
</li>
<li class="alignleft">
<h4>« Previous Image</h4>
<?php previous_image_link() ?>
</li>
</ul>
</div><!-- /post -->
<?php endwhile; else: ?>
<div class="post">
<p>Sorry, no attachments matched your criteria.</p>
</div><!-- /post -->
<?php endif; ?>
</div><!-- /content -->
</div><!-- /page_wrapper -->
</div><!-- /main_wrapper -->
</div><!-- /wrapper -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>