Uname: Linux premium72.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.2.29 [ PHP INFO ] PHP os: Linux
Server Ip: 198.54.125.95
Your Ip: 216.73.216.164
User: matican (532) | Group: matican (531)
Safe Mode: OFF
Disable Function:
NONE

name : sidebar-footer.php
<?php
/**
 * The Footer widget areas
 */
?>

<?php

	if (   ! is_active_sidebar( 'footer-area-1'  )
		&& ! is_active_sidebar( 'footer-area-2' )
		&& ! is_active_sidebar( 'footer-area-3'  )
		&& ! is_active_sidebar( 'footer-area-4' )
	)
		return;

	// If we get this far, we have widgets. Let do this.

	$count = 0;

	if ( is_active_sidebar( 'footer-area-1' ) )
		$count++;
	if ( is_active_sidebar( 'footer-area-2' ) )
		$count++;
	if ( is_active_sidebar( 'footer-area-3' ) )
		$count++;
	if ( is_active_sidebar( 'footer-area-4' ) )
		$count++;	
	$class = '';

	switch ( $count ) {
		case '1':
			$class = 'col-md-12';
			break;
		case '2':
			$class = 'col-md-6 col-sm-6';
			break;
		case '3':
			$class = 'col-md-4 col-sm-4';
			break;
		case '4':
			$class = 'col-md-3 col-sm-6';
			break;	
	}
?>

<?php if ( is_active_sidebar('footer-area-1') ) : ?>
<div class="<?php echo esc_attr( $class ); ?>">
    <?php dynamic_sidebar( 'footer-area-1' ); ?>
</div><!-- end col-lg-3 -->
<?php endif; ?>

<?php if ( is_active_sidebar('footer-area-2') ) : ?>
<div class="<?php echo esc_attr( $class ); ?>">
    <?php dynamic_sidebar( 'footer-area-2' ); ?>
</div><!-- end col-lg-3 -->
<?php endif; ?>

<?php if ( is_active_sidebar('footer-area-3') ) : ?>
<div class="<?php echo esc_attr( $class ); ?>">
    <?php dynamic_sidebar( 'footer-area-3' ); ?>
</div><!-- end col-lg-3 -->
<?php endif; ?>

<?php if ( is_active_sidebar('footer-area-4') ) : ?>
<div class="<?php echo esc_attr( $class ); ?>">
    <?php dynamic_sidebar( 'footer-area-4' ); ?>
</div><!-- end col-lg-3 -->
<?php endif; ?>



© 2025 XylotrechusZ