예제 #1
0
<?php

/**
 * The left sidebar containing the main widget area.
 */
if (!is_active_sidebar('supermag-sidebar')) {
    return;
}
$sidebar_layout = supermag_sidebar_selection();
if ($sidebar_layout == "left-sidebar") {
    ?>
    <div id="secondary-left" class="widget-area sidebar secondary-sidebar float-right" role="complementary">
        <div id="sidebar-section-top" class="widget-area sidebar clearfix">
            <?php 
    dynamic_sidebar('supermag-sidebar');
    ?>
        </div>
    </div>
<?php 
}
예제 #2
0
 function supermag_body_class($supermagbody_classes)
 {
     global $supermag_customizer_all_values;
     if ('boxed' == $supermag_customizer_all_values['supermag-default-layout']) {
         $supermagbody_classes[] = 'boxed-layout';
     }
     if ('no-image' == $supermag_customizer_all_values['supermag-blog-archive-layout']) {
         $supermagbody_classes[] = 'blog-no-image';
     }
     $supermagbody_classes[] = supermag_sidebar_selection();
     return $supermagbody_classes;
 }