<?php
/**
 * The sidebar containing the main widget area.
 *
 * @package luxe
 */
$sidebar_details = luxe_sidebar_position();
switch ($sidebar_details['layout']):
  case 'left_sidebar': ?>
    <!-- Sidebar -->
    <div class="col-md-4">
      <div class="sidebar left-sidebar">
        <?php if (is_active_sidebar( luxe_get_custom_sidebar('main') )): ?>
          <?php dynamic_sidebar( luxe_get_custom_sidebar('main', $sidebar_details['sidebar-name']) ); ?>
        <?php endif; ?>
      </div>
    </div>
    <!-- End Sidebar -->
    <?php break;

  case 'right_sidebar': ?>
    <!-- Sidebar -->
    <div class="col-md-4">
      <div class="sidebar">
        <?php if (is_active_sidebar( luxe_get_custom_sidebar('main') )): ?>
          <?php dynamic_sidebar( luxe_get_custom_sidebar('main', $sidebar_details['sidebar-name']) ); ?>
        <?php endif; ?>
      </div>
    </div>
    <!-- End Sidebar -->
    <?php break;
endswitch;
?>
