function vntd_get_footer_cols_class() { $widget_col_class = 'col-xs-3'; if (vntd_get_footer_cols() == 1) { $widget_col_class = 'col-xs-12'; } elseif (vntd_get_footer_cols() == 2) { $widget_col_class = 'col-xs-6'; } elseif (vntd_get_footer_cols() == 3) { $widget_col_class = 'col-xs-4'; } return $widget_col_class; }
<?php if ($smof_data['vntd_footer_widgets'] == 'enabled' && is_active_sidebar('footer1') || get_post_meta(vntd_get_id(), 'footer_widgets', TRUE) == 'enabled' && is_active_sidebar('footer1')) { if ($smof_data["vntd_footer_widgets_skin"] == "dark" || $smof_data["vntd_footer_widgets_skin"] == "white") { $footer_widgets_class = 'footer-widgets-' . $smof_data["vntd_footer_widgets_skin"]; } elseif ($footer_color_class == 'dark-footer') { $footer_widgets_class = 'footer-widgets-dark'; } ?> <div id="footer-widgets" class="<?php echo $footer_widgets_class; ?> "> <div class="container"> <div class="inner"> <?php for ($i = 1; $i <= vntd_get_footer_cols(); $i++) { if ($i == $footer_cols) { $last_class = ' vntd-span-last'; } echo '<div class="' . vntd_get_footer_cols_class() . '">'; if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('footer' . $i)) { } echo '</div>'; } ?> </div> </div> </div> <?php }