Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Sidebar on the left - no file changes!
Browse files Browse the repository at this point in the history
  • Loading branch information
James Barlow committed Jul 27, 2014
1 parent 98f8d90 commit a6d2123
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
35 changes: 35 additions & 0 deletions page-sidebar-left.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/*
Template Name: Left Sidebar
*/
get_header(); ?>
<div class="row">
<div class="small-12 large-8 large-push-4 columns" role="main">

<?php do_action('foundationPress_before_content'); ?>

<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<?php do_action('foundationPress_page_before_entry_content'); ?>
<div class="entry-content">
<?php the_content(); ?>
</div>
<footer>
<?php wp_link_pages(array('before' => '<nav id="page-nav"><p>' . __('Pages:', 'FoundationPress'), 'after' => '</p></nav>' )); ?>
<p><?php the_tags(); ?></p>
</footer>
<?php do_action('foundationPress_page_before_comments'); ?>
<?php comments_template(); ?>
<?php do_action('foundationPress_page_after_comments'); ?>
</article>
<?php endwhile;?>

<?php do_action('foundationPress_after_content'); ?>

</div>
<?php get_sidebar('left'); ?>
</div>
<?php get_footer(); ?>
5 changes: 5 additions & 0 deletions sidebar-left.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<aside id="sidebar" class="small-12 large-4 columns large-pull-8">
<?php do_action('foundationPress_before_sidebar'); ?>
<?php dynamic_sidebar("sidebar-widgets"); ?>
<?php do_action('foundationPress_after_sidebar'); ?>
</aside>

0 comments on commit a6d2123

Please sign in to comment.