<?php
/**
 * Template part for displaying footer sidebar 1
 *
 * @package CosmosWP
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$widget_setting       = cosmoswp_get_theme_options( 'footer-sidebar-1-widget-setting-option' );
$footer_sidebar_align = ( 'inherit' !== $widget_setting ) ? cosmoswp_get_theme_options( 'footer-sidebar-1-content-align' ) : '';
?>
<div class="cwp-footer-sidebar cwp-footer-sidebar-1 <?php echo esc_attr( $footer_sidebar_align ); ?>">
	<?php
	if ( is_active_sidebar( 'footer-sidebar-1' ) ) {
		dynamic_sidebar( 'footer-sidebar-1' );
	}
	?>
</div>
