separator( $wp_customize, esc_html__( 'Posts', 'brisko' ), self::$section ); /** * Featured image */ $wp_customize->add_setting( 'featured_image', array( 'default' => sanitize_html_class( 'show-image' ), 'capability' => 'edit_theme_options', 'transport' => self::$transport, 'sanitize_callback' => 'sanitize_html_class', ) ); $wp_customize->add_control( 'featured_image', array( 'label' => esc_html__( 'Featured Image Display', 'brisko' ), 'description' => esc_html__( 'featured Image on single posts', 'brisko' ), 'section' => self::$section, 'type' => 'select', 'choices' => array( 'this-display-show' => esc_html__( 'Display on single posts', 'brisko' ), 'this-display-none' => esc_html__( 'Remove on single posts', 'brisko' ), ), ) ); /** * Post Details */ ( new Control() )->header_title( $wp_customize, esc_html__( 'Post Details', 'brisko' ), self::$section ); // Display Post Categories . $wp_customize->add_setting( 'display_post_categories', array( 'default' => absint( 1 ), 'capability' => 'edit_theme_options', 'transport' => self::$transport, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'display_post_categories', array( 'label' => esc_html__( 'Display Post Categories', 'brisko' ), 'section' => self::$section, 'type' => 'checkbox', ) ); // Display tags. $wp_customize->add_setting( 'display_tags', array( 'default' => absint( 1 ), 'capability' => 'edit_theme_options', 'transport' => self::$transport, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'display_tags', array( 'label' => esc_html__( 'Display Post Tags', 'brisko' ), 'section' => self::$section, 'type' => 'checkbox', ) ); // Display previous and next post navigation. $wp_customize->add_setting( 'display_previous_next', array( 'default' => absint( 1 ), 'capability' => 'edit_theme_options', 'transport' => self::$transport, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'display_previous_next', array( 'label' => esc_html__( 'Display Previous and Next Navigation', 'brisko' ), 'section' => self::$section, 'type' => 'checkbox', ) ); // Post width. $wp_customize->add_setting( 'post_width', array( 'sanitize_callback' => 'sanitize_html_class', 'default' => 'container', ) ); $wp_customize->add_control( 'post_width', array( 'label' => esc_html__( 'Post width', 'brisko' ), 'description' => esc_html__( 'set width for all single post pages', 'brisko' ), 'section' => self::$section, 'type' => 'select', 'choices' => array( 'container' => esc_html__( 'Boxed', 'brisko' ), 'container-fluid' => esc_html__( 'Full width', 'brisko' ), ), ) ); } }