Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (46 sloc) 1.72 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" role="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); //BEGIN: The Loop ?>
<!--BEGIN: Post-->
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1>
<time datetime="<?php the_time('c'); ?>" pubdate="pubdate"><?php the_time('F jS, Y'); ?></time>
<p>by <?php the_author() ?></p>
<div class="entry">
<?php the_content("Continue reading " . the_title('', '', false)); ?>
<!--END: Post-->
<?php wp_link_pages(); //this allows for multi-page posts ?>
<?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(); ?>