HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //old_home_backup/vinylsingles.co.uk/public_html/wp-content/themes/aadya/sidebar-footer.php
<?php
/**
 * The Footer widget areas.
 *
 * @package Aadya
 * @since Aadya 1.0.0
 */
?>

<?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( 'extended_footer_one'  )
		&& ! is_active_sidebar( 'extended_footer_two' )
		&& ! is_active_sidebar( 'extended_footer_three'  )
	)
		return;
	// If we get this far, we have widgets. Let do this.
	$divclass = (of_get_option('extended_footer_count')=='4') ? '3' : '4';
	$smdivclass = $divclass;
?>

<div id="extended-footer">	
	<div class="container">		
		<div class="row">		
			<div class="col-sm-<?php echo $smdivclass; ?> col-md-<?php echo $divclass; ?>">
				<?php if ( is_active_sidebar( 'extended_footer_one' ) ) : ?>
				<?php dynamic_sidebar( 'extended_footer_one' ); ?>	
				<?php endif; ?>	
			</div>		
			
			<div class="col-sm-<?php echo $smdivclass; ?> col-md-<?php echo $divclass; ?>">
				<?php if ( is_active_sidebar( 'extended_footer_two' ) ) : ?>
				<?php dynamic_sidebar( 'extended_footer_two' ); ?>
				<?php endif; ?>
			</div>

			<div class="col-sm-<?php echo $smdivclass; ?> col-md-<?php echo $divclass; ?>">
				<?php if ( is_active_sidebar( 'extended_footer_three' ) ) : ?>
				<?php dynamic_sidebar( 'extended_footer_three' ); ?>
				<?php endif; ?>
			</div>		
			
			<?php if($divclass=='3'): ?>	
				<div class="col-sm-<?php echo $smdivclass; ?> col-md-<?php echo $divclass; ?>">
				<?php if ( is_active_sidebar( 'extended_footer_four' ) ) : ?>
				<?php dynamic_sidebar( 'extended_footer_four' ); ?>
				<?php endif; ?>
				</div>
			<?php endif; ?>				
		</div>
	</div>
</div>