TRACER STUDY

/** * The template for displaying the footer * * Contains the closing of the #content div and all content after. * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @package Promos */ global $promos_theme_options; $copyright = wp_kses_post($promos_theme_options['promos-footer-copyright']); if ( is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3') || is_active_sidebar('footer-4') ) { $count = 0; for ( $i = 1; $i <= 4; $i++ ) { if ( is_active_sidebar( 'footer-' . $i ) ) { $count++; } } $footer_col= 4; if( $count == 4 ) { $footer_col= 4; } elseif( $count == 3) { $footer_col= 3; } elseif( $count == 2) { $footer_col= 2; } elseif( $count == 1) { $footer_col= 1; } } ?>