0 ) { $col_number = floor( 12 / $number_of_widgets_in_sidebar ); $bootstrap_class = 'col-md-' . $col_number; return $bootstrap_class; } } function awr_add_new_class_to_opening_div_of_widget( $new_class , $opening_div ) { $div_with_new_class = preg_replace( '/class="(.*?)"/' , "/class='{$new_class} $1'/" , $opening_div ); if ( $div_with_new_class === $opening_div ) { $div_with_new_class = preg_replace( '/(