add_section( 'footer_recommended_post_sectioon', array( 'title' => __( 'Footer Related Post', 'ajima' ), 'panel' => 'ajima_option_panel', ) ); /* Home Page Layout */ $wp_customize->add_setting( 'ajima_options[enable_footer_recommended_post_section]', array( 'default' => $default_options['enable_footer_recommended_post_section'], 'sanitize_callback' => 'ajima_sanitize_checkbox', ) ); $wp_customize->add_control( 'ajima_options[enable_footer_recommended_post_section]', array( 'label' => __( 'Enable Footer Related Post Section', 'ajima' ), 'section' => 'footer_recommended_post_sectioon', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'ajima_options[footer_recommended_post_title]', array( 'default' => $default_options['footer_recommended_post_title'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'ajima_options[footer_recommended_post_title]', array( 'label' => __( 'Footer Recoommended Posts Title', 'ajima' ), 'section' => 'footer_recommended_post_sectioon', 'type' => 'text', ) ); $wp_customize->add_setting( 'ajima_options[select_cat_for_footer_recommended_post]', array( 'default' => $default_options['select_cat_for_footer_recommended_post'], 'sanitize_callback' => 'ajima_sanitize_select', ) ); $wp_customize->add_control( 'ajima_options[select_cat_for_footer_recommended_post]', array( 'label' => __( 'Choose Footer Related Post Category', 'ajima' ), 'section' => 'footer_recommended_post_sectioon', 'type' => 'select', 'choices' => ajima_post_category_list(), ) ); $wp_customize->add_setting( 'ajima_options[enable_category_meta]', array( 'default' => $default_options['enable_category_meta'], 'sanitize_callback' => 'ajima_sanitize_checkbox', ) ); $wp_customize->add_control( 'ajima_options[enable_category_meta]', array( 'label' => __( 'Enable Category Meta', 'ajima' ), 'section' => 'footer_recommended_post_sectioon', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'ajima_options[enable_post_excerpt]', array( 'default' => $default_options['enable_post_excerpt'], 'sanitize_callback' => 'ajima_sanitize_checkbox', ) ); $wp_customize->add_control( 'ajima_options[enable_post_excerpt]', array( 'label' => __( 'Enable Post Excerpt Meta', 'ajima' ), 'section' => 'footer_recommended_post_sectioon', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'ajima_options[enable_date_meta]', array( 'default' => $default_options['enable_date_meta'], 'sanitize_callback' => 'ajima_sanitize_checkbox', ) ); $wp_customize->add_control( 'ajima_options[enable_date_meta]', array( 'label' => __( 'Enable Date Meta', 'ajima' ), 'section' => 'footer_recommended_post_sectioon', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'ajima_options[enable_author_meta]', array( 'default' => $default_options['enable_author_meta'], 'sanitize_callback' => 'ajima_sanitize_checkbox', ) ); $wp_customize->add_control( 'ajima_options[enable_author_meta]', array( 'label' => __( 'Enable Author Meta', 'ajima' ), 'section' => 'footer_recommended_post_sectioon', 'type' => 'checkbox', ) );