Skip to content

Instantly share code, notes, and snippets.

@bkilshaw
Created May 22, 2012 17:42
Show Gist options
  • Save bkilshaw/2770521 to your computer and use it in GitHub Desktop.
Save bkilshaw/2770521 to your computer and use it in GitHub Desktop.
<?php
/**
* @package WordPress
* @subpackage The Developer
* @since The Developer1.0
*/
?>
<?php get_header(); ?>
<div id="main">
<div class="heading">
<h2><?php /* If this is a category archive */ if (is_category()) { ?>
<?php echo single_cat_title(); ?>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
Archives - <?php the_time('F jS, Y'); ?>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
Archives - <?php the_time('F, Y'); ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
Archives - <?php the_time('Y'); ?>
<?php /* If this is a tag */ } elseif (is_tag()) { ?>
Tagged - <?php single_tag_title(); ?>
<?php /* If this is a search */ } elseif (is_search()) { ?>
Search Results
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
Author Archive
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
Archives
<?php } ?></h2>
</div>
<div class="content">
<div class="left-col">
<div class="entry">
<?php if(have_posts()) : while(have_posts()) : the_post() ?>
<div class="post">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<ul class="meta">
<li class="date"><?php the_time('F j, Y'); ?></li>
<li class="cats"><?php the_category(); ?></li>
</ul>
<div class="post-content">
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="left"><?php next_posts_link('« Older Entries') ?></div>
<div class="right"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
</div>
<div class="sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Sidebar") ) : ?>
<?php endif; ?>
</div>
<div class="clearfix"></div>
</div>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment