<?php
/**
 * The template part for selected footer
 */

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

$options = enginx_get_options();
$section = enginx_get_section_options( $options, 'footer_' );

?>
<footer class="page_footer <?php echo esc_attr( $section['section_class'] ); ?>"
	<?php echo ( !empty( $section['section_id'] ) ) ? 'id="'. esc_attr( $section['section_id'] ) . '"' : ''; ?>
	<?php echo ( !empty( $section['section_background_image'] ) ) ? 'style="'. esc_attr( $section['section_background_image'] ) . '"' : ''; ?>
>
	<div class="particles-js" id="<?php echo esc_attr( uniqid('par-') ); ?>"></div>
	<div class="container<?php echo esc_attr( $section['section_container_class_suffix'] ); ?>">
		<div class="row<?php echo esc_attr( $section['section_row_class_suffix'] ); ?>">
			<div class="col-xl-3 col-md-6 text-center text-md-left">
				<?php dynamic_sidebar( 'sidebar-footer-1' ); ?>
			</div>
			<div class="col-xl-3 col-md-6 text-center text-md-left">
				<?php dynamic_sidebar( 'sidebar-footer-2' ); ?>
			</div>
			<div class="col-xl-3 col-md-6 text-center text-md-left">
				<?php dynamic_sidebar( 'sidebar-footer-3' ); ?>
			</div>
			<div class="col-xl-3 col-md-6 text-center text-md-left">
				<?php dynamic_sidebar( 'sidebar-footer-4' ); ?>
			</div>
		</div>
	</div>
</footer><!-- .page_footer -->