esc_html__( 'Home Intro Post Section', 'awesome-blog-lite' ), 'id' => 'home_intro_post', 'description' => esc_html__( 'homepage intro post', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Home Middle Section', 'awesome-blog-lite' ), 'id' => 'home_middle_section', 'description' => esc_html__( 'homepage middle section', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Home Right Sidebar', 'awesome-blog-lite' ), 'id' => 'homeright', 'description' => esc_html__( 'Right sidebar for the homepage', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Blog Right Sidebar', 'awesome-blog-lite' ), 'id' => 'blogright', 'description' => esc_html__( 'Right sidebar for the blog', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Page Right Sidebar', 'awesome-blog-lite' ), 'id' => 'pageright', 'description' => esc_html__( 'Right sidebar for pages', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Header', 'awesome-blog-lite' ), 'id' => 'header', 'description' => esc_html__( 'This is a header right sidebar content', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => esc_html__( 'Bottom 1', 'awesome-blog-lite' ), 'id' => 'bottom1', 'description' => esc_html__( 'Bottom 1 position', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Bottom 2', 'awesome-blog-lite' ), 'id' => 'bottom2', 'description' => esc_html__( 'Bottom 2 position', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Bottom 3', 'awesome-blog-lite' ), 'id' => 'bottom3', 'description' => esc_html__( 'Bottom 3 position', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Bottom 4', 'awesome-blog-lite' ), 'id' => 'bottom4', 'description' => esc_html__( 'Bottom 4 position', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer', 'awesome-blog-lite' ), 'id' => 'footer', 'description' => esc_html__( 'This is a sidebar position that sits above the footer menu and copyright', 'awesome-blog-lite' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'awesome_blog_widgets_init' ); /** * Count the number of widgets to enable resizable widgets * in the bottom group. */ function awesome_blog_bottom() { $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-md-12'; break; case '2': $class = 'col-md-6'; break; case '3': $class = 'col-md-4'; break; case '4': $class = 'col-sm-6 col-md-3'; break; } if ( $class ) echo 'class="' . esc_attr($class) . '"'; }