Refactor sidebar configuration

Instead of editing an if statement (which could get ugly quickly), just
edit configuration arrays of conditional tags and page template checks.
This commit is contained in:
Scott Walkinshaw
2012-09-20 14:36:25 -06:00
parent 33d78b7a0d
commit 588ea8afa3
6 changed files with 81 additions and 9 deletions

View File

@@ -17,7 +17,7 @@
<div id="main" class="<?php roots_main_class(); ?>" role="main">
<?php include roots_template_path(); ?>
</div>
<?php if (roots_sidebar()) : ?>
<?php if (roots_display_sidebar()) : ?>
<aside id="sidebar" class="<?php roots_sidebar_class(); ?>" role="complementary">
<?php get_template_part('templates/sidebar'); ?>
</aside>