add_section( $section_id, array( 'title' => __( 'Contact form 7', 'ayyash' ), 'priority' => 35, 'capability' => 'edit_theme_options', ) ); // Form Columns $setting_id = 'layout_wpcf7_columns'; $wp_customize->add_setting( $setting_id, array( 'default' => themeoo_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'themeoo_sanitize_choice', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, $setting_id, array( 'label' => __( 'Form Columns', 'ayyash' ), 'section' => $section_id, 'settings' => $setting_id, 'type' => 'select', 'choices' => themeoo_get_choices( $setting_id ), ) ) ); // Form Top and Bottom Padding $setting_id = 'layout_wpcf7_top_bottom_padding'; $wp_customize->add_setting( $setting_id, array( 'default' => themeoo_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Themeoo_Customizer_Range_Control( $wp_customize, $setting_id, array( 'label' => __( 'Form Top Bottom Padding', 'ayyash' ), 'section' => $section_id, 'settings' => $setting_id, 'choices' => themeoo_get_choices( $setting_id ), ) ) ); // Form Left and Right Padding $setting_id = 'layout_wpcf7_left_right_padding'; $wp_customize->add_setting( $setting_id, array( 'default' => themeoo_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Themeoo_Customizer_Range_Control( $wp_customize, $setting_id, array( 'label' => __( 'Form Left Right Padding', 'ayyash' ), 'section' => $section_id, 'settings' => $setting_id, 'choices' => themeoo_get_choices( $setting_id ), ) ) ); // Form Border Radius $setting_id = 'layout_wpcf7_border_radius'; $wp_customize->add_setting( $setting_id, array( 'default' => themeoo_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Themeoo_Customizer_Range_Control( $wp_customize, $setting_id, array( 'label' => __( 'Form Border Radius', 'ayyash' ), 'section' => $section_id, 'settings' => $setting_id, 'choices' => themeoo_get_choices( $setting_id ), ) ) ); // Form Gap $setting_id = 'layout_wpcf7_gap'; $wp_customize->add_setting( $setting_id, array( 'default' => themeoo_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Themeoo_Customizer_Range_Control( $wp_customize, $setting_id, array( 'label' => __( 'Form gap', 'ayyash' ), 'section' => $section_id, 'settings' => $setting_id, 'choices' => themeoo_get_choices( $setting_id ), ) ) ); // Textarea Height $setting_id = 'layout_wpcf7_textarea_height'; $wp_customize->add_setting( $setting_id, array( 'default' => themeoo_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new Themeoo_Customizer_Range_Control( $wp_customize, $setting_id, array( 'label' => __( 'Textarea Height', 'ayyash' ), 'section' => $section_id, 'settings' => $setting_id, 'choices' => themeoo_get_choices( $setting_id ), ) ) ); // Button Position $setting_id = 'layout_wpcf7_btn_position'; $wp_customize->add_setting( $setting_id, array( 'default' => themeoo_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'themeoo_sanitize_choice', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, $setting_id, array( 'label' => __( 'Form Columns', 'ayyash' ), 'section' => $section_id, 'settings' => $setting_id, 'type' => 'select', 'choices' => themeoo_get_choices( $setting_id ), ) ) ); // footer scroll to top $setting_id = 'layout_wpcf7_inline_acceptance_btn'; $wp_customize->add_setting( $setting_id, array( 'default' => themeoo_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, $setting_id, array( 'label' => __( 'Inline Acceptance and Button', 'ayyash' ), 'section' => $section_id, 'settings' => $setting_id, 'type' => 'checkbox', ) ) ); } }