1 ){ $default = "12"; switch ( $column ) { case 4: $default = '3+3+3+3'; break; case 3: $default = '4+4+4'; break; case 2: $default = '6+6'; break; } $layouts = sanitize_text_field( isset($option['footer_custom_'.$column.'_columns'])?$option['footer_custom_'.$column.'_columns']:$default ); } $layouts = explode( '+', $layouts ); foreach ( $layouts as $k => $v ) { $v = absint( trim( $v ) ); $v = $v >= $max_cols ? $max_cols : $v; $layouts[ $k ] = $v; } $have_widgets = false; for ( $count = 0; $count < $column; $count++ ) { $slidebar_id = 'footer-' . ( $count + 1 ); if ( is_active_sidebar( $slidebar_id ) ) { $have_widgets = true; } } $class = ''; if($option['footer_back_image']){ $class = 'jsgroup-section has_bg_image'; } if($option['footer_layout']!=''){ $class .= ' ' .$option['footer_layout']; } $class = trim($class); $footerwidget_containerClass = ''; if($option['footerwidget_container_width']!=''){ $footerwidget_containerClass = $option['footerwidget_container_width']; } $footercopyright_containerClass = ''; if($option['footercopyright_container_width']!=''){ $footercopyright_containerClass = $option['footercopyright_container_width']; } ?>