Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function appointment_service_customizer( $wp_customize ) {
- //Service section panel
- $wp_customize->add_panel( 'appointment_service_options', array(
- 'priority' => 600,
- 'capability' => 'edit_theme_options',
- 'title' => __('Service Settings', 'appointment'),
- ) );
- $wp_customize->add_section( 'service_section_head' , array(
- 'title' => __('Service Heading ', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 50,
- ) );
- //Hide Index Service Section
- $wp_customize->add_setting(
- 'appointment_options[service_section_enabled]',
- array(
- 'default' => '',
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option'
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_section_enabled]',
- array(
- 'label' => __('Hide Home Service Section','appointment'),
- 'section' => 'service_section_head',
- 'type' => 'checkbox',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_title]',
- array(
- 'default' => __('Our Services','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' => 'option'
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_title]',
- array(
- 'label' => __('Service Title','appointment'),
- 'section' => 'service_section_head',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_description]',
- array(
- 'default' => __('Duis aute irure dolor in reprehenderit in voluptate velit cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupid non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.','appointment'),
- 'sanitize_callback' => '',
- 'type' => 'option'
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_description]',
- array(
- 'label' => __('Service Description','appointment'),
- 'section' => 'service_section_head',
- 'type' => 'text',
- 'sanitize_callback' => '',
- )
- );
- //service section one
- $wp_customize->add_section( 'service_section_one' , array(
- 'title' => __('Service Section one', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 100,
- 'sanitize_callback' => '',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_one_icon]', array(
- 'sanitize_callback' => '',
- 'default' => 'fa-mobile',
- 'capability' => 'edit_theme_options',
- 'type' => 'option',
- ));
- $wp_customize->add_control( 'appointment_options[service_one_icon]', array(
- 'label' => __('Service icon', 'appointment'),
- 'style' => 'background-color: red',
- 'section' => 'service_section_one',
- 'type' => 'text',
- ));
- $wp_customize->add_setting(
- 'appointment_options[service_one_title]',
- array(
- 'default' => __('Easy to Use','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' => 'option'
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_one_title]',
- array(
- 'label' => __('Title one','appointment'),
- 'section' => 'service_section_one',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_one_description]',
- array(
- 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option'
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_one_description]',
- array(
- 'label' => __('Description One','appointment'),
- 'section' => 'service_section_one',
- 'type' => 'text',
- )
- );
- //Service First icon link
- $wp_customize ->add_setting (
- 'appointment_options[service_one_link]',
- array(
- 'default' => __('#','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ) );
- $wp_customize->add_control (
- 'appointment_options[service_one_link]',
- array (
- 'label' => __('Service Title & Icon Link','appointment'),
- 'section' => 'service_section_one',
- 'type' => 'text',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_one_link_target]',
- array('capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- 'default' => false
- ));
- $wp_customize->add_control(
- 'appointment_options[service_one_link_target]',
- array(
- 'type' => 'checkbox',
- 'label' => __('Open link new tab/window','appointment'),
- 'section' => 'service_section_one',
- )
- );
- //Second service
- $wp_customize->add_section( 'service_section_two' , array(
- 'title' => __('Service Section Two', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 200,
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_two_icon]',
- array(
- 'type' =>'option',
- 'default' => 'fa-bell',
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_two_icon]',
- array(
- 'label' => __('Icon Two Like: fa-group','appointment'),
- 'section' => 'service_section_two',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_two_title]',
- array(
- 'default' => __('Easy to Use','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_two_title]',
- array(
- 'label' => __('Title two' ,'appointment'),
- 'section' => 'service_section_two',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_two_description]',
- array(
- 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_two_description]',
- array(
- 'label' => __('Description two','appointment'),
- 'section' => 'service_section_two',
- 'type' => 'text',
- )
- );
- //Service two icon link
- $wp_customize ->add_setting (
- 'appointment_options[service_two_link]',
- array(
- 'default' => __('#','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ) );
- $wp_customize->add_control (
- 'appointment_options[service_two_link]',
- array (
- 'label' => __('Service Title & Icon Link','appointment'),
- 'section' => 'service_section_two',
- 'type' => 'text',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_two_link_target]',
- array('capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ));
- $wp_customize->add_control(
- 'appointment_options[service_two_link_target]',
- array(
- 'type' => 'checkbox',
- 'label' => __('Open link new tab/window','appointment'),
- 'section' => 'service_section_two',
- )
- );
- //Third Service section
- $wp_customize->add_section( 'service_section_three' , array(
- 'title' => __('Service Section Three', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 300,
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_three_icon]',
- array(
- 'default' => 'fa-laptop',
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_three_icon]',
- array(
- 'label' => __('Icon three Like: fa-group','appointment'),
- 'section' => 'service_section_three',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_three_title]',
- array(
- 'default' => __('Easy to Use','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' =>'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_three_title]',
- array(
- 'label' => __('Title three','appointment'),
- 'section' => 'service_section_three',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_three_description]',
- array(
- 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' =>'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_three_description]',
- array(
- 'label' => __('Description three','appointment'),
- 'section' => 'service_section_three',
- 'type' => 'text',
- )
- );
- //Service three icon link
- $wp_customize ->add_setting (
- 'appointment_options[service_three_link]',
- array(
- 'default' => __('#','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ) );
- $wp_customize->add_control (
- 'appointment_options[service_three_link]',
- array (
- 'label' => __('Service Title & Icon Link','appointment'),
- 'section' => 'service_section_three',
- 'type' => 'text',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_three_link_target]',
- array('capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ));
- $wp_customize->add_control(
- 'appointment_options[service_three_link_target]',
- array(
- 'type' => 'checkbox',
- 'label' => __('Open link new tab/window','appointment'),
- 'section' => 'service_section_three',
- )
- );
- //Four Service section
- $wp_customize->add_section( 'service_section_four' , array(
- 'title' => __('Service Section Four', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 400,
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_four_icon]',
- array(
- 'default' => 'fa-support',
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' =>'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_four_icon]',
- array(
- 'label' => __('Icon Four Like: fa-group','appointment'),
- 'section' => 'service_section_four',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_four_title]',
- array(
- 'default' => __('Easy to Use','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' => 'option'
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_four_title]',
- array(
- 'label' => __('Title four','appointment'),
- 'section' => 'service_section_four',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_four_description]',
- array(
- 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option'
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_four_description]',
- array(
- 'label' => __('Description four','appointment'),
- 'section' => 'service_section_four',
- 'type' => 'text',
- 'sanitize_callback' => '',
- )
- );
- //Service Four icon link
- $wp_customize ->add_setting (
- 'appointment_options[service_four_link]',
- array(
- 'default' => __('#','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ) );
- $wp_customize->add_control (
- 'appointment_options[service_four_link]',
- array (
- 'label' => __('Service Title & Icon Link','appointment'),
- 'section' => 'service_section_four',
- 'type' => 'text',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_four_link_target]',
- array('capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ));
- $wp_customize->add_control(
- 'appointment_options[service_four_link_target]',
- array(
- 'type' => 'checkbox',
- 'label' => __('Open link new tab/window','appointment'),
- 'section' => 'service_section_four',
- )
- );
- //Five service section
- $wp_customize->add_section( 'service_section_five' , array(
- 'title' => __('Service Section Five', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 500,
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_five_icon]',
- array(
- 'default' => 'fa-code',
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_five_icon]',
- array(
- 'label' => __('Icon five Like: fa-group','appointment'),
- 'section' => 'service_section_five',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_five_title]',
- array(
- 'default' => __('Easy to Use','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_five_title]',
- array(
- 'label' => __('Title five','appointment'),
- 'section' => 'service_section_five',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_five_description]',
- array(
- 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option'
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_five_description]',
- array(
- 'label' => __('Description five','appointment'),
- 'section' => 'service_section_five',
- 'type' => 'text',
- )
- );
- //Service Five icon link
- $wp_customize ->add_setting (
- 'appointment_options[service_five_link]',
- array(
- 'default' => __('#','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ) );
- $wp_customize->add_control (
- 'appointment_options[service_five_link]',
- array (
- 'label' => __('Service Title & Icon Link','appointment'),
- 'section' => 'service_section_five',
- 'type' => 'text',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_five_link_target]',
- array('capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ));
- $wp_customize->add_control(
- 'appointment_options[service_five_link_target]',
- array(
- 'type' => 'checkbox',
- 'label' => __('Open link new tab/window','appointment'),
- 'section' => 'service_section_five',
- )
- );
- //Six service section
- $wp_customize->add_section( 'service_section_six' , array(
- 'title' => __('Service Section Six', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 600,
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_six_icon]',
- array(
- 'default' => 'fa-cog',
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_six_icon]',
- array(
- 'label' => __('Icon six Like: fa-group','appointment'),
- 'section' => 'service_section_six',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_six_title]',
- array(
- 'default' => __('Easy to Use','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_six_title]',
- array(
- 'label' => __('Title six','appointment'),
- 'section' => 'service_section_six',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_six_description]',
- array(
- 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_six_description]',
- array(
- 'label' => __('Description six','appointment'),
- 'section' => 'service_section_six',
- 'type' => 'text',
- )
- );
- //Service six icon link
- $wp_customize ->add_setting (
- 'appointment_options[service_six_link]',
- array(
- 'default' => __('#','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ) );
- $wp_customize->add_control (
- 'appointment_options[service_six_link]',
- array (
- 'label' => __('Service Title & Icon Link','appointment'),
- 'section' => 'service_section_six',
- 'type' => 'text',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_six_link_target]',
- array('capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ));
- $wp_customize->add_control(
- 'appointment_options[service_six_link_target]',
- array(
- 'type' => 'checkbox',
- 'label' => __('Open link new tab/window','appointment'),
- 'section' => 'service_section_six',
- )
- );
- //Seven service section
- $wp_customize->add_section( 'service_section_seven' , array(
- 'title' => __('Service Section Seven', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 700,
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_seven_icon]',
- array(
- 'default' => __('','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_seven_icon]',
- array(
- 'label' => __('Icon seven Like: fa-group','appointment'),
- 'section' => 'service_section_seven',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_seven_title]',
- array(
- 'default' => __('','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_seven_title]',
- array(
- 'label' => __('Title seven','appointment'),
- 'section' => 'service_section_seven',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_seven_description]',
- array(
- 'default' => __('','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_seven_description]',
- array(
- 'label' => __('Description seven','appointment'),
- 'section' => 'service_section_seven',
- 'type' => 'text',
- )
- );
- //Service seven icon link
- $wp_customize ->add_setting (
- 'appointment_options[service_seven_link]',
- array(
- 'default' => __('#','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ) );
- $wp_customize->add_control (
- 'appointment_options[service_seven_link]',
- array (
- 'label' => __('Service Title & Icon Link','appointment'),
- 'section' => 'service_section_seven',
- 'type' => 'text',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_seven_link_target]',
- array('capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ));
- $wp_customize->add_control(
- 'appointment_options[service_seven_link_target]',
- array(
- 'type' => 'checkbox',
- 'label' => __('Open link new tab/window','appointment'),
- 'section' => 'service_section_seven',
- )
- );
- //eight service section
- $wp_customize->add_section( 'service_section_eight' , array(
- 'title' => __('Service Section Eight', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 800,
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_eight_icon]',
- array(
- 'default' => __('','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_eight_icon]',
- array(
- 'label' => __('Icon eight Like: fa-group','appointment'),
- 'section' => 'service_section_eight',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_eight_title]',
- array(
- 'default' => __('','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_eight_title]',
- array(
- 'label' => __('Title eight','appointment'),
- 'section' => 'service_section_eight',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_eight_description]',
- array(
- 'default' => __('','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_eight_description]',
- array(
- 'label' => __('Description eight','appointment'),
- 'section' => 'service_section_eight',
- 'type' => 'text',
- )
- );
- //Service eight link
- $wp_customize ->add_setting (
- 'appointment_options[service_eight_link]',
- array(
- 'default' => __('#','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ) );
- $wp_customize->add_control (
- 'appointment_options[service_eight_link]',
- array (
- 'label' => __('Service Title & Icon Link','appointment'),
- 'section' => 'service_section_eight',
- 'type' => 'text',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_eight_link_target]',
- array('capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ));
- $wp_customize->add_control(
- 'appointment_options[service_eight_link_target]',
- array(
- 'type' => 'checkbox',
- 'label' => __('Open link new tab/window','appointment'),
- 'section' => 'service_section_eight',
- )
- );
- //nine service section
- $wp_customize->add_section( 'service_section_nine' , array(
- 'title' => __('Service Section Nine', 'appointment'),
- 'panel' => 'appointment_service_options',
- 'priority' => 900,
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_nine_icon]',
- array(
- 'default' => __('','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_nine_icon]',
- array(
- 'label' => __('Icon nine Like: fa-group','appointment'),
- 'section' => 'service_section_nine',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_nine_title]',
- array(
- 'default' => __('','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => 'appointment_service_sanitize_html',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_nine_title]',
- array(
- 'label' => __('Title nine','appointment'),
- 'section' => 'service_section_nine',
- 'type' => 'text',
- )
- );
- $wp_customize->add_setting(
- 'appointment_options[service_nine_description]',
- array(
- 'default' => __('','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- )
- );
- $wp_customize->add_control(
- 'appointment_options[service_nine_description]',
- array(
- 'label' => __('Description nine','appointment'),
- 'section' => 'service_section_nine',
- 'type' => 'text',
- )
- );
- //Service nine link
- $wp_customize ->add_setting (
- 'appointment_options[service_nine_link]',
- array(
- 'default' => __('#','appointment'),
- 'capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ) );
- $wp_customize->add_control (
- 'appointment_options[service_nine_link]',
- array (
- 'label' => __('Service Title & Icon Link','appointment'),
- 'section' => 'service_section_nine',
- 'type' => 'text',
- ) );
- $wp_customize->add_setting(
- 'appointment_options[service_nine_link_target]',
- array('capability' => 'edit_theme_options',
- 'sanitize_callback' => '',
- 'type' => 'option',
- ));
- $wp_customize->add_control(
- 'appointment_options[service_nine_link_target]',
- array(
- 'type' => 'checkbox',
- 'label' => __('Open link new tab/window','appointment'),
- 'section' => 'service_section_nine',
- )
- );
- function appointment_service_sanitize_html( $input ) {
- return force_balance_tags( $input );
- }
- }
- add_action( 'customize_register', 'appointment_service_customizer' );
- ?>
Add Comment
Please, Sign In to add comment