HEX
Server: Apache
System: Linux p3plzcpnl507418.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: retoti4c1e1s (10075650)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/retoti4c1e1s/public_html/thecommitment.earth/wp-content/themes/ananke/sidebar-footer.php
<?php
/**
 * The Footer widget areas
 */
?>

<?php
	/* The footer widget area is triggered if any of the areas
	 * have widgets. So let's check that first.
	 *
	 * If none of the sidebars have widgets, then let's bail early.
	 */

	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 = 'twelve columns';
			break;
		case '2':
			$class = 'six columns';
			break;
		case '3':
			$class = 'four columns';
			break;
		case '4':
			$class = 'three columns';
			break;	
	}

?>

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

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

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

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