add_setting('asycom_hide_about_section', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', )); $wp_customize->add_control('asycom_hide_about_section', array( 'type' => 'checkbox', 'section' => 'asycom_about_options', // Add a default or your own section 'label' => esc_html__('Hide About Us Section?','asycom'), 'description' => esc_html__('The About Us section will disappear if you enable this option','asycom') )); /* About Us - Main title */ $wp_customize->add_setting('asycom_main_about_title', array( 'default' => esc_html__('ABOUT US', 'asycom'), 'sanitize_callback' => 'wp_filter_nohtml_kses', 'transport' => 'postMessage' ) ); $wp_customize->add_control('asycom_main_about_title', array( 'label' => esc_html__('Main Title', 'asycom'), 'section' => 'asycom_about_options', 'type' => 'text', 'description' => esc_html__('Main Title of About Us section', 'asycom') ) ); /* About Us - sub title */ $wp_customize->add_setting('asycom_about_sub_title', array( 'default' => 'Few words about us and our crew', 'sanitize_callback' => 'wp_filter_nohtml_kses', 'transport' => 'postMessage' )); $wp_customize->add_control('asycom_about_sub_title', array( 'label' => esc_html__('Sub Title', 'asycom'), 'section' => 'asycom_about_options', 'type' => 'text', 'description' => esc_html__('Sub Title of About Us section', 'asycom') ) ); /* About Us - Background */ $wp_customize->add_setting('asycom_about_bg', array( 'default' => ASYCOM_IMAGES . '/bg-04.jpg', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'asycom_about_bg', array( 'label' => esc_html__('Upload a backgound', 'asycom'), 'section' => 'asycom_about_options', 'settings' => 'asycom_about_bg' ) ) ); /* About Us - Background Color overlay */ $wp_customize->add_setting('asycom_about_bg_color', array( 'default' => 'rgb(0, 0, 0)', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'asycom_about_bg_color', array( 'label' => esc_html__('About Us Backgound color overlay', 'asycom'), 'section' => 'asycom_about_options', 'settings' => 'asycom_about_bg_color', )) ); /* About Us - desc */ $wp_customize->add_setting('asycom_about_desc', array( 'default' => 'Explore the history of the classic Lorem Ipsum passage and generate your own text using any number of characters, words, sentences or paragraphs. Commonly used as placeholder text in the graphic and print industrie', 'sanitize_callback' => 'wp_filter_nohtml_kses', 'transport' => 'postMessage' )); $wp_customize->add_control('asycom_about_desc', array( 'label' => esc_html__('Service Item 1 Description', 'asycom'), 'section' => 'asycom_about_options', 'type' => 'textarea' ) ); /* About Us - Image */ $wp_customize->add_setting('asycom_about_img', array( 'default' => ASYCOM_IMAGES . '/bardiaweb-logo-white.png', 'sanitize_callback' => 'esc_url_raw', 'transport' => 'postMessage' )); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'asycom_about_img', array( 'label' => esc_html__('Upload an image', 'asycom'), 'section' => 'asycom_about_options', 'settings' => 'asycom_about_img' ) ) ); /* About Us - skill 1 name */ $wp_customize->add_setting('asycom_about_skill_title_1', array( 'default' => 'HAPPY CUSTOMERS', 'sanitize_callback' => 'wp_filter_nohtml_kses', 'transport' => 'postMessage' )); $wp_customize->add_control('asycom_about_skill_title_1', array( 'label' => esc_html__('Skill title 1', 'asycom'), 'section' => 'asycom_about_options', 'type' => 'text', 'description' => esc_html__('Write the Skill title like Photshop or HTML or Happy customers', 'asycom') ) ); $wp_customize->add_setting('asycom_about_skill_percent_1', array( 'default' => '100', 'sanitize_callback' => 'wp_filter_nohtml_kses')); $wp_customize->add_control('asycom_about_skill_percent_1', array( 'label' => esc_html__('Skill percent 1', 'asycom'), 'section' => 'asycom_about_options', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1), 'type' => 'number', 'description' => esc_html__('Enter the Skill percent like 100% or 75%. You should Enter your number between 0 to 100', 'asycom') ) ); /* About Us - skill 2 name */ $wp_customize->add_setting('asycom_about_skill_title_2', array( 'default' => 'SUCCESSFULL PROJECTS', 'sanitize_callback' => 'wp_filter_nohtml_kses', 'transport' => 'postMessage' )); $wp_customize->add_control('asycom_about_skill_title_2', array( 'label' => esc_html__('Skill title 2', 'asycom'), 'section' => 'asycom_about_options', 'type' => 'text', 'description' => esc_html__('Write the Skill title like Photshop or HTML or Happy customers', 'asycom') ) ); $wp_customize->add_setting('asycom_about_skill_percent_2', array( 'default' => '90', 'sanitize_callback' => 'wp_filter_nohtml_kses')); $wp_customize->add_control('asycom_about_skill_percent_2', array( 'label' => esc_html__('Skill percent 2', 'asycom'), 'section' => 'asycom_about_options', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1), 'type' => 'number', 'description' => esc_html__('Enter the Skill percent like 100% or 75%. You should Enter your number between 0 to 100', 'asycom') ) ); /* About Us - skill 3 name */ $wp_customize->add_setting('asycom_about_skill_title_3', array( 'default' => 'DESIGN SKILL', 'sanitize_callback' => 'wp_filter_nohtml_kses', 'transport' => 'postMessage' )); $wp_customize->add_control('asycom_about_skill_title_3', array( 'label' => esc_html__('Skill title 3', 'asycom'), 'section' => 'asycom_about_options', 'type' => 'text', 'description' => esc_html__('Write the Skill title like Photshop or HTML or Happy customers', 'asycom') ) ); $wp_customize->add_setting('asycom_about_skill_percent_3', array( 'default' => '85', 'sanitize_callback' => 'wp_filter_nohtml_kses')); $wp_customize->add_control('asycom_about_skill_percent_3', array( 'label' => esc_html__('Skill percent 3', 'asycom'), 'section' => 'asycom_about_options', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1), 'type' => 'number', 'description' => esc_html__('Enter the Skill percent like 100% or 75%. You should Enter your number between 0 to 100', 'asycom') ) ); /* About Us - skill 4 name */ $wp_customize->add_setting('asycom_about_skill_title_4', array( 'default' => 'SEO', 'sanitize_callback' => 'wp_filter_nohtml_kses', 'transport' => 'postMessage' )); $wp_customize->add_control('asycom_about_skill_title_4', array( 'label' => esc_html__('Skill title 4', 'asycom'), 'section' => 'asycom_about_options', 'type' => 'text', 'description' => esc_html__('Write the Skill title like Photshop or HTML or Happy customers', 'asycom') ) ); $wp_customize->add_setting('asycom_about_skill_percent_4', array( 'default' => '95', 'sanitize_callback' => 'wp_filter_nohtml_kses')); $wp_customize->add_control('asycom_about_skill_percent_4', array( 'label' => esc_html__('Skill percent 4', 'asycom'), 'section' => 'asycom_about_options', 'input_attrs' => array('min' => 0, 'max' => 100, 'step' => 1), 'type' => 'number', 'description' => esc_html__('Enter the Skill percent like 100% or 75%. You should Enter your number between 0 to 100', 'asycom') ) );