<?php // Visual Design Copyright (C) 2010 pixelthemestudio.ca - All Rights Reserved. license GPL/GNU <http://www.gnu.org/licenses/gpl-3.0.html> ?> <div id="main-ir"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2 class="entry-title"><?php the_title(); ?></h2> <div class="entry-meta"> <?php pts_posted_on(); ?><?php edit_post_link( __( 'Edit', 'pts' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-meta --> <div class="entry-content clearfix"> <?php the_post_thumbnail( 'single-post-thumbnail' ); ?> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'pts' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <div class="clearfix"> <a href="javascript:javascript:history.go(-1)" class="back">Return to Previous Page</a> </div> <div class="entry-utility"> <?php if ( count( get_the_category() ) ) : ?> <span class="cat-links"> <?php printf( __( '<span class="%1$s">Posted in: </span> %2$s', 'pts' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> </span> <?php endif; ?> <?php $tags_list = get_the_tag_list( '', ', ' ); if ( $tags_list ): ?>
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'pts' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- #post-0 --> <?php endif; ?> <?php // Start the Loop. ?> <?php while ( have_posts() ) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'pts' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> <div class="entry-meta"> <?php pts_posted_on(); ?> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'pts' ), __( '1 Comment', 'pts' ), __( '% Comments', 'pts' ) ); ?></span> </div><!-- .entry-meta --> <?php if ( is_search() ) : // Only display excerpts for search. ?> <div class="entry-summary"> <?php the_excerpt( __( 'Continue Reading', 'pts' ) ); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_post_thumbnail(); ?> <?php the_content( __( 'Continue Reading', 'pts' ) ); ?>