'; $wp_customize->add_section( 'atmospheres_price_' , array( 'title' => __( 'Price List', 'atmospheres' ), 'priority' => 4, ) ); $wp_customize->add_setting( 'atmospheres_priceing_activate', array ( 'sanitize_callback' => 'atmospheres__sanitize_checkbox', 'default' => false ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_priceing_activate', array( 'label' => __( 'Activate on: Homepage, Blog Page', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'checkbox', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_title', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'All PLANS', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_title', array( 'label' => __( 'Section Title ', 'atmospheres' ), 'description' => sprintf( '%s', $faq1 ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_button_title', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'GET STARTED', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_button_title', array( 'label' => __( 'Button Title ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_button_url', array ( 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_button_url', array( 'label' => __( 'Enter Button url', 'atmospheres' ), 'section' => 'atmospheres_price_', ) ) ); $wp_customize->add_setting( 'xmlf_pr3_color', array ( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#AD3903' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'xmlf_pr3_color', array( 'label' => __( 'Background Color', 'atmospheres' ), 'section' => 'atmospheres_price_', ) ) ); $wp_customize->add_setting( 'xmlf_pr3_icons_color', array ( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#eaeaea' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'xmlf_pr3_icons_color', array( 'label' => __( 'Icons Color', 'atmospheres' ), 'section' => 'atmospheres_price_', ) ) ); $wp_customize->add_setting( 'xmlf_pr3_border_color', array ( 'sanitize_callback' => 'sanitize_hex_color', 'default' => '#AD3903' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'xmlf_pr3_border_color', array( 'label' => __( 'Borders Color', 'atmospheres' ), 'section' => 'atmospheres_price_', ) ) ); /************************************ Plan 1 ************************************/ $wp_customize->add_setting( 'atmospheres_priceing_deactivate_1', array ( 'sanitize_callback' => 'atmospheres__sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_priceing_deactivate_1', array( 'label' => __( 'Deactivate Plan 1 ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'checkbox', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_plan_1_', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'BASIC', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_plan_1_', array( 'label' => __( 'Add Plan 1', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_price1', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => '$2.90/mo', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_price1', array( 'label' => __( 'Plan Price ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_select_button_title1', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'SELECT', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_select_button_title1', array( 'label' => __( 'Button Title ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_button_url_1', array ( 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_button_url_1', array( 'label' => __( 'Enter Button url', 'atmospheres' ), 'section' => 'atmospheres_price_', ) ) ); for($a=1;$a<=9;$a++) { $wp_customize->add_setting( 'atmospheres_pricing_text_1_'.$a, array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'Description', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_text_1_'.$a, array( 'label' => __( 'Option ', 'atmospheres' ), 'description' => __( 'Recommended 30 characters max ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); } /************************************ Plan 2 ************************************/ $wp_customize->add_setting( 'atmospheres_priceing_deactivate_2', array ( 'sanitize_callback' => 'atmospheres__sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_priceing_deactivate_2', array( 'label' => __( 'Deactivate Plan 2 ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'checkbox', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_plan_2_', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'PLUS', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_plan_2_', array( 'label' => __( 'Add Plan 2', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_price2', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => '$4.90/mo', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_price2', array( 'label' => __( 'Plan Price ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_select_button_title2', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'SELECT', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_select_button_title2', array( 'label' => __( 'Button Title ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_button_url_2', array ( 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_button_url_2', array( 'label' => __( 'Enter Button url', 'atmospheres' ), 'section' => 'atmospheres_price_', ) ) ); for($a=1;$a<=9;$a++) { $wp_customize->add_setting( 'atmospheres_pricing_text_2_'.$a, array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'Description', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_text_2_'.$a, array( 'label' => __( 'Option', 'atmospheres' ), 'description' => __( 'Recommended 30 characters max ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); } /************************************ Plan 3 ************************************/ $wp_customize->add_setting( 'atmospheres_priceing_deactivate_3', array ( 'sanitize_callback' => 'atmospheres__sanitize_checkbox', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_priceing_deactivate_3', array( 'label' => __( 'Deactivate Plan 3 ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'checkbox', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_plan_3_', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'PRO', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_plan_3_', array( 'label' => __( 'Add Plan 3', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_price3', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => '$22.90/mo', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_price3', array( 'label' => __( 'Plan Price ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_select_button_title3', array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'SELECT', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_select_button_title3', array( 'label' => __( 'Button Title ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); $wp_customize->add_setting( 'atmospheres_pricing_button_url_3', array ( 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_button_url_3', array( 'label' => __( 'Enter Button url', 'atmospheres' ), 'section' => 'atmospheres_price_', ) ) ); for($a=1;$a<=9;$a++) { $wp_customize->add_setting( 'atmospheres_pricing_text_3_'.$a, array ( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'Description', ) ); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'atmospheres_pricing_text_3_'.$a, array( 'label' => __( 'Option', 'atmospheres' ), 'description' => __( 'Recommended 30 characters max ', 'atmospheres' ), 'section' => 'atmospheres_price_', 'type' => 'text', ) ) ); } } add_action( 'customize_register', 'atmospheres_price_customize_register' ); // Hide Inputs in Customize Panel // function atmospheres_hide_pricing_customize_styles( $input ) { ?>