__( 'Main Sidebar','kho'), 'id' => 'main_sidebar', 'description' => __( 'Widgets in this area are used in the default sidebar. This sidebar will be used for your standard blog posts.','kho' ), 'before_widget' => '', 'before_title' => '<'. esc_attr( $sidebar_headings ) .' class="widget-title">', 'after_title' => '', ) ); // Custom Post Types $post_types = es_active_post_types(); foreach ( $post_types as $post_type ) { if ( post_type_exists( $post_type ) ) { $obj = get_post_type_object( $post_type ); $post_type_name = $obj->labels->name; if ( es_option( $post_type .'_custom_sidebar', '1' ) ) { register_sidebar( array ( 'name' => $post_type_name .' '. __( 'Sidebar','kho'), 'id' => $post_type .'_sidebar', 'description' => __( 'Widgets in this area are used in the sidebar for this custom post type.','kho' ), 'before_widget' => '', 'before_title' => '<'. esc_attr( $sidebar_headings ) .' class="widget-title">', 'after_title' => '', ) ); } } } // bbPress if ( class_exists( 'bbPress' ) ) { register_sidebar( array ( 'name' => __( 'bbPress Sidebar','kho'), 'id' => 'bbpress_sidebar', 'description' => __( 'Widgets in this area are used in the bbPress sidebar.','kho' ), 'before_widget' => '', 'before_title' => '<'. esc_attr( $sidebar_headings ) .' class="widget-title">', 'after_title' => '', ) ); } // Footer if( es_option( 'widgetized_footer', '1' ) ) { // Footer 1 register_sidebar( array ( 'name' => __( 'Footer 1','kho'), 'id' => 'footer_one', 'description' => __( 'Widgets in this area are used in the first footer column','kho' ), 'before_widget' => '', 'before_title' => '<'. esc_attr( $footer_headings ) .' class="widget-title">', 'after_title' => '', ) ); // Footer 2 if ( es_option('footer_col','4') > "1" ) { register_sidebar( array ( 'name' => __( 'Footer 2','kho'), 'id' => 'footer_two', 'description' => __( 'Widgets in this area are used in the second footer column','kho' ), 'before_widget' => '', 'before_title' => '<'. esc_attr( $footer_headings ) .' class="widget-title">', 'after_title' => '' ) ); } // Footer 3 if ( es_option('footer_col','4') > "2" ) { register_sidebar( array ( 'name' => __( 'Footer 3','kho'), 'id' => 'footer_three', 'description' => __( 'Widgets in this area are used in the third footer column','kho' ), 'before_widget' => '', 'before_title' => '<'. esc_attr( $footer_headings ) .' class="widget-title">', 'after_title' => '', ) ); } // Footer 4 if ( es_option('footer_col','4') > "3" ) { register_sidebar( array ( 'name' => __( 'Footer 4','kho'), 'id' => 'footer_four', 'description' => __( 'Widgets in this area are used in the fourth footer column','kho' ), 'before_widget' => '', 'before_title' => '<'. esc_attr( $footer_headings ) .' class="widget-title">', 'after_title' => '', ) ); } } // End Footer widgets } // End es_register_sidebars