Advertisement
Guest User

Untitled

a guest
May 15th, 2011
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.62 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="catmenucontainer">
  3.         <div id="catmenu">
  4.             <ul>
  5.                 <?php wp_list_categories('sort_column=name&title_li=&depth=4'); ?>
  6.             </ul>
  7.     </div>        
  8.  
  9. </div>
  10. <div id="casing">
  11. <div id="content">
  12.  
  13. <?php if (have_posts()) : ?>
  14.  
  15.          <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  16. <?php /* If this is a category archive */ if (is_category()) { ?>
  17.         <h2 class="pagetitle">Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>
  18.  
  19.        <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  20.         <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
  21.  
  22.      <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  23.         <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
  24.  
  25.         <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  26.         <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
  27.  
  28.       <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  29.         <h2 class="pagetitle">Author Archive</h2>
  30.  
  31.         <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  32.         <h2 class="pagetitle">Blog Archives</h2>
  33.  
  34.         <?php } ?>
  35.  
  36. <?php while (have_posts()) : the_post(); ?>
  37.  
  38. <div class="single" id="post-<?php the_ID(); ?>">
  39. <div class="title">
  40.  
  41. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  42.  
  43. </div>
  44. <div class="date">
  45. <span class="author">Posted by <?php the_author(); ?></span>
  46. <span class="comm"><?php comments_popup_link('ADD COMMENTS', '1 COMMENT', '% COMMENTS'); ?>    </span>
  47. </div>    
  48.  
  49. <div class="cover">
  50. <div class="entry">
  51.  
  52.     <?php the_excerpt(); ?>
  53.  
  54. <div class="clear"></div>
  55.  
  56. </div>
  57.  
  58. </div>
  59.  
  60. <div class="singleinfo">
  61.  
  62. <span class="category">Categories: <?php the_category(', '); ?> </span>
  63.  
  64. </div>
  65.  
  66. </div>
  67.         <?php endwhile; ?>
  68.  
  69.  <div id="navigation">
  70.   <?php if(function_exists('wp_pagenavi')) : ?>
  71.         <?php wp_pagenavi() ?>
  72.         <?php else : ?>
  73.         <div class="alignleft"><?php next_posts_link(__('« Older Entries','arclite')) ?></div>
  74.         <div class="alignright"><?php previous_posts_link(__('Newer Entries »','arclite')) ?></div>
  75.         <div class="clear"></div>
  76.        <?php endif; ?>
  77.  
  78. </div>
  79.  
  80.     <?php else : ?>
  81.  
  82.         <h1 class="title">Not Found</h1>
  83.         <p>Sorry, but you are looking for something that isn't here.</p>
  84.  
  85.     <?php endif; ?>
  86.  
  87. </div>
  88. <?php get_sidebar(); ?>
  89. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement