From 76402a87f366838bf06f6e36a552be43dfb5641c Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 4 Nov 2018 22:32:44 +0100 Subject: Removes dist/ folder. --- dist/inc/widgets.php | 119 --------------------------------------------------- 1 file changed, 119 deletions(-) delete mode 100644 dist/inc/widgets.php (limited to 'dist/inc/widgets.php') diff --git a/dist/inc/widgets.php b/dist/inc/widgets.php deleted file mode 100644 index fdd6611..0000000 --- a/dist/inc/widgets.php +++ /dev/null @@ -1,119 +0,0 @@ - 6 ) : - // Four widgets per row if there are exactly four or more than six - $widget_classes .= ' col-md-3'; - elseif ( 6 == $widget_count ) : - // If two widgets are published - $widget_classes .= ' col-md-2'; - elseif ( $widget_count >= 3 ) : - // Three widgets per row if there's three or more widgets - $widget_classes .= ' col-md-4'; - elseif ( 2 == $widget_count ) : - // If two widgets are published - $widget_classes .= ' col-md-6'; - elseif ( 1 == $widget_count ) : - // If just on widget is active - $widget_classes .= ' col-md-12'; - endif; - return $widget_classes; - endif; - } -} - -add_action( 'widgets_init', 'understrap_widgets_init' ); - -if ( ! function_exists( 'understrap_widgets_init' ) ) { - /** - * Initializes themes widgets. - */ - function understrap_widgets_init() { - register_sidebar( array( - 'name' => __( 'Right Sidebar', 'understrap' ), - 'id' => 'right-sidebar', - 'description' => __( 'Right sidebar widget area', 'understrap' ), - 'before_widget' => '', - 'before_title' => '