forked from bryanveloso/chaoticsoul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
image.php
53 lines (44 loc) · 2.76 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
<?php get_header(); ?>
<div id="content" class="widecolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="navigation">
<div class="alignleft"> </div>
<div class="alignright"> </div>
</div>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'chaoticsoul'), get_the_title()); ?>"><?php the_title(); ?></a></h2>
<div class="entrytext">
<p class="attachment"><?php echo wp_get_attachment_image( $post->ID, 'full' ); ?></p>
<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
<?php the_content('<p class="serif">'.__('Read the rest of this entry »', 'chaoticsoul').'</p>'); ?>
<?php link_pages('<p><strong>'.__('Pages:', 'chaoticsoul').'</strong> ', '</p>', 'number'); ?>
<p class="postmetadata alt">
<small>
<?php
printf(__('This entry was posted on %s at %s. ', 'chaoticsoul'), get_the_time(get_option('date_format')), get_the_time(get_option('time_format')));
printf(__('You can follow any responses to this entry through the %s feed. ', 'chaoticsoul'), '<a href="'.get_post_comments_feed_link().'">RSS 2.0</a>');
if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open
printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site. ', 'chaoticsoul'), get_trackback_url(true));
} elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open
printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site. ', 'chaoticsoul'), get_trackback_url(true));
} elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not
_e('You can skip to the end and leave a response. Pinging is currently not allowed. ', 'chaoticsoul');
} elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open
_e('Both comments and pings are currently closed. ', 'chaoticsoul');
}
edit_post_link(__('Edit this entry.', 'chaoticsoul'),'','');
?>
</small>
</p>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no attachments matched your criteria.', 'chaoticsoul'); ?></p>
<?php endif; ?>
</div>
<?php get_footer(); ?>