<?php
/**
 * Before Loop ( page.php )
 *
 * @package magplus
 */
$layout    = (is_archive() || is_search()) ? 'right_sidebar':magplus_get_opt('main-layout');
$col_class = (is_single() || is_home()) ? 'col-md-8 col-md-offset-2':'col-md-12';
if ($layout == 'left_sidebar'): ?>
  <div class="row">
    <?php get_sidebar('left'); ?>
    <div class="col-md-8">

<?php elseif ($layout == 'right_sidebar'): ?>
  <div class="row">
    <div class="col-md-8">

 <!-- dual sidebar-->
<?php elseif ($layout == 'dual_sidebar'): ?>
	<div class="row">
    <?php get_sidebar('left'); ?>
    <div class="col-md-6">

<?php else: ?>
  <div class="row">
  	<div class="<?php echo magplus_sanitize_html_classes($col_class);?>">
<?php endif; ?>
