Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
74 lines (55 sloc) 2.23 KB
<?php get_header(); ?>
<!--BEGIN: sidebar~main-->
<?php // to disable this sidebar on a page by page basis just add a custom field to your page or post of disableSidebarMain = true
$disableSidebarMain = get_post_meta($post->ID, 'disableSidebarMain', $single = true);
if ($disableSidebarMain !== 'true'): ?>
<aside id="sidebar-main">
<h1>Main Sidebar</h1>
<?php dynamic_sidebar('sidebar-main'); ?>
<?php endif; ?>
<!--END: sidebar~main-->
<!--BEGIN: Content-->
<div id="content" class="clear-fix" role="main">
<?php if (have_posts()) : ?>
<h1>Posts in <?php single_cat_title(); ?></h1>
<?php while (have_posts()) : the_post(); ?>
<!--BEGIN: Post-->
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h1><a href="<?php the_permalink(); ?>" rel="bookmark" title='Click to read: "<?php strip_tags(the_title()); ?>"'><?php the_title(); ?></a></h1>
<p class="post-date"><?php the_time('F jS, Y') ?> &#8212; <?php the_category(', ') ?></p>
<div class="entry">
<?php the_excerpt("Continue reading &rarr;"); ?>
<!--BEGIN: Post Meta Data-->
<footer class="post-meta-data">
<ul class="horiz-list">
<li><?php the_time('F jS, Y') ?> by <?php the_author(); ?></li>
<li class="add-comment"><?php comments_popup_link('Share Your Comments', '1 Comment', '% Comments'); ?></li>
<li><?php edit_post_link('[Edit]', '<small>', '</small>'); ?></li>
<li><?php the_tags('Tags: ', ', ', '<br />'); ?></li>
<!--END: Post Meta Data-->
<!--END: Post-->
<?php endwhile; ?>
<!--BEGIN: Page Nav-->
<?php if ( $wp_query->max_num_pages > 1 ) : // if there's more than one page turn on pagination ?>
<nav id="page-nav">
<h1 class="hide">Page Navigation</h1>
<ul class="clear-fix">
<li class="next-link"><?php next_posts_link('Next Page') ?></li>
<li class="prev-link"><?php previous_posts_link('Previous Page') ?></li>
<?php endif; ?>
<!--END: Page Nav-->
<?php else : ?>
<h2>No posts were found :(</h2>
<?php endif; //END: The Loop ?>
<!--END: Content-->
<?php get_footer(); ?>