add_section( 'blog_cafe_global_layout', array( 'title' => esc_html__( 'Global Layout', 'blog-cafe' ), 'panel' => 'blog_cafe_general_panel', ) ); // Global site layout setting $wp_customize->add_setting( 'blog_cafe_site_layout', array( 'sanitize_callback' => 'blog_cafe_sanitize_select', 'default' => 'wide', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'blog_cafe_site_layout', array( 'section' => 'blog_cafe_global_layout', 'label' => esc_html__( 'Site layout', 'blog-cafe' ), 'type' => 'radio', 'choices' => array( 'boxed' => esc_html__( 'Boxed', 'blog-cafe' ), 'wide' => esc_html__( 'Wide', 'blog-cafe' ), ), ) ); // Global archive layout setting $wp_customize->add_setting( 'blog_cafe_archive_sidebar', array( 'sanitize_callback' => 'blog_cafe_sanitize_select', 'default' => 'right', ) ); $wp_customize->add_control( 'blog_cafe_archive_sidebar', array( 'section' => 'blog_cafe_global_layout', 'label' => esc_html__( 'Archive Sidebar', 'blog-cafe' ), 'description' => esc_html__( 'This option works on all archive pages like: 404, search, date, category and so on.', 'blog-cafe' ), 'type' => 'radio', 'choices' => array( 'left' => esc_html__( 'Left', 'blog-cafe' ), 'right' => esc_html__( 'Right', 'blog-cafe' ), ), ) ); // Blog layout setting $wp_customize->add_setting( 'blog_cafe_blog_sidebar', array( 'sanitize_callback' => 'blog_cafe_sanitize_select', 'default' => 'right', ) ); $wp_customize->add_control( 'blog_cafe_blog_sidebar', array( 'section' => 'blog_cafe_global_layout', 'label' => esc_html__( 'Blog Sidebar', 'blog-cafe' ), 'description' => esc_html__( 'This option works on blog and "Your latest posts"', 'blog-cafe' ), 'type' => 'radio', 'choices' => array( 'left' => esc_html__( 'Left', 'blog-cafe' ), 'right' => esc_html__( 'Right', 'blog-cafe' ), ), ) ); // Global page layout setting $wp_customize->add_setting( 'blog_cafe_global_page_layout', array( 'sanitize_callback' => 'blog_cafe_sanitize_select', 'default' => 'right', ) ); $wp_customize->add_control( 'blog_cafe_global_page_layout', array( 'section' => 'blog_cafe_global_layout', 'label' => esc_html__( 'Global page sidebar', 'blog-cafe' ), '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.', 'blog-cafe' ), 'type' => 'radio', 'choices' => array( 'left' => esc_html__( 'Left', 'blog-cafe' ), 'right' => esc_html__( 'Right', 'blog-cafe' ), ), ) ); // Global post layout setting $wp_customize->add_setting( 'blog_cafe_global_post_layout', array( 'sanitize_callback' => 'blog_cafe_sanitize_select', 'default' => 'right', ) ); $wp_customize->add_control( 'blog_cafe_global_post_layout', array( 'section' => 'blog_cafe_global_layout', 'label' => esc_html__( 'Global post sidebar', 'blog-cafe' ), 'description' => esc_html__( 'This option works only on single posts. This setting can be overridden for single post from the metabox too.', 'blog-cafe' ), 'type' => 'radio', 'choices' => array( 'left' => esc_html__( 'Left', 'blog-cafe' ), 'right' => esc_html__( 'Right', 'blog-cafe' ), ), ) ); ?>