add_section('apex_parts_home_settings', array( 'title' => __('Home Options', 'apex-parts'), 'priority' => 90, 'panel' => 'home_option_panel' ) ); //Home Main Heading $wp_customize->add_setting( 'apex_parts_main_heading', array( 'default' => esc_html__('Growth Your Business','apex-parts'), 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'apex_parts_main_heading', array( 'label' => __( 'Home Main Heading', 'apex-parts' ), 'section' => 'apex_parts_home_settings', 'type' => 'text', ) ); //Home Heading $wp_customize->add_setting( 'apex_parts_heading', array( 'default' => esc_html__('Building The Right Foundation Of Your Business','apex-parts'), 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'apex_parts_heading', array( 'label' => __( 'Home Heading', 'apex-parts' ), 'section' => 'apex_parts_home_settings', 'type' => 'text', ) ); //Home Content $wp_customize->add_setting( 'apex_parts_content', array( 'default' => esc_html__('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.','apex-parts'), 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'apex_parts_content', array( 'label' => __( 'Home Content', 'apex-parts' ), 'section' => 'apex_parts_home_settings', 'type' => 'text', ) ); //Home Button $wp_customize->add_setting( 'apex_parts_home_button_text', array( 'default' => esc_html__('View A Services','apex-parts'), 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'apex_parts_home_button_text', array( 'label' => __( 'Home Button Text', 'apex-parts' ), 'section' => 'apex_parts_home_settings', 'type' => 'text', ) ); $wp_customize->add_setting( 'apex_parts_home_button_url', array( 'default' => '', 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'apex_parts_home_button_url', array( 'label' => __( 'Home Button Link', 'apex-parts' ), 'section' => 'apex_parts_home_settings', 'type' => 'url', ) ); //-------------------------------------------------------// // Director $wp_customize->add_section('apex_parts_profile_settings', array( 'title' => __('Profile Options', 'apex-parts'), 'priority' => 90, 'panel' => 'home_option_panel' ) ); //Director Image $wp_customize->add_setting('apex_parts_director_image', array( 'default' => get_template_directory_uri() . '/assets/images/profile.png', 'sanitize_callback' => 'apex_parts_sanitize_image' )); $wp_customize->add_control( new WP_Customize_Image_Control ($wp_customize, 'apex_parts_director_image', array( 'label' => __( 'Profile Image', 'apex-parts' ), 'section' => 'apex_parts_profile_settings', 'settings' => 'apex_parts_director_image' ) )); //Director Name $wp_customize->add_setting( 'apex_parts_director_name', array( 'default' => esc_html__('James Jackson','apex-parts'), 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'apex_parts_director_name', array( 'label' => __( 'Profile Name', 'apex-parts' ), 'section' => 'apex_parts_profile_settings', 'type' => 'text', ) ); //Director Designation $wp_customize->add_setting( 'apex_parts_director_designation', array( 'default' => esc_html__('CEO','apex-parts'), 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'apex_parts_director_designation', array( 'label' => __( 'Designation', 'apex-parts' ), 'section' => 'apex_parts_profile_settings', 'type' => 'text', ) ); //Director Content $wp_customize->add_setting( 'apex_parts_director_content', array( 'default' => esc_html__('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.','apex-parts'), 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'apex_parts_director_content', array( 'label' => __( 'Profile Content', 'apex-parts' ), 'section' => 'apex_parts_profile_settings', 'type' => 'text', ) ); //-------------------------------------------------------// // Images $wp_customize->add_section('apex_parts_images_settings', array( 'title' => __('Image Options', 'apex-parts'), 'priority' => 90, 'panel' => 'home_option_panel' ) ); //Image 1 $wp_customize->add_setting('apex_parts_image_one', array( 'default' => get_template_directory_uri() . '/assets/images/image1.png', 'sanitize_callback' => 'apex_parts_sanitize_image', )); $wp_customize->add_control( new WP_Customize_Image_Control ($wp_customize, 'apex_parts_image_one', array( 'label' => __( 'Image One', 'apex-parts' ), 'section' => 'apex_parts_images_settings', 'settings' => 'apex_parts_image_one' ) )); //Image 2 $wp_customize->add_setting('apex_parts_image_two', array( 'default' => get_template_directory_uri() . '/assets/images/image2.png', 'sanitize_callback' => 'apex_parts_sanitize_image', )); $wp_customize->add_control( new WP_Customize_Image_Control ($wp_customize, 'apex_parts_image_two', array( 'label' => __( 'Image Two', 'apex-parts' ), 'section' => 'apex_parts_images_settings', 'settings' => 'apex_parts_image_two' ) ));