Merge pull request #372 from eberhapa/patch-1 - Thx @eberhapa

Update widgets.php
This commit is contained in:
Holger 2017-07-26 10:54:00 +02:00 committed by GitHub
commit f122147ed9
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ if ( ! function_exists( 'slbd_count_widgets' ) ) {
$widget_count = count( $sidebars_widgets_count[ $sidebar_id ] ); $widget_count = count( $sidebars_widgets_count[ $sidebar_id ] );
$widget_classes = 'widget-count-' . count( $sidebars_widgets_count[ $sidebar_id ] ); $widget_classes = 'widget-count-' . count( $sidebars_widgets_count[ $sidebar_id ] );
if ( $widget_count % 4 == 0 || $widget_count > 6 ) : if ( $widget_count % 4 == 0 || $widget_count > 6 ) :
// Four widgets er row if there are exactly four or more than six // Four widgets per row if there are exactly four or more than six
$widget_classes .= ' col-md-3'; $widget_classes .= ' col-md-3';
elseif ( 6 == $widget_count ) : elseif ( 6 == $widget_count ) :
// If two widgets are published // If two widgets are published