Esempio n. 1
0
/**
 * Adds custom classes to the array of body classes.
 *
 * @since Gather 0.1
 */
function gather_body_classes($classes)
{
    if (gather_load_masonry()) {
        $classes[] = get_theme_mod('archive-layout', customizer_library_get_default('archive-layout'));
        $classes[] = 'masonry';
    }
    if (gather_show_sidebar()) {
        $classes[] = get_theme_mod('standard-layout', customizer_library_get_default('standard-layout'));
    } else {
        $classes[] = 'no-sidebar';
    }
    return $classes;
}
Esempio n. 2
0
<?php

/**
 * The Sidebar containing the main widget areas.
 *
 * @package Gather
 */
?>

<?php 
if (gather_show_sidebar()) {
    ?>

	<div id="secondary" class="secondary" role="complementary">
		<?php 
    if (!dynamic_sidebar('primary')) {
        ?>

		<?php 
    }
    // end sidebar widget area
    ?>
	</div><!-- #secondary -->

<?php 
}