[44] | 1 | <?php /* Fusion/digitalnature */ ?>
|
---|
| 2 | <?php get_header(); ?>
|
---|
| 3 |
|
---|
| 4 | <!-- mid content -->
|
---|
| 5 | <div id="mid-content">
|
---|
| 6 | <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
---|
| 7 | <!-- post -->
|
---|
| 8 | <?php if (function_exists("post_class")) { ?>
|
---|
| 9 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
---|
| 10 | <?php } else { ?>
|
---|
| 11 | <div class="post" id="post-<?php the_ID(); ?>">
|
---|
| 12 | <?php } ?>
|
---|
| 13 | <div class="clearfix">
|
---|
| 14 | <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>
|
---|
| 15 | <p class="attachment-entry"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
|
---|
| 16 | <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?>
|
---|
| 17 | <?php the_content(__('Read the rest of this entry »', 'fusion')); ?></div>
|
---|
| 18 | </div>
|
---|
| 19 | </div>
|
---|
| 20 | <!-- /post -->
|
---|
| 21 |
|
---|
| 22 | <div class="navigation">
|
---|
| 23 | <div class="alignleft"><?php previous_image_link() ?></div>
|
---|
| 24 | <div class="alignright"><?php next_image_link() ?></div>
|
---|
| 25 | <div class="clear"></div>
|
---|
| 26 | </div>
|
---|
| 27 |
|
---|
| 28 | <p class="postmetadata alt">
|
---|
| 29 | <small>
|
---|
| 30 | <?php
|
---|
| 31 | printf(__('This entry was posted on %s and is filed under %s. You can follow any responses to this entry through %s.', 'fusion'), get_the_time(__('l, F jS, Y','fusion')), get_the_category_list(', '), '<a href="'.get_post_comments_feed_link($post->ID).'" title="RSS 2.0">RSS 2.0</a>'); ?>
|
---|
| 32 |
|
---|
| 33 | <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
|
---|
| 34 | // Both Comments and Pings are open
|
---|
| 35 | printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'fusion'), trackback_url('',false));
|
---|
| 36 |
|
---|
| 37 | } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
|
---|
| 38 | // Only Pings are Open
|
---|
| 39 | printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'fusion'), trackback_url('',false));
|
---|
| 40 |
|
---|
| 41 | } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
|
---|
| 42 | // Comments are open, Pings are not
|
---|
| 43 | _e('You can skip to the end and leave a response. Pinging is currently not allowed.','fusion');
|
---|
| 44 |
|
---|
| 45 | } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
|
---|
| 46 | // Neither Comments, nor Pings are open
|
---|
| 47 | _e('Both comments and pings are currently closed.','fusion');
|
---|
| 48 | } ?>
|
---|
| 49 | <?php edit_post_link(__('Edit this entry', 'fusion')); ?>
|
---|
| 50 | </small>
|
---|
| 51 | </p>
|
---|
| 52 | <?php comments_template(); ?>
|
---|
| 53 | <?php endwhile; else: ?>
|
---|
| 54 | <p><?php _e('Sorry, no attachments matched your criteria.','fusion'); ?></p>
|
---|
| 55 | <?php endif; ?>
|
---|
| 56 | </div>
|
---|
| 57 | <!-- mid content -->
|
---|
| 58 | </div>
|
---|
| 59 | <!-- /mid -->
|
---|
| 60 |
|
---|
| 61 | <?php get_sidebar(); ?>
|
---|
| 62 |
|
---|
| 63 | <?php get_footer(); ?>
|
---|