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

Sidebar on the left - with no file changes! #80

Merged
merged 1 commit into from
Jul 28, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>