Permalink
Browse files

sidebar refactoring

Signed-off-by: Norik Davtian <norik@bigemployee.com>
  • Loading branch information...
NorikDavtian committed Feb 26, 2014
1 parent c2f4c26 commit cb294e33ac24a772da8a96d575beb55e847b517e
Showing with 5 additions and 18 deletions.
  1. +5 −18 sidebar.php
View
@@ -4,21 +4,8 @@
*
*/
?>
-<div id="secondary">
- <?php
- $description = get_bloginfo('description', 'display');
- if (!empty($description)) :
- ?>
- <h2 class="site-description"><?php echo esc_html($description); ?></h2>
- <?php endif; ?>
- <?php if (has_nav_menu('secondary')) : ?>
- <nav role="navigation" class="navigation site-navigation secondary-navigation">
- <?php wp_nav_menu(array('theme_location' => 'secondary')); ?>
- </nav>
- <?php endif; ?>
- <?php if (is_active_sidebar('sidebar-1')) : ?>
- <div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
- <?php dynamic_sidebar('sidebar-1'); ?>
- </div><!-- #primary-sidebar -->
- <?php endif; ?>
-</div><!-- #secondary -->
+<?php if (is_active_sidebar('sidebar')) : ?>
+ <div id="sidebar" role="complementary">
+ <?php dynamic_sidebar('sidebar'); ?>
+ </div><!-- #sidebar -->
+<?php endif; ?>

0 comments on commit cb294e3

Please sign in to comment.