add_section( 'posts_settings', array( 'title' => esc_html__( 'Posts Settings', 'ashlar' ), 'priority' => 35, 'capability' => 'edit_theme_options', 'panel' => 'theme_option_panel', ) ); $wp_customize->add_setting('ed_post_author', array( 'default' => $ashlar_default['ed_post_author'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_checkbox', ) ); $wp_customize->add_control('ed_post_author', array( 'label' => esc_html__('Enable Posts Author', 'ashlar'), 'section' => 'posts_settings', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_post_date', array( 'default' => $ashlar_default['ed_post_date'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_checkbox', ) ); $wp_customize->add_control('ed_post_date', array( 'label' => esc_html__('Enable Posts Date', 'ashlar'), 'section' => 'posts_settings', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_post_category', array( 'default' => $ashlar_default['ed_post_category'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_checkbox', ) ); $wp_customize->add_control('ed_post_category', array( 'label' => esc_html__('Enable Posts Category', 'ashlar'), 'section' => 'posts_settings', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_post_tags', array( 'default' => $ashlar_default['ed_post_tags'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_checkbox', ) ); $wp_customize->add_control('ed_post_tags', array( 'label' => esc_html__('Enable Posts Tags', 'ashlar'), 'section' => 'posts_settings', 'type' => 'checkbox', ) ); $wp_customize->add_setting('ed_post_excerpt', array( 'default' => $ashlar_default['ed_post_excerpt'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_checkbox', ) ); $wp_customize->add_control('ed_post_excerpt', array( 'label' => esc_html__('Enable Posts Excerpt', 'ashlar'), 'section' => 'posts_settings', 'type' => 'checkbox', ) ); // Enable Disable Post. $wp_customize->add_setting('post_video_aspect_ration', array( 'default' => $ashlar_default['post_video_aspect_ration'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_select', ) ); $wp_customize->add_control('post_video_aspect_ration', array( 'label' => esc_html__('Global Video Aspect Ratio', 'ashlar'), 'section' => 'posts_settings', 'type' => 'select', 'choices' => array( 'default' => esc_html__( 'Default', 'ashlar' ), 'square' => esc_html__( 'Square', 'ashlar' ), 'portrait' => esc_html__( 'Portrait', 'ashlar' ), 'landscape' => esc_html__( 'Landscape', 'ashlar' ), ), ) ); $wp_customize->add_setting('ed_autoplay', array( 'default' => $ashlar_default['ed_autoplay'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'ashlar_sanitize_select', ) ); $wp_customize->add_control('ed_autoplay', array( 'label' => esc_html__('Global Video Autoplay', 'ashlar'), 'section' => 'posts_settings', 'type' => 'select', 'choices' => array( 'autoplay-enable' => esc_html__( 'Autoplay Enable', 'ashlar' ), 'autoplay-disable' => esc_html__( 'Autoplay Disable', 'ashlar' ), ), ) );