<?php
/*
Template Name: Sitemap
*/
?>
<?php get_header(); ?>
       
    <!-- Content Starts -->
    <div id="content" class="wrap">
		<div class="col-left">
			<div id="main">
                                                                                   
                <h2 class="arh"><?php the_title(); ?></h2>			
                <div class="archives post wrap">
                    
                    <h3><?php _e('Pages','woothemes') ?></h3>
        
                    <ul>
                        <?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>		
                    </ul>				

                </div>
                
                <div class="page post wrap">
            
                    <h3><?php _e('Categories','woothemes') ?></h3>
        
                    <ul>
                        <?php wp_list_categories('title_li=&hierarchical=0&show_count=1') ?>	
                    </ul>	
                </div>                    

                <div class="page post wrap">
                <?php
            
                    $cats = get_categories();
                    foreach ($cats as $cat) {
            
                    query_posts('cat='.$cat->cat_ID);
        
                ?>
                
                <h3><?php echo $cat->cat_name; ?></h3>
    
                <ul>	
                        <?php while (have_posts()) : the_post(); ?>
                        <li style="font-weight:normal !important;"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - Comments (<?php echo $post->comment_count ?>)</li>
                        <?php endwhile;  ?>
                </ul>
            
                <?php } ?>					
                </div>                    
                                                    
                <?php if (get_option('woo_ad_content') && !$ad_shown) { ?>            
                    <?php include (TEMPLATEPATH . "/ads/content_ad.php"); $ad_shown = true; ?>
                <?php }	?>
                        
            </div><!-- main ends -->
        </div><!-- .col-left ends -->

        <?php get_sidebar(); ?>

    </div><!-- Content Ends -->
		
<?php get_footer(); ?>
