HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux newsites.squeezer-software.com 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/sites/ileskneiss/wp-content/themes/zakra/sidebar-footer.php
<?php
/**
 * The sidebar containing the footer widget area
 *
 * @link    https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package zakra
 */

if ( ! is_active_sidebar( 'footer-sidebar-1' ) && ! is_active_sidebar( 'footer-sidebar-2' ) && ! is_active_sidebar( 'footer-sidebar-3' ) && ! is_active_sidebar( 'footer-sidebar-4' ) ) {
	return;
}

$zakra_footer_widgets_style = apply_filters( 'zakra_footer_widgets_style', get_theme_mod( 'zakra_footer_widgets_style', 'tg-footer-widget-col--four' ) );

$footer_sidebar_classes = apply_filters(
	'zakra_footer_sidebar_filter',
	array(
		'tg-footer-widget-col--one'   => array(
			'footer-sidebar-1',
		),
		'tg-footer-widget-col--two'   => array(
			'footer-sidebar-1',
			'footer-sidebar-2',
		),
		'tg-footer-widget-col--three' => array(
			'footer-sidebar-1',
			'footer-sidebar-2',
			'footer-sidebar-3',
		),
		'tg-footer-widget-col--four'  => array(
			'footer-sidebar-1',
			'footer-sidebar-2',
			'footer-sidebar-3',
			'footer-sidebar-4',
		),
	)
);
?>

<div class="tg-footer-widget-container <?php zakra_footer_widget_container_class(); ?>">
	<?php
	foreach ( $footer_sidebar_classes as $footer_sidebar_key => $footer_sidebar_class ) {
		foreach ( $footer_sidebar_class as $footer_sidebar_display ) {

			if ( $footer_sidebar_key === $zakra_footer_widgets_style ) {
				?>
				<div class="tg-footer-widget-area <?php echo esc_attr( $footer_sidebar_display ); ?>">
					<?php if ( is_active_sidebar( $footer_sidebar_display ) ) : ?>
						<?php dynamic_sidebar( $footer_sidebar_display ); ?>
					<?php endif; ?>
				</div>
				<?php
			}
		}
	}
	?>
</div> <!-- /.tg-footer-widget-container -->