<?php
/**
 * The main template file for display category page.
 *
 * Www.20script.ir
*/

get_header(); 

?>
		<br class="clear"/>
	
		<div id="content_wrapper">
			
			<div class="inner">
			
				<!-- Begin main content -->
				<div class="inner_wrapper">
			
				<div class="sidebar_content">
				
					<?php echo dimox_breadcrumbs(); ?>
					
					<h2 class="widgettitle header">
					<?php echo _e( 'Browsing the', THEMEDOMAIN ); ?>
										<?php echo _e( 'Category', THEMEDOMAIN ); ?>
					<?php
					    printf( __( ' "%s"', THEMEDOMAIN ), '' . single_cat_title( '', false ) . '' );
					?>

					</h2>
			
<?php

				global $more; $more = false; # some wordpress wtf logic
				
				if(isset($_SESSION['pp_blog_layout']))
				{
				    $pp_blog_layout = $_SESSION['pp_blog_layout'];
				}
				else
				{
				    $pp_blog_layout = get_option('pp_blog_layout');
				}
				
				include_once (TEMPLATEPATH . "/templates/template-blog-".$pp_blog_layout.".php");
				?>

				</div>
					
    			<div class="sidebar_wrapper">
    			
    				<div class="sidebar">
    				
    					<div class="content">
    				
    						<ul class="sidebar_widget">
    						<?php dynamic_sidebar('Category Sidebar'); ?>
    						</ul>
    					
    					</div>
    			
    				</div>
    				<br class="clear"/>

    			</div>
    			
    			<br class="clear"/>
    	</div>
    	<!-- End main content -->
    
    </div>

</div>

<?php get_footer(); ?>