| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) 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/uxhactp/www/wp-content/themes/applica/template-parts/footer/ |
Upload File : |
<?php
/**
* Displays the footer widget area.
*
* @package Applica
*/
/*Get the footer column from the customizer*/
$footer_column_layout = applica_get_option('footer_column_layout');
$footer_class = 'column-3';
/*Footer Background Image*/
$footer_wrapper_start = $footer_wrapper_end = '';
/**/
// Match Column value with Column class
if($footer_column_layout){
switch ($footer_column_layout) {
case "footer_layout_1":
$footer_column = 4;
$footer_class = 'column-3 column-md-6 column-sm-12 sm-mb-16';
break;
case "footer_layout_2":
$footer_column = 3;
$footer_class = 'column-4 column-md-6 column-sm-12 sm-mb-16';
break;
case "footer_layout_3":
$footer_column = 2;
$footer_class = 'column-6 column-sm-12';
break;
case "footer_layout_4":
$footer_column = 2;
$footer_class = array('column-9 column-sm-12', 'column-3 column-sm-12');
break;
case "footer_layout_5":
$footer_column = 3;
$footer_class = array('column-3 column-md-6 column-sm-12 order-md-2', 'column-6 column-md-12 column-sm-12 order-md-1', 'column-3 column-md-6 column-sm-12 order-md-3');
break;
case "footer_layout_6":
$footer_column = 2;
$footer_class = array('column-3 column-md-12 column-sm-12 order-md-2', 'column-9 column-md-12 column-sm-12 order-md-1');
break;
default:
$footer_column = 4;
$footer_class = 'column-3 column-md-6 column-sm-12 sm-mb-16';
}
}else{
$footer_column = 4;
$footer_class = 'column-3';
}
$cols = intval( apply_filters( 'applica_footer_widget_columns', $footer_column) );
// Defines the number of active columns in this footer row.
for ( $j = $cols; 0 < $j; $j-- ) {
if ( is_active_sidebar( 'footer-' . strval( $j ) ) ) {
$columns = $j;
break;
}
}
if ( isset( $columns ) ) : ?>
<?php echo $footer_wrapper_start;?>
<div class="theme-footer-top">
<div class="column-row">
<?php
for ( $column = 1; $column <= $columns; $column++ ) :
if ( is_active_sidebar( 'footer-' . strval( $column ) ) ) :
// Get the proper column class
if(is_array($footer_class)){
$footer_display_class = $footer_class[$column - 1];
}else{
$footer_display_class = $footer_class;
}
?>
<div class="column footer-widget-<?php echo strval( $column ); ?> <?php echo $footer_display_class;?>">
<?php dynamic_sidebar( 'footer-' . strval( $column ) ); ?>
</div><!-- .footer-widget-<?php echo strval( $column ); ?> -->
<?php
endif;
endfor;
?>
</div>
</div><!-- .theme-footer-top-->
<?php echo $footer_wrapper_end;?>
<?php
unset( $columns );
endif;