<?php if ( is_active_sidebar_YA('right') ):
	$right_span_class = 'span'.ya_options()->getCpanelValue('sidebar_right_expand');
?>
<aside id="right" class="sidebar <?php echo $right_span_class; ?>">
	<?php dynamic_sidebar('right'); ?>
</aside>
<?php endif; ?>