'custom',
'settings' => 'elemento_business_enable_logo_text',
'section' => 'title_tagline',
'default' => '
' . __( 'Enable / Disable Site Title and Tagline', 'elemento-business' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'elemento_business_display_header_title',
'label' => esc_html__( 'Site Title Enable / Disable Button', 'elemento-business' ),
'section' => 'title_tagline',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'elemento-business' ),
'off' => esc_html__( 'Disable', 'elemento-business' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'elemento_business_display_header_text',
'label' => esc_html__( 'Tagline Enable / Disable Button', 'elemento-business' ),
'section' => 'title_tagline',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'elemento-business' ),
'off' => esc_html__( 'Disable', 'elemento-business' ),
],
] );
//ADDITIONAL SETTINGS
Kirki::add_section( 'elemento_business_additional_setting', array(
'title' => esc_html__( 'Additional Settings', 'elemento-business' ),
'description' => esc_html__( 'Additional Settings of themes', 'elemento-business' ),
'priority' => 10,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'elemento_business_preloader_hide',
'label' => esc_html__( 'Here you can enable or disable your preloader.', 'elemento-business' ),
'section' => 'elemento_business_additional_setting',
'default' => '0',
'priority' => 10,
] );
// HEADER SECTION
Kirki::add_section( 'elemento_business_section_header', array(
'title' => esc_html__( 'Header Settings', 'elemento-business' ),
'description' => esc_html__( 'Here you can add header information.', 'elemento-business' ),
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_enable_timing_heading',
'section' => 'elemento_business_section_header',
'default' => '' . __( 'Add Timing', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'elemento_business_header_timing',
'section' => 'elemento_business_section_header',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_header_phone_number_heading',
'section' => 'elemento_business_section_header',
'default' => '' . __( 'Add Phone Number', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'elemento_business_header_phone_number',
'section' => 'elemento_business_section_header',
'default' => '',
'sanitize_callback' => 'elemento_business_sanitize_phone_number',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_enable_email_heading',
'section' => 'elemento_business_section_header',
'default' => '' . __( 'Add Email Address', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'elemento_business_header_email',
'section' => 'elemento_business_section_header',
'default' => '',
'sanitize_callback' => 'sanitize_email',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_enable_header_btn_heading',
'section' => 'elemento_business_section_header',
'default' => '' . __( 'Add Button Text & URL', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'label' => esc_html__( 'Add Button Text', 'elemento-business' ),
'settings' => 'elemento_business_consultant_btn_text',
'section' => 'elemento_business_section_header',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'url',
'label' => esc_html__( 'Add Button URL', 'elemento-business' ),
'settings' => 'elemento_business_consultant_btn_url',
'section' => 'elemento_business_section_header',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_enable_socail_link',
'section' => 'elemento_business_section_header',
'default' => '' . __( 'Social Media Link', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'repeater',
'section' => 'elemento_business_section_header',
'row_label' => [
'type' => 'field',
'value' => esc_html__( 'Social Icon', 'elemento-business' ),
'field' => 'link_text',
],
'button_label' => esc_html__('Add New Social Icon', 'elemento-business' ),
'settings' => 'elemento_business_social_links_settings',
'default' => '',
'fields' => [
'link_text' => [
'type' => 'text',
'label' => esc_html__( 'Icon', 'elemento-business' ),
'description' => esc_html__( 'Add the fontawesome class ex: "fab fa-facebook-f".', 'elemento-business' ),
'default' => '',
],
'link_url' => [
'type' => 'url',
'label' => esc_html__( 'Social Link', 'elemento-business' ),
'description' => esc_html__( 'Add the social icon url here.', 'elemento-business' ),
'default' => '',
],
],
'choices' => [
'limit' => 20
],
] );
// FOOTER SECTION
Kirki::add_section( 'elemento_business_footer_section', array(
'title' => esc_html__( 'Footer Settings', 'elemento-business' ),
'description' => esc_html__( 'Here you can change copyright text', 'elemento-business' ),
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_footer_text_heading',
'section' => 'elemento_business_footer_section',
'default' => '' . __( 'Footer Copyright Text', 'elemento-business' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'elemento_business_footer_text',
'section' => 'elemento_business_footer_section',
'default' => '',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_footer_enable_heading',
'section' => 'elemento_business_footer_section',
'default' => '' . __( 'Enable / Disable Footer Link', 'elemento-business' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'elemento_business_copyright_enable',
'label' => esc_html__( 'Section Enable / Disable', 'elemento-business' ),
'section' => 'elemento_business_footer_section',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'elemento-business' ),
'off' => esc_html__( 'Disable', 'elemento-business' ),
],
] );
}