Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: PHP  |  size: 4.65 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.    
  2. <?php
  3.     /**
  4.      * The template for displaying archives pages.
  5.      *
  6.      * @package test
  7.      * @since 1.0
  8.      */
  9.     ?>    
  10. <?php get_header(); ?>    
  11. <?php $options = get_option( 'test_theme_layout_options' ); ?>          
  12. <div id="wrapper">            
  13.   <div class="container">                    
  14.     <div class="row">                                          
  15.       <?php if ( 'left_sidebar_layout' == $options['layout'] ) { ?>                                            
  16.       <?php get_sidebar(); ?>                                    
  17.       <?php } // end if ?>                                                                                                
  18.       <div id="main" class="<?php echo 'full_width_layout' == $options['layout'] ? 'span12 fullwidth' : 'span8'; ?> clearfix" role="main">                                                                                
  19.         <?php get_template_part( 'breadcrumbs' ); ?>                                                                                
  20.         <?php if ( have_posts() ) { ?>                                                    
  21. <?php while ( have_posts() ) {
  22.                                                                      the_post(); ?>                                                            
  23.         <div id="post-<?php the_ID(); ?> format-standard" <?php post_class( 'post' ); ?>>                                                                    
  24.           <div class="post-header clearfix">                                                                            
  25.             <h1 class="post-title"><?php the_title(); ?></h1>
  26.           </div>
  27.           <!-- /.post-header -->                                                                                                              
  28.           <div id="content-<?php the_ID(); ?>" class="entry-content clearfix">                                                                            
  29.             <div class="content">                                                                                    
  30.               <?php the_content(); ?>                                                                            
  31.             </div>
  32.             <!-- /.entry-content -->
  33.            
  34.             <h2>All Categories:</h2>                                                                            
  35.             <ul>                                                                                    
  36.               <?php wp_list_categories('title_li=&hierarchical=0&show_count=1') ?>                                                                            
  37.             </ul>                                                                                                                                                        <h2>Archives by Month:</h2>                                                                            
  38.             <ul>                                                                                    
  39.               <?php wp_get_archives('type=monthly&show_post_count=1') ?>                                                                            
  40.             </ul>                    
  41.            
  42.             <h2>Every Single Post Ever Written</h2>                                                                            
  43.             <ol>
  44.                 <?php wp_get_archives('type=postbypost'); ?>
  45.             </ol>                                                                                                                                                                                                                                                  
  46.           </div>
  47.          
  48.           </div>
  49.           <!-- /.entry-content -->                                                            
  50.         </div>
  51.         <!-- /#post- -->                                                    
  52.         <?php } // end while ?>                                            
  53.         <?php } // end if ?>                                                                                
  54.         <?php comments_template( '', true ); ?>                                    
  55.       </div>
  56.       <!-- /#main -->                                                                                  
  57.       <?php if ( 'right_sidebar_layout' == $options['layout'] ) {  ?>                                            
  58.       <?php get_sidebar(); ?>                                    
  59.       <?php } // end if ?>                                                        
  60.     </div>
  61.     <!--/ row -->            
  62.   </div>
  63.   <!--/container -->    
  64. </div>
  65. <!-- /#wrapper -->    
  66. <?php get_footer(); ?>