esc_html__( 'Banner', 'bike-shop' ), 'id' => 'banner', 'description' => esc_html__( 'For Images and Sliders.', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); // shop description register_sidebar( array( 'name' => esc_html__( 'Shop Description (top)', 'bike-shop' ), 'id' => 'top', 'description' => esc_html__( 'This is a top single sidebar position just below the banner area.', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Home Intro Post Section', 'bike-shop' ), 'id' => 'home_intro_post', 'description' => esc_html__( 'homepage intro post', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

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

', 'after_title' => '

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

', 'after_title' => '

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

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Breadcrumbs', 'bike-shop' ), 'id' => 'breadcrumbs', 'description' => esc_html__( 'For adding breadcrumb navigation if using a plugin, or you can add content here.', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => esc_html__( 'Content Top 1', 'bike-shop' ), 'id' => 'ctop1', 'description' => esc_html__( 'Content Top 1 position', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Content Top 2', 'bike-shop' ), 'id' => 'ctop2', 'description' => esc_html__( 'Content Top 2 position', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Content Top 3', 'bike-shop' ), 'id' => 'ctop3', 'description' => esc_html__( 'Content Top 3 position', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Content Top 4', 'bike-shop' ), 'id' => 'ctop4', 'description' => esc_html__( 'Content Top 4 position', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Content Bottom 1', 'bike-shop' ), 'id' => 'cbottom1', 'description' => esc_html__( 'Content Bottom 1 position', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Content Bottom 2', 'bike-shop' ), 'id' => 'cbottom2', 'description' => esc_html__( 'Content Bottom 2 position', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Content Bottom 3', 'bike-shop' ), 'id' => 'cbottom3', 'description' => esc_html__( 'Content Bottom 3 position', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Content Bottom 4', 'bike-shop' ), 'id' => 'cbottom4', 'description' => esc_html__( 'Content Bottom 4 position', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Inset Top', 'bike-shop' ), 'id' => 'inset-top', 'description' => esc_html__( 'A single sidebar position that sits just above your main content between the left and right sidebar containers.', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Inset Bottom', 'bike-shop' ), 'id' => 'inset-bottom', 'description' => esc_html__( 'A single sidebar position that sits just below your main content between the left and right sidebar containers.', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Bottom 1', 'bike-shop' ), 'id' => 'bottom1', 'description' => esc_html__( 'Bottom 1 position', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

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

', 'after_title' => '

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

', 'after_title' => '

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

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Shop Sidebar', 'bike-shop' ), 'id' => 'shop', 'description' => esc_html__( 'Woocommerce left and right sidebar', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer', 'bike-shop' ), 'id' => 'footer', 'description' => esc_html__( 'This is a sidebar position that sits above the footer menu and copyright', 'bike-shop' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'bike_shop_widgets_init' ); /** * Count the number of widgets to enable resizable widgets * in the content top group. */ function bike_shop_ctop() { $count = 0; if ( is_active_sidebar( 'ctop1' ) ) $count++; if ( is_active_sidebar( 'ctop2' ) ) $count++; if ( is_active_sidebar( 'ctop3' ) ) $count++; if ( is_active_sidebar( 'ctop4' ) ) $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) . '"'; } /** * Count the number of widgets to enable resizable widgets * in the content bottom group. */ function bike_shop_cbottom() { $count = 0; if ( is_active_sidebar( 'cbottom1' ) ) $count++; if ( is_active_sidebar( 'cbottom2' ) ) $count++; if ( is_active_sidebar( 'cbottom3' ) ) $count++; if ( is_active_sidebar( 'cbottom4' ) ) $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) . '"'; } /** * Count the number of widgets to enable resizable widgets * in the bottom group. */ function bike_shop_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) . '"'; }