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: //home/dorsetandsomersetairambulance.org.uk/public_html/wp-content/themes/vega/sidebar-footer.php
<?php
/**
 * The widget area for footer.
 *
 * @package vega
 */
?>

<?php $vega_hide_footer_widgets = vega_wp_get_option('vega_hide_footer_widgets'); ?>

<?php 
if($vega_hide_footer_widgets == 'N') { 

if ( is_active_sidebar( 'footer_1' ) || is_active_sidebar( 'footer_2' ) || is_active_sidebar( 'footer_3' ) || is_active_sidebar( 'footer_4' ) ) { ?>
<!-- ========== Footer Widgets ========== -->
<div class="footer-widgets bg-footer">
    <div class="container">
        <div class="row">
            <?php 
            $i=0;
            if(is_active_sidebar( 'footer_1' )) $i++;
            if(is_active_sidebar( 'footer_2' )) $i++;
            if(is_active_sidebar( 'footer_3' )) $i++;
            if(is_active_sidebar( 'footer_4' )) $i++;
            $class = vega_wp_get_col_class($i);
            ?>
            <?php if ( is_active_sidebar( 'footer_1' ) ) : ?>
            <!-- Footer Col 1 -->
            <div class="<?php echo $class ?> footer-widget footer-widget-col-1 wow">
                <?php dynamic_sidebar( 'footer_1' ); ?>
            </div>
            <!-- /Footer Col 1 -->
            <?php endif; ?>
            
            <?php if ( is_active_sidebar( 'footer_2' ) ) : ?>
            <!-- Footer Col 2 -->
            <div class="<?php echo $class ?> footer-widget footer-widget-col-2 wow">
                <?php dynamic_sidebar( 'footer_2' ); ?>
            </div>
            <!-- /Footer Col 2 -->
            <?php endif; ?>
            
            <?php if ( is_active_sidebar( 'footer_3' ) ) : ?>
            <!-- Footer Col 3 -->
            <div class="<?php echo $class ?> footer-widget footer-widget-col-3 wow" >
                <?php dynamic_sidebar( 'footer_3' ); ?>
            </div>
            <!-- /Footer Col 3 -->
            <?php endif; ?>
            
            <?php if ( is_active_sidebar( 'footer_4' ) ) : ?>
            <!-- Footer Col 4 -->
            <div class="<?php echo $class ?> footer-widget footer-widget-col-4 wow" >
                <?php dynamic_sidebar( 'footer_4' ); ?>
            </div>
            <!-- /Footer Col 4 -->
            <?php endif; ?>
            
        </div>
    </div>
</div>
<!-- ========== /Footer Widgets ========== -->
<?php }  
    else { 
        vega_wp_example_sidebar_footer(); 
    } 
}
?>