示例#1
0
if (have_posts()) {
    echo '<div class="propertylist">';
    while (have_posts()) {
        the_post();
        get_template_part('layout', 'post-list');
    }
    echo '<div class="mt22">';
    bsh_pagination();
    echo '</div>';
    echo '</div>';
} else {
}
?>
				</div>
				<?php 
if (bsh_has_sidebar()) {
    ?>
					<div id='siteSidebar' class='small-12 large-4 columns <?php 
    echo bsh_sidebar_classes();
    ?>
'>
						<?php 
    dynamic_sidebar('Default Blog Sidebar');
    ?>
					</div>
				<?php 
}
?>
			</div>
		</div>
	</div>
示例#2
0
function bsh_content_classes()
{
    if (!bsh_has_sidebar() === true) {
        return 'large-12 small-12';
    }
    $layout = bsh_get_layout();
    if ($layout === '2col_left') {
        return 'large-8 small-12 push-4';
    } else {
        return 'large-8 small-12';
    }
}