<?php

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

if ( qi_is_footer_bottom_area_enabled() ) {
	?>
	<div id="qodef-page-footer-bottom-area">
		<div id="qodef-page-footer-bottom-area-inner" class="<?php echo esc_attr( qi_get_footer_bottom_area_classes() ); ?>">
			<div class="<?php echo esc_attr( qi_get_footer_bottom_area_columns_classes() ); ?>">
				<div class="qodef-grid-inner">
					<?php
					// phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
					for ( $i = 1; $i <= intval( qi_get_page_footer_sidebars_config_by_key( 'footer_bottom_sidebars_number' ) ); $i++ ) {
						?>
						<div class="qodef-grid-item">
							<?php qi_get_footer_widget_area( 'bottom', $i ); ?>
						</div>
					<?php } ?>
				</div>
			</div>
		</div>
	</div>
<?php } ?>
