Advertisement
alchymyth

archives.php adapted

May 28th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Archives
  4. */
  5. get_header(); ?>
  6.  
  7. <?php if(get_option('wpann_sidebar_position')=="" || get_option('wpann_sidebar_position')=="right"){?>
  8.                         <!-- BEGIN #mainCol -->
  9.                         <div id="mainCol">
  10.                 <?php }else{
  11.                 get_sidebar();?>
  12.                 <!-- BEGIN #mainCol -->
  13.                 <div id="mainCol" class="right">
  14.                 <?php }?>
  15.  
  16.         <?php the_post(); ?>
  17.         <h1 class="entry-title"><?php the_title(); ?></h1>
  18.        
  19.         <?php get_search_form(); ?><br>
  20.        
  21.         <h2>Archives by Month:</h2>
  22.         <ul>
  23.             <?php wp_get_archives('type=monthly'); ?>
  24.         </ul>
  25.         <br>
  26.         <h2>Archives by Subject:</h2>
  27.         <ul>
  28.              <?php wp_list_categories(); ?>
  29.         </ul>
  30.  
  31. </div>
  32.                         <!-- End #mainCol -->
  33.                        
  34. <?php if(get_option('wpann_sidebar_position')=="" || get_option('wpann_sidebar_position')=="right"):get_sidebar(); endif?>
  35.  
  36. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement