Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5fc7367bc3
Fetching contributors…

Cannot retrieve contributors at this time

executable file 58 lines (55 sloc) 1.826 kb
<?php
$blaskan_options = get_option('blaskan_options');
if ( $blaskan_options['custom_sidebars_in_pages'] == 1 ) {
$custom_sidebars_in_pages = TRUE;
} else {
$custom_sidebars_in_pages = FALSE;
}
?>
<?php if ( BLASKAN_SIDEBARS == 'no_sidebar' ): ?>
<?php return; ?>
<?php elseif ( BLASKAN_SIDEBARS == 'one_sidebar' ): ?>
<?php if ( $custom_sidebars_in_pages && is_page() ): ?>
<?php if ( is_active_sidebar( 'primary-page-sidebar' ) ) : ?>
<aside id="primary" role="complementary">
<?php dynamic_sidebar( 'primary-page-sidebar' ); ?>
</aside>
<!-- / #primary -->
<?php endif; ?>
<?php else: ?>
<?php if ( is_active_sidebar( 'primary-sidebar' ) ) : ?>
<aside id="primary" role="complementary">
<?php dynamic_sidebar( 'primary-sidebar' ); ?>
</aside>
<!-- / #primary -->
<?php endif; ?>
<?php endif;?>
<?php else: ?>
<?php if ( $custom_sidebars_in_pages && is_page() ): ?>
<?php if ( is_active_sidebar( 'primary-page-sidebar' ) ) : ?>
<aside id="primary" role="complementary">
<?php dynamic_sidebar( 'primary-page-sidebar' ); ?>
</aside>
<!-- / #primary -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'secondary-page-sidebar' ) ) : ?>
<aside id="secondary" role="complementary">
<?php dynamic_sidebar( 'secondary-page-sidebar' ); ?>
</aside>
<!-- / #secondary -->
<?php endif; ?>
<?php else: ?>
<?php if ( is_active_sidebar( 'primary-sidebar' ) ) : ?>
<aside id="primary" role="complementary">
<?php dynamic_sidebar( 'primary-sidebar' ); ?>
</aside>
<!-- / #primary -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'secondary-sidebar' ) ) : ?>
<aside id="secondary" role="complementary">
<?php dynamic_sidebar( 'secondary-sidebar' ); ?>
</aside>
<!-- / #secondary -->
<?php endif; ?>
<?php endif;?>
<?php endif; ?>
Jump to Line
Something went wrong with that request. Please try again.