Esempio n. 1
0
/**
 * Adds Soigné layout classes to the array of body classes.
 *
 * @since Soigné 1.0
 */
function soigne_layout_classes($existing_classes)
{
    $options = soigne_get_theme_options();
    $current_layout = $options['theme_layout'];
    if (in_array($current_layout, array('content-sidebar', 'sidebar-content'))) {
        $classes = array('two-column');
    } else {
        $classes = array('one-column');
    }
    if ('content-sidebar' == $current_layout) {
        $classes[] = 'right-sidebar';
    } elseif ('sidebar-content' == $current_layout) {
        $classes[] = 'left-sidebar';
    } else {
        $classes[] = $current_layout;
    }
    $classes = apply_filters('soigne_layout_classes', $classes, $current_layout);
    return array_merge($existing_classes, $classes);
}
Esempio n. 2
0
<?php

/**
 * The Sidebar containing the main widget area.
 *
 * @package WordPress
 * @subpackage Soigne
 * @since Soigne 1.0
 */
$options = soigne_get_theme_options();
$current_layout = $options['theme_layout'];
if ('content' != $current_layout) {
    ?>
		<div id="secondary" class="widget-area" role="complementary">
			<?php 
    if (!dynamic_sidebar('sidebar-1')) {
        ?>

				<aside id="archives" class="widget">
					<h3 class="widget-title"><?php 
        _e('Archives', 'soigne');
        ?>
</h3>
					<ul>
						<?php 
        wp_get_archives(array('type' => 'monthly'));
        ?>
					</ul>
				</aside>

				<aside id="meta" class="widget">