<?php
/* single.php 
 * Line 31 - right and left arrows added via CSS3 in style sheet
 */

get_header(); ?>
<div class="wrap">
    <div class="grids">
        <section class="grid-10">
            <section class="grid-7" id="content" role="main">   
                <?php if(have_posts()) : while(have_posts()) : the_post(); ?>       
                <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                <header class="postmetadata">
                        <?php _e( 'Posted By', 'tswplain' ); ?>: <?php the_author(); ?> 
                         <?php the_time( get_option('date_format') ) ?>: <?php $numComments = get_comments_number(); 
                        echo $numComments; ?>&nbsp;<?php _e( 'COMMENTS', 'tswplain' ); ?>
                        &nbsp;<?php edit_post_link(__('Edit', ' &#124; ', 'tswplain') ); ?>
                </header>
		    <article class="content">                        
                        <?php the_post_thumbnail(); ?>
                        <?php the_content(); ?>
                            <?php wp_link_pages(); ?><!-- for muti-page posts -->
                        <aside>
                            <p><?php the_tags(); ?></p>
                        </aside>
                        <?php comments_template(); ?>

                    </article>
                            <p class="navigation">  
                                <?php previous_post_link(' %link') ?> | <?php next_post_link(' %link ') ?>
                            </p> 
                                <div id="commentform" class="comment-form">
                                    <?php comment_form(); ?>
                                </div>
                <?php endwhile; endif; ?>                                                 
            </section>
                <section class="grid-3">
                    <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
                    <article id="primary-sidebar"><?php dynamic_sidebar( 'sidebar-1' ); ?></article>
                    <?php endif; ?>
                </section>
        </section>
    </div><!-- ends main -->
</div><!-- ends grids -->
<?php get_footer(); ?>