function get_uw_content_class($class = '')
 {
     $classes = array('uw-content');
     if (uw_has_sidebar()) {
         $classes[] = 'col-md-8';
     } else {
         $classes[] = 'col-md-12';
     }
     $classes = array_map('esc_attr', $classes);
     return apply_filters('uw_content_class', $classes, $class);
 }
Example #2
0
<?php

if (uw_has_sidebar()) {
    ?>

  <div class="col-md-4 uw-sidebar">
    <?php 
    uw_sidebar_menu();
    ?>
    <?php 
    dynamic_sidebar(UW_Sidebar::ID);
    ?>
  </div>

<?php 
}