esc_html__( 'Blog Sidebar', 'alurra' ), 'id' => 'blog-sidebar', 'description' => esc_html__( 'Sidebar for your blog and archives.', 'alurra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Page Right Sidebar', 'alurra' ), 'id' => 'right-sidebar', 'description' => esc_html__( 'Right sidebar for your pages.', 'alurra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Page Left Sidebar', 'alurra' ), 'id' => 'left-sidebar', 'description' => esc_html__( 'Left sidebar for your pages.', 'alurra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Banner', 'alurra' ), 'id' => 'banner', 'description' => esc_html__( 'Banner sidebar for images and sliders.', 'alurra' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Breadcrumbs', 'alurra' ), 'id' => 'breadcrumbs', 'description' => esc_html__( 'For breadcrumb navigation when using a plugin having a widget or shortcode.', 'alurra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '', 'after_title' => '', ) ); register_sidebar( array( 'name' => esc_html__( 'Bottom 1', 'alurra' ), 'id' => 'bottom1', 'description' => esc_html__( 'First sidebar of the bottom group located above the footer area.', 'alurra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Bottom 2', 'alurra' ), 'id' => 'bottom2', 'description' => esc_html__( 'Second sidebar of the bottom group located above the footer area.', 'alurra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Bottom 3', 'alurra' ), 'id' => 'bottom3', 'description' => esc_html__( 'Third sidebar of the bottom group located above the footer area.', 'alurra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Bottom 4', 'alurra' ), 'id' => 'bottom4', 'description' => esc_html__( 'Fourth sidebar of the bottom group located above the footer area.', 'alurra' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'alurra_widgets_init' ); /*----------------------------------------------------------------------------------------------- Grouped Sidebars - Bottom This will add classes based on how many sidebars are active. --------------------------------------------------------------------------------------------------- */ function alurra_bottom_group() { $count = 0; if ( is_active_sidebar( 'bottom1' ) ) $count++; if ( is_active_sidebar( 'bottom2' ) ) $count++; if ( is_active_sidebar( 'bottom3' ) ) $count++; if ( is_active_sidebar( 'bottom4' ) ) $count++; $class = ''; switch ( $count ) { case '1': $class = 'col-lg-12 widget-area'; break; case '2': $class = 'col-lg-6 widget-area'; break; case '3': $class = 'col-lg-4 widget-area'; break; case '4': $class = 'col-sm-12 col-md-6 col-lg-3 widget-area'; break; } if ( $class ) echo 'class="' . esc_attr( $class ) . '"'; }