'edit_theme_options',
'option_type' => 'theme_mod',
) );
Kirki::add_panel( 'medical_theme_option', array(
'priority' => 10,
'title' => esc_html__( 'Medical Homepage Option', 'medical-hospital-lab' ),
) );
Kirki::add_section( 'medical_home', array(
'title' => esc_html__( 'Homepage' ,'medical-hospital-lab'),
'panel' => 'medical_theme_option',
'capability' => 'edit_theme_options',
) );
Kirki::add_section( 'slider_settings' ,
array(
'title' => esc_html__( 'Slider' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_section( 'company_partners' ,
array(
'title' => esc_html__( 'Department Section' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_section( 'company_features' ,
array(
'title' => esc_html__( 'Our Services' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_section( 'call_to_action' ,
array(
'title' => esc_html__( 'Call to Action' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_section( 'our_portfolio' ,
array(
'title' => esc_html__( 'Our Gallery' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_section( 'call_action_sec' ,
array(
'title' => esc_html__( 'About US' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_section( 'our_team' ,
array(
'title' => esc_html__( 'Our Team' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_section( 'fun_fact_section' ,
array(
'title' => esc_html__( 'Company Facts' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_section( 'testimonials' ,
array(
'title' => esc_html__( 'Our Testimonials' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_section( 'latest_blog' ,
array(
'title' => esc_html__( 'Blog' , 'medical-hospital-lab' ),
'priority' => 1,
'capability' => 'edit_theme_options',
'section' => 'medical_home',
)
);
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'slider_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'slider_settings',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'select',
'settings' => 'cons_slider_cat',
'label' => esc_attr__( 'Select a Slider Category' ,'medical-hospital-lab' ),
'section' => 'slider_settings',
'default' => 10,
'priority' => 10,
'multiple' => 1,
'choices' => fire_blog_all_categories( $select_none = true ),
/* translators: %s: term */
'description' => '
' . sprintf( __( 'In free version only two slides will be displayed. %s', 'medical-hospital-lab' ) , '
Upgrade to PRO ( $49 )' ) . '
',
));
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'services_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'company_features',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'features_title',
'label' => esc_html__( 'Title' ,'medical-hospital-lab' ),
'section' => 'company_features',
'default' => '',
'partial_refresh' => array(
'features_title' => array(
'selector' => '.features_title',
'render_callback' => 'medical_hospital_lab_features_title',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'textarea',
'settings' => 'features_subtitle',
'label' => esc_html__( 'Subtitle' ,'medical-hospital-lab' ),
'section' => 'company_features',
'default' => '',
'partial_refresh' => array(
'features_subtitle' => array(
'selector' => '.features_subtitle',
'render_callback' => 'medical_hospital_lab_features_subtitle',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'repeater',
'label' => esc_attr__( 'Company Services' ,'medical-hospital-lab' ),
'section' => 'company_features',
'row_label' => array(
'type' => 'text',
'value' => esc_attr__('Services' ,'medical-hospital-lab' ),
),
'settings' => 'blog_features',
'default' => array(
array(
'service_icon' => 'cubes',
'service_title' => esc_attr__( 'BUILDING', 'medical-hospital-lab' ),
'service_desc' => 'emporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates ',
),
),
'fields' => array(
'service_icon' => array(
'type' => 'text',
'label' => __( 'Icon', 'medical-hospital-lab' ),
'default' => 'cubes',
),
'service_title' => array(
'type' => 'text',
'label' => esc_attr__( 'Title' ,'medical-hospital-lab' ),
'default' => 'Your Title',
),
'service_desc' => array(
'type' => 'textarea',
'label' => esc_attr__( 'Description' ,'medical-hospital-lab' ),
'description' => esc_attr__( 'This will be short description' ,'medical-hospital-lab' ),
'default' => 'Short Desctiption ...',
),
),
'choices' => array(
'limit' => apply_filters( 'medical_hospital_lab_services', 3 )
),
/* translators: %s: term */
'description' => '' . sprintf( __( 'In free version only three services will be displayed. %s', 'medical-hospital-lab' ) , '
Upgrade to PRO ( $49 )' ) . '
',
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'call_to_action_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'call_to_action',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'select',
'settings' => 'action_page',
'label' => esc_attr__( 'Select call to action page' ,'medical-hospital-lab' ),
'section' => 'call_to_action',
'default' => '',
'priority' => 10,
'multiple' => 1,
'choices' => fire_blog_all_pages(),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'image',
'settings' => 'bg_image',
'label' => esc_attr__( 'Upload image' ,'medical-hospital-lab'),
'description' => esc_html__( 'Upload image for action page', 'medical-hospital-lab' ),
'section' => 'call_to_action',
'default' => '',
'output' => array(
array(
'element' => '.portfolio.medical section.new-step-section',
'property' => 'background-image',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'button_label2',
'label' => esc_html__( 'Enter page button label' ,'medical-hospital-lab' ),
'section' => 'call_to_action',
'default' => 'Read More',
'partial_refresh' => array(
'button_label' => array(
'selector' => '.page_link2',
'render_callback' => 'medical_hospital_lab_about_us_button_label2',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'gallery_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'our_portfolio',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'port_sec_title1',
'label' => esc_html__( 'Title' ,'medical-hospital-lab' ),
'section' => 'our_portfolio',
'default' => '',
'partial_refresh' => array(
'port_sec_title1' => array(
'selector' => '.portfo_heading1',
'render_callback' => 'medical_hospital_lab_wedding_heading',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'textarea',
'settings' => 'port_sec_subtitle1',
'label' => esc_html__( 'Subtitle' ,'medical-hospital-lab' ),
'section' => 'our_portfolio',
'default' => '',
'partial_refresh' => array(
'port_sec_subtitle1' => array(
'selector' => '.portfo_subheading1',
'render_callback' => 'medical_hospital_lab_wedding_subheading',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'select',
'settings' => 'portfo_cat1',
'label' => esc_attr__( 'Select a category' ,'medical-hospital-lab' ),
'section' => 'our_portfolio',
'default' => 1,
'priority' => 10,
'multiple' => apply_filters( 'medical_hospital_lab_gallery_limit', 2),
'choices' => fire_blog_all_categories(),
/* translators: %s: term */
'description' => '' . sprintf( __( 'In free version only two categories will be displayed. %s', 'medical-hospital-lab' ) , '
Upgrade to PRO ( $49 )' ) . '
',
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'our_team_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'our_team',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'team_title',
'label' => esc_html__( 'Title' ,'medical-hospital-lab' ),
'section' => 'our_team',
'default' => '',
'partial_refresh' => array(
'team_title' => array(
'selector' => '.team_heading',
'render_callback' => 'medical_hospital_lab_team_heading',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'textarea',
'settings' => 'team_subtitle',
'label' => esc_html__( 'Subtitle' ,'medical-hospital-lab' ),
'section' => 'our_team',
'default' => '',
'partial_refresh' => array(
'team_subtitle' => array(
'selector' => '.team_subheading',
'render_callback' => 'medical_hospital_lab_team_subheading',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'select',
'settings' => 'our_team_cat',
'label' => esc_attr__( 'Select a our team category' ,'medical-hospital-lab' ),
'section' => 'our_team',
'default' => 10,
'priority' => 10,
'choices' => fire_blog_all_categories( $select_none = true ),
/* translators: %s: term */
'description' => '' . sprintf( __( 'In free version only four team members will be displayed. %s', 'medical-hospital-lab' ) , '
Upgrade to PRO ( $49 )' ) . '
',
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'company_facts_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'image',
'settings' => 'facts_bg_image',
'label' => esc_attr__( 'Upload background image' ,'medical-hospital-lab'),
'description' => esc_html__( 'Upload image for background', 'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => '',
'output' => array(
array(
'element' => '.medical #fun-fact-section',
'property' => 'background-image',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'show_first',
'label' => esc_attr__( 'Show first fact details', 'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'fun_fact_icon1',
'label' => esc_html__( 'Enter icon code' ,'medical-hospital-lab' ),
'description' => 'You can get icon from here',
'section' => 'fun_fact_section',
'default' => 'heart',
'active_callback' => array(
array(
'setting' => 'show_first',
'operator' => '==',
'value' => true,
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'fun_fact_title1',
'label' => esc_html__( 'Enter fact title' ,'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => 'HEART TRANSPLANTS',
'active_callback' => array(
array(
'setting' => 'show_first',
'operator' => '==',
'value' => true,
),
),
'partial_refresh' => array(
'fun_fact_title1' => array(
'selector' => '.fact_title',
'render_callback' => 'medical_hospital_lab_fact_title',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'number',
'settings' => 'fun_fact_num1',
'label' => esc_html__( 'Enter total number' ,'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => 50,
'active_callback' => array(
array(
'setting' => 'show_first',
'operator' => '==',
'value' => true,
),
),
'partial_refresh' => array(
'fun_fact_num1' => array(
'selector' => '.fact_num',
'render_callback' => 'medical_hospital_lab_fact_num',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'show_second',
'label' => esc_attr__( 'Show second fact details', 'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'fun_fact_icon2',
'label' => esc_html__( 'Enter icon code' ,'medical-hospital-lab' ),
'description' => 'You can get icon from here',
'section' => 'fun_fact_section',
'default' => 'heartbeat',
'active_callback' => array(
array(
'setting' => 'show_second',
'operator' => '==',
'value' => true,
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'fun_fact_title2',
'label' => esc_html__( 'Enter fact title' ,'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => 'BARIATRIC SURGERY',
'active_callback' => array(
array(
'setting' => 'show_second',
'operator' => '==',
'value' => true,
),
),
'partial_refresh' => array(
'fun_fact_title2' => array(
'selector' => '.fact_title1',
'render_callback' => 'medical_hospital_lab_fact_title1',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'number',
'settings' => 'fun_fact_num2',
'label' => esc_html__( 'Enter total number' ,'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => '20',
'active_callback' => array(
array(
'setting' => 'show_second',
'operator' => '==',
'value' => true,
),
),
'partial_refresh' => array(
'fun_fact_num2' => array(
'selector' => '.fact_num1',
'render_callback' => 'medical_hospital_lab_fact_num1',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'show_third',
'label' => esc_attr__( 'Show third fact details', 'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'fun_fact_icon3',
'label' => esc_html__( 'Enter icon code' ,'medical-hospital-lab' ),
'description' => 'You can get icon from here',
'section' => 'fun_fact_section',
'default' => 'clock-o',
'active_callback' => array(
array(
'setting' => 'show_third',
'operator' => '==',
'value' => true,
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'fun_fact_title3',
'label' => esc_html__( 'Enter fact title' ,'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => 'CRITICAL CARE',
'active_callback' => array(
array(
'setting' => 'show_third',
'operator' => '==',
'value' => true,
),
),
'partial_refresh' => array(
'fun_fact_title3' => array(
'selector' => '.fact_title2',
'render_callback' => 'medical_hospital_lab_fact_title2',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'number',
'settings' => 'fun_fact_num3',
'label' => esc_html__( 'Enter total number' ,'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => 100,
'active_callback' => array(
array(
'setting' => 'show_third',
'operator' => '==',
'value' => true,
),
),
'partial_refresh' => array(
'fun_fact_num3' => array(
'selector' => '.fact_num2',
'render_callback' => 'medical_hospital_lab_fact_num3',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'show_fourth',
'label' => esc_attr__( 'Show fourth fact details', 'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'fun_fact_icon4',
'label' => esc_html__( 'Enter icon code' ,'medical-hospital-lab' ),
'description' => 'You can get icon from here',
'section' => 'fun_fact_section',
'default' => 'plus-square',
'active_callback' => array(
array(
'setting' => 'show_fourth',
'operator' => '==',
'value' => true,
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'fun_fact_title4',
'label' => esc_html__( 'Enter fact title' ,'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => 'EXTPART DOCTOR',
'active_callback' => array(
array(
'setting' => 'show_fourth',
'operator' => '==',
'value' => true,
),
),
'partial_refresh' => array(
'fun_fact_title4' => array(
'selector' => '.fact_title3',
'render_callback' => 'medical_hospital_lab_fact_title3',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'number',
'settings' => 'fun_fact_num4',
'label' => esc_html__( 'Enter total number of that fact' ,'medical-hospital-lab' ),
'section' => 'fun_fact_section',
'default' => 30,
'active_callback' => array(
array(
'setting' => 'show_fourth',
'operator' => '==',
'value' => true,
),
),
'partial_refresh' => array(
'fun_fact_num4' => array(
'selector' => '.fact_num3',
'render_callback' => 'medical_hospital_lab_fact_num4',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'blog_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'latest_blog',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'blog_title',
'label' => esc_html__( 'Title' ,'medical-hospital-lab' ),
'section' => 'latest_blog',
'default' => '',
'partial_refresh' => array(
'blog_title' => array(
'selector' => '.blog_heading',
'render_callback' => 'medical_hospital_lab_latest_posts_heading',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'textarea',
'settings' => 'blog_subtitle',
'label' => esc_html__( 'Subtitle' ,'medical-hospital-lab' ),
'section' => 'latest_blog',
'default' => '',
'partial_refresh' => array(
'blog_subtitle' => array(
'selector' => '.blog_subheading',
'render_callback' => 'medical_hospital_lab_latest_posts_subheading',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'select',
'settings' => 'blog_cat',
'label' => esc_attr__( 'Select a blog category' ,'medical-hospital-lab' ),
'section' => 'latest_blog',
'default' => 1,
'priority' => 10,
'choices' => fire_blog_all_categories( $select_none = true ),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'testimonials_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'testimonials',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'blog_title1',
'label' => esc_html__( 'Title' ,'medical-hospital-lab' ),
'section' => 'testimonials',
'default' => '',
'partial_refresh' => array(
'blog_title1' => array(
'selector' => '.blog_heading1',
'render_callback' => 'medical_hospital_lab_latest_posts_heading1',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'textarea',
'settings' => 'blog_subtitle1',
'label' => esc_html__( 'Subtitle' ,'medical-hospital-lab' ),
'section' => 'testimonials',
'default' => '',
'partial_refresh' => array(
'blog_subtitle1' => array(
'selector' => '.blog_subheading1',
'render_callback' => 'medical_hospital_lab_latest_posts_subheading1',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'select',
'settings' => 'blog_cat1',
'label' => esc_attr__( 'Select a testimonials category' ,'medical-hospital-lab' ),
'section' => 'testimonials',
'default' => 1,
'priority' => 10,
/* translators: %s: term */
'description' => '' . sprintf( __( 'In free version only three testimonials will be displayed. %s', 'medical-hospital-lab' ) , '
Upgrade to PRO ( $49 )' ) . '
',
'choices' => fire_blog_all_categories( $select_none = true ),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'calltoaction_2_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'call_action_sec',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'select',
'settings' => 'action_page2',
'label' => esc_attr__( 'Select about us page' ,'medical-hospital-lab' ),
'section' => 'call_action_sec',
'default' => 1,
'priority' => 10,
'multiple' => 1,
'choices' => fire_blog_all_pages(),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'image',
'settings' => 'backg_image2',
'label' => esc_attr__( 'Upload image' ,'medical-hospital-lab'),
'description' => esc_html__( 'Upload image for action section', 'medical-hospital-lab' ),
'section' => 'call_action_sec',
'default' => '',
'output' => array(
array(
'element' => '.medical .info-section',
'property' => 'background-image',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'button_label22',
'label' => esc_html__( 'Enter button label' ,'medical-hospital-lab' ),
'section' => 'call_action_sec',
'default' => 'Read More',
'partial_refresh' => array(
'button_label2' => array(
'selector' => '.page_link22',
'render_callback' => 'medical_hospital_lab_about_us_button_label22',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'checkbox',
'settings' => 'department_status',
'label' => esc_attr__( 'Hide this section ?', 'medical-hospital-lab' ),
'section' => 'company_partners',
'default' => false,
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'text',
'settings' => 'download_title',
'label' => esc_html__( 'Title' ,'medical-hospital-lab' ),
'section' => 'company_partners',
'default' => '',
'partial_refresh' => array(
'download_title' => array(
'selector' => '.download_heading',
'render_callback' => 'medical_hospital_lab_download_posts_heading',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'textarea',
'settings' => 'download_subtitle',
'label' => esc_html__( 'Subtitle' ,'medical-hospital-lab' ),
'section' => 'company_partners',
'default' => '',
'partial_refresh' => array(
'download_subtitle' => array(
'selector' => '.download_subheading',
'render_callback' => 'medical_hospital_lab_download_posts_subheading',
),
),
) );
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'select',
'settings' => 'partner_cat',
'label' => esc_attr__( 'Select a department category' ,'medical-hospital-lab' ),
'section' => 'company_partners',
'default' => 1,
'priority' => 10,
'choices' => fire_blog_all_categories( $select_none = true ),
/* translators: %s: term */
'description' => '' . sprintf( __( 'In free version only three departments will be displayed. %s', 'medical-hospital-lab' ) , '
Upgrade to PRO ( $49 )' ) . '
',
) );
// if you are using nested panels or sections then a blank field is needed
Kirki::add_field( 'medical-hospital-lab', array(
'type' => 'notice',
'section' => 'medical_home',
));
}
}
add_action( 'customize_register', 'medical_hospital_lab_custom_control_type' );
function medical_hospital_lab_custom_control_type( $wp_customize ){
class Medical_Hospital_Lab_Blank_Content extends WP_Customize_Control {
public $type = 'notice';
public function render_content() {
echo '';
}
}
// Register our custom control with Kirki
add_filter( 'kirki/control_types', 'medical_hospital_lab_kirki_notice_content' );
}
function medical_hospital_lab_kirki_notice_content( $controls ){
$controls['notice'] = 'Medical_Hospital_Lab_Blank_Content';
return $controls;
}