add_section('atlanta_services', array( 'title' => __('Home Service Section', 'atlanta'), 'description' => '', 'panel' => 'frontpage', 'priority' => 140, ) ); $wp_customize->add_setting('show_services',array( 'default' => false, 'sanitize_callback' => 'atlanta_customizer_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'show_services', array( 'settings' => 'show_services', 'section' => 'atlanta_services', 'label' => __('Service Show/hide Option','atlanta'), 'type' => 'checkbox' )); // Services title $wp_customize->add_setting('atlanta_services_title', array( 'default' => '', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('atlanta_services_title', array( 'label' => __('Service Title', 'atlanta'), 'section' => 'atlanta_services', 'priority' => 10 ) ); for( $i = 1; $i <=6; $i++ ){ $wp_customize->add_setting( 'atlanta_service_page'.$i, array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'atlanta_service_page'.$i, array( 'settings' => 'atlanta_service_page'.$i, 'section' => 'atlanta_services', 'type' => 'dropdown-pages', 'label' => __( 'Select Service Page ', 'atlanta' ).$i ) ); $wp_customize->add_setting( 'atlanta_service_page_icon'.$i, array( 'default' => 'fa-download', 'sanitize_callback' => 'atlanta_sanitize_text' ) ); $wp_customize->add_control( new Atlanta_Fontawesome_Icon_Chooser( $wp_customize, 'atlanta_service_page_icon'.$i, array( 'settings' => 'atlanta_service_page_icon'.$i, 'section' => 'atlanta_services', 'type' => 'icon', 'label' => __( 'FontAwesome Icon', 'atlanta' ) ) ) ); } ?>