<?php
/**
 * category.php
 * @tswplain
 */
 
get_header(); ?>
<div class="wrap">
    <div class="grids">
        <section class="grid-10">
            <article class="grid-7" role="main">          
                <h4><?php printf( __( 'Category: %s', 'tswplain' ), single_cat_title( '', false ) ); ?></h4>
                <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                        <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
                            <?php the_content(); ?>
                            <p class="postmetadata">
                            <?php comments_popup_link(); ?>  
                            <?php edit_post_link(); ?>                 
                            </p>                    
                    </div>
                <?php endwhile; else: ?>
                <p><?php __( 'No Match Found', 'tswplain' ); ?></p>
                <?php endif; ?>
                                <div class="navigation"><p>
                                <?php posts_nav_link(' '); ?></p>
                                </div>
            </article>
                <article class="grid-3"><?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
                    <div id="primary-sidebar">	
                        <?php dynamic_sidebar( 'sidebar-1' ); ?>
                    </div>
                        <?php endif; ?>
                </article>
        </section><!-- ends main -->
    </div><!-- ends main -->
</div><!-- ends grids -->
<?php get_footer(); ?>