echo wp_get_attachment_image($post->ID, array($attachment_size, 9999)); // filterable image width with, essentially, no limit for image height. ?> </a> </p> <?php } else { ?> <p class="attachment center"> <a href="<?php echo wp_get_attachment_url(); ?> " title="<?php echo esc_attr(strip_tags(get_the_title())); ?> " rel="attachment"> <?php echo basename(get_permalink()); ?> </a> </p> <?php } echo theme_get_content(); if (wp_attachment_is_image()) { $metadata = wp_get_attachment_metadata(); echo '<p class="center">' . sprintf(__('Full size is %s pixels', THEME_NS), sprintf('<a href="%1$s" title="%2$s">%3$s × %4$s</a>', wp_get_attachment_url(), esc_attr(__('Link to full-size image', THEME_NS)), $metadata['width'], $metadata['height'])) . '</p>'; } /* Display navigation to next/previous pages when applicable */ theme_post_navigation(array('wrap' => false, 'prev_link' => theme_get_next_image_link(false), 'next_link' => theme_get_previous_image_link(false))); theme_post_wrapper(array('id' => theme_get_post_id(), 'class' => theme_get_post_class(), 'title' => '<a href="' . get_permalink($post->ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '</a>', 'heading' => theme_get_option('theme_' . (is_home() ? 'posts' : 'single') . '_article_title_tag'), 'before' => theme_get_metadata_icons('date,author,edit', 'header'), 'content' => theme_ob_get_clean()));
get_header(); ?> <?php get_sidebar('top'); ?> <?php if (have_posts()) { /* Display navigation to next/previous posts when applicable */ /*if (theme_get_option('theme_top_single_navigation')) { theme_post_navigation( array( 'prev_link' => theme_get_previous_post_link('« %link'), 'next_link' => theme_get_next_post_link('%link »') ) ); }*/ while (have_posts()) { the_post(); get_template_part('content', 'single'); } /* Display navigation to next/previous posts when applicable */ if (theme_get_option('theme_bottom_single_navigation')) { theme_post_navigation(array('prev_link' => theme_get_previous_post_link('« %link'), 'next_link' => theme_get_next_post_link('%link »'))); } } else { theme_404_content(); } ?> <?php get_sidebar('bottom'); get_footer();