Skip to content

Commit

Permalink
Adding page templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbarnes committed Dec 31, 2011
1 parent 69dcc54 commit 9815228
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 0 deletions.
63 changes: 63 additions & 0 deletions page-full-width.php
@@ -0,0 +1,63 @@
<?php
/*
Template Name: Full Width Page
*/
?>

<?php get_header(); ?>

<div id="content" class="clearfix row">

<div id="main" class="span16 clearfix" role="main">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">

<header>

<h1><?php the_title(); ?></h1>

<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?>.</p>

</header> <!-- end article header -->

<section class="post_content">
<?php the_content(); ?>

</section> <!-- end article section -->

<footer>

<p class="clearfix"><?php the_tags('<span class="tags">Tags: ', ', ', '</span>'); ?></p>

</footer> <!-- end article footer -->

</article> <!-- end article -->

<?php comments_template(); ?>

<?php endwhile; ?>

<?php else : ?>

<article id="post-not-found">
<header>
<h1>Not Found</h1>
</header>
<section class="post_content">
<p>Sorry, but the requested resource was not found on this site.</p>
</section>
<footer>
</footer>
</article>

<?php endif; ?>

</div> <!-- end #main -->

<?php //get_sidebar(); // sidebar 1 ?>

</div> <!-- end #content -->

<?php get_footer(); ?>
63 changes: 63 additions & 0 deletions page-left-sidebar.php
@@ -0,0 +1,63 @@
<?php
/*
Template Name: Left Sidebar Page
*/
?>

<?php get_header(); ?>

<div id="content" class="clearfix row">

<?php get_sidebar(); // sidebar 1 ?>

<div id="main" class="span10 clearfix" role="main">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">

<header>

<h1><?php the_title(); ?></h1>

<p class="meta"><?php _e("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?>.</p>

</header> <!-- end article header -->

<section class="post_content">
<?php the_content(); ?>

</section> <!-- end article section -->

<footer>

<p class="clearfix"><?php the_tags('<span class="tags">Tags: ', ', ', '</span>'); ?></p>

</footer> <!-- end article footer -->

</article> <!-- end article -->

<?php comments_template(); ?>

<?php endwhile; ?>

<?php else : ?>

<article id="post-not-found">
<header>
<h1>Not Found</h1>
</header>
<section class="post_content">
<p>Sorry, but the requested resource was not found on this site.</p>
</section>
<footer>
</footer>
</article>

<?php endif; ?>

</div> <!-- end #main -->

</div> <!-- end #content -->

<?php get_footer(); ?>

0 comments on commit 9815228

Please sign in to comment.