add_section( 'buzzhub_global_layout', array( 'title' => esc_html__( 'Global Layout', 'buzzhub' ), 'panel' => 'buzzhub_general_panel', ) ); // Global archive layout setting $wp_customize->add_setting( 'buzzhub_archive_sidebar', array( 'sanitize_callback' => 'buzzhub_sanitize_select', 'default' => 'right', ) ); $wp_customize->add_control( 'buzzhub_archive_sidebar', array( 'section' => 'buzzhub_global_layout', 'label' => esc_html__( 'Archive Sidebar', 'buzzhub' ), 'description' => esc_html__( 'This option works on all archive pages like: 404, search, date, category, "Your latest posts" and so on.', 'buzzhub' ), 'type' => 'radio', 'choices' => array( 'right' => esc_html__( 'Right', 'buzzhub' ), 'no' => esc_html__( 'No Sidebar', 'buzzhub' ), ), ) ); // Global page layout setting $wp_customize->add_setting( 'buzzhub_global_page_layout', array( 'sanitize_callback' => 'buzzhub_sanitize_select', 'default' => 'right', ) ); $wp_customize->add_control( 'buzzhub_global_page_layout', array( 'section' => 'buzzhub_global_layout', 'label' => esc_html__( 'Global page sidebar', 'buzzhub' ), 'description' => esc_html__( 'This option works only on single pages including "Posts page". This setting can be overridden for single page from the metabox too.', 'buzzhub' ), 'type' => 'radio', 'choices' => array( 'right' => esc_html__( 'Right', 'buzzhub' ), 'no' => esc_html__( 'No Sidebar', 'buzzhub' ), ), ) ); // Global post layout setting $wp_customize->add_setting( 'buzzhub_global_post_layout', array( 'sanitize_callback' => 'buzzhub_sanitize_select', 'default' => 'right', ) ); $wp_customize->add_control( 'buzzhub_global_post_layout', array( 'section' => 'buzzhub_global_layout', 'label' => esc_html__( 'Global post sidebar', 'buzzhub' ), 'description' => esc_html__( 'This option works only on single posts. This setting can be overridden for single post from the metabox too.', 'buzzhub' ), 'type' => 'radio', 'choices' => array( 'right' => esc_html__( 'Right', 'buzzhub' ), 'no' => esc_html__( 'No Sidebar', 'buzzhub' ), ), ) );