<?php
/**
 * サイドバーの出力
 *
 * @author     AnimaGate, Inc.
 * @link       https://support.animagate.com/product/wp-nishiki-pro/
 */

?>
<?php
if ( is_active_sidebar( 'sidebar_main' ) || is_active_sidebar( 'sidebar_sticky' ) ){
?>
	<aside class="sidebars">
	<?php	
	if ( is_active_sidebar( 'sidebar_main' ) ) {
		?>
		<div class="sidebar" role="complementary">
			<?php dynamic_sidebar( 'sidebar_main' ); ?>
		</div>
		<?php
	}
	if ( is_active_sidebar( 'sidebar_sticky' ) ) {
	?>
		<div class="sidebar sidebar-sticky sticky" role="complementary">
			<?php dynamic_sidebar( 'sidebar_sticky' ); ?>
		</div>
	<?php
	}
	?>
	</aside>
<?php
}
