<div class="sidebar-wrapper">
<aside class="sidebar">
<?php if ( is_page() ) { ?>
	<?php if ( is_active_sidebar( 'sidebarpage_alinan_wp' ) ) { ?>
	    <?php dynamic_sidebar( 'sidebarpage_alinan_wp' ); ?>
	<?php } ?> 

<?php } else { ?>
	<?php if ( is_active_sidebar( 'sidebarmain_alinan_wp' ) ) { ?>
	    <?php dynamic_sidebar( 'sidebarmain_alinan_wp' ); ?>
	<?php } ?> 
<?php } ?>	
</aside>
</div>