<?php
/*
Template Name: Blog
*/
?>

<?php get_header(); ?>

<div id="content">

<?php include(TEMPLATEPATH."/breadcrumb.php");?>

<?php sidebar_alt(); ?>

	<?php sp_content_div(); ?>
                        
					
		<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=".get_theme_mod('blog_cat')."&showposts=".get_theme_mod('blog_cat_num')."&paged=$page"); while ( have_posts() ) : the_post() ?>
            
			<div class="post">
            
                <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
                
                    <div class="postauthor">
                        <p>Posted by <?php the_author_posts_link(); ?> on <?php the_time('F j, Y'); ?> &middot; <a href="<?php the_permalink(); ?>#respond"><?php comments_number('Leave a Comment', '1 Comment', '% Comments'); ?></a>&nbsp;<?php edit_post_link('(Edit)', '', ''); ?></p>
                    </div>            
                
                <?php the_content(__('Read more', 'studiopress'));?><div class="clear"></div>
                                
                <div class="postmeta">
                    <p>Filed under <?php the_category(', ') ?> &middot; Tagged with <?php the_tags('') ?></p>
                </div>
            
            </div>
							
		<?php endwhile; ?>
			
		<p><?php posts_nav_link(); ?></p>
        
    </div>
            		    
<?php get_sidebar(); ?>
    	
</div>

<?php get_footer(); ?>