<?php
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) {
	exit;
}	
?>

<aside id="main_sidebar" class="td"><div class="divin"><div>
	
	<?php if (is_single() || is_page()) { ?>
		<?php if (function_exists('dynamic_sidebar')) { dynamic_sidebar('widget-posts'); } ?>
	<?php } ?>
	
	<?php if (is_category() || is_archive() ) { ?>
		<?php if (function_exists('dynamic_sidebar')) { dynamic_sidebar('widget-category'); } ?>
	<?php } ?>
	
</div></div></aside>