| Server IP : 146.59.209.152 / Your IP : 216.73.216.25 Web Server : Apache System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : monpetu ( 144298) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/monpetu/www/benneplus/wp-content/themes/airi/ |
Upload File : |
<?php
/**
*
* @package Airi
*/
?>
<?php
//Return if the first widget area has no widgets
if ( !is_active_sidebar( 'footer-1' ) ) {
return;
} ?>
<?php //Set widget areas classes based on user choice
$widget_areas = get_theme_mod('footer_widget_areas', '4');
if ($widget_areas == '4') {
$cols = 'col-md-3';
} elseif ($widget_areas == '3') {
$cols = 'col-md-4';
} elseif ($widget_areas == '2') {
$cols = 'col-md-6';
} else {
$cols = 'col-md-12';
}
?>
<div id="sidebar-footer" class="footer-widgets" role="complementary">
<div class="container">
<div class="row">
<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
<div class="sidebar-column <?php echo $cols; ?>">
<?php dynamic_sidebar( 'footer-1'); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
<div class="sidebar-column <?php echo $cols; ?>">
<?php dynamic_sidebar( 'footer-2'); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-3' ) ) : ?>
<div class="sidebar-column <?php echo $cols; ?>">
<?php dynamic_sidebar( 'footer-3'); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-4' ) ) : ?>
<div class="sidebar-column <?php echo $cols; ?>">
<?php dynamic_sidebar( 'footer-4'); ?>
</div>
<?php endif; ?>
</div>
</div>
</div>