'custom', 'settings' => 'business_directory_elementor_enable_logo_text', 'section' => 'title_tagline', 'default' => '

' . __( 'Enable / Disable Site Title and Tagline', 'business-directory-elementor' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'switch', 'settings' => 'business_directory_elementor_display_header_title', 'label' => esc_html__( 'Site Title Enable / Disable Button', 'business-directory-elementor' ), 'section' => 'title_tagline', 'default' => '1', 'priority' => 10, 'choices' => [ 'on' => esc_html__( 'Enable', 'business-directory-elementor' ), 'off' => esc_html__( 'Disable', 'business-directory-elementor' ), ], ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'switch', 'settings' => 'business_directory_elementor_display_header_text', 'label' => esc_html__( 'Tagline Enable / Disable Button', 'business-directory-elementor' ), 'section' => 'title_tagline', 'default' => '1', 'priority' => 10, 'choices' => [ 'on' => esc_html__( 'Enable', 'business-directory-elementor' ), 'off' => esc_html__( 'Disable', 'business-directory-elementor' ), ], ] ); // Additional Settings Kirki::add_section( 'business_directory_elementor_additional_setting', array( 'title' => esc_html__( 'Additional Settings', 'business-directory-elementor' ), 'description' => esc_html__( 'Additional Settings of themes', 'business-directory-elementor' ), 'priority' => 10, ) ); Kirki::add_field( 'theme_config_id', [ 'type' => 'toggle', 'settings' => 'business_directory_elementor_preloader_hide', 'label' => esc_html__( 'Here you can enable or disable your preloader.', 'business-directory-elementor' ), 'section' => 'business_directory_elementor_additional_setting', 'default' => '0', 'priority' => 10, ] ); // HEADER SECTION Kirki::add_section( 'business_directory_elementor_section_header', array( 'title' => esc_html__( 'Header Settings', 'business-directory-elementor' ), 'description' => esc_html__( 'Here you can add header information.', 'business-directory-elementor' ), 'priority' => 160, ) ); Kirki::add_field( 'theme_config_id', [ 'type' => 'switch', 'settings' => 'business_directory_elementor_sticky_header', 'label' => esc_html__( 'Enable/Disable Sticky Header', 'business-directory-elementor' ), 'section' => 'business_directory_elementor_section_header', 'default' => 0, 'priority' => 2, 'choices' => [ 'on' => esc_html__( 'Enable', 'business-directory-elementor' ), 'off' => esc_html__( 'Disable', 'business-directory-elementor' ), ], ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'business_directory_elementor_header_location_heading', 'section' => 'business_directory_elementor_section_header', 'default' => '

' . __( 'Add Location', 'business-directory-elementor' ) . '

', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'settings' => 'business_directory_elementor_header_opening_heading', 'section' => 'business_directory_elementor_section_header', 'default' => '', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'business_directory_elementor_header_phone_number_heading', 'section' => 'business_directory_elementor_section_header', 'default' => '

' . __( 'Add Phone Number', 'business-directory-elementor' ) . '

', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'settings' => 'business_directory_elementor_header_phone_number', 'section' => 'business_directory_elementor_section_header', 'default' => '', 'sanitize_callback' => 'business_directory_elementor_sanitize_phone_number', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'business_directory_elementor_enable_email_heading', 'section' => 'business_directory_elementor_section_header', 'default' => '

' . __( 'Add Email Address', 'business-directory-elementor' ) . '

', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'settings' => 'business_directory_elementor_header_email', 'section' => 'business_directory_elementor_section_header', 'default' => '', 'sanitize_callback' => 'sanitize_email', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'business_directory_elementor_header_button_heading', 'section' => 'business_directory_elementor_section_header', 'default' => '

' . __( 'Add Header Button', 'business-directory-elementor' ) . '

', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'label' => esc_html__( 'Btn Text', 'business-directory-elementor' ), 'settings' => 'business_directory_elementor_header_button_text', 'section' => 'business_directory_elementor_section_header', 'default' => '', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'url', 'label' => esc_html__( 'Btn Url', 'business-directory-elementor' ), 'settings' => 'business_directory_elementor_header_button_url', 'section' => 'business_directory_elementor_section_header', 'default' => '', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'business_directory_elementor_enable_socail_link', 'section' => 'business_directory_elementor_section_header', 'default' => '

' . __( 'Social Media Link', 'business-directory-elementor' ) . '

', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'repeater', 'section' => 'business_directory_elementor_section_header', 'row_label' => [ 'type' => 'field', 'value' => esc_html__( 'Social Icon', 'business-directory-elementor' ), 'field' => 'link_text', ], 'button_label' => esc_html__('Add New Social Icon', 'business-directory-elementor' ), 'settings' => 'business_directory_elementor_social_links_settings', 'default' => '', 'fields' => [ 'link_text' => [ 'type' => 'text', 'label' => esc_html__( 'Icon', 'business-directory-elementor' ), 'description' => esc_html__( 'Add the fontawesome class ex: "fab fa-facebook-f".', 'business-directory-elementor' ), 'default' => '', ], 'link_url' => [ 'type' => 'url', 'label' => esc_html__( 'Social Link', 'business-directory-elementor' ), 'description' => esc_html__( 'Add the social icon url here.', 'business-directory-elementor' ), 'default' => '', ], ], 'choices' => [ 'limit' => 20 ], ] ); // POST SECTION Kirki::add_section( 'business_directory_elementor_blog_post', array( 'title' => esc_html__( 'Post Settings', 'business-directory-elementor' ), 'description' => esc_html__( 'Here you can add post information.', 'business-directory-elementor' ), 'priority' => 160, ) ); Kirki::add_field( 'theme_config_id', [ 'type' => 'toggle', 'settings' => 'business_directory_elementor_date_hide', 'label' => esc_html__( 'Enable / Disable Post Date', 'business-directory-elementor' ), 'section' => 'business_directory_elementor_blog_post', 'default' => '1', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'toggle', 'settings' => 'business_directory_elementor_author_hide', 'label' => esc_html__( 'Enable / Disable Post Author', 'business-directory-elementor' ), 'section' => 'business_directory_elementor_blog_post', 'default' => '1', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'toggle', 'settings' => 'business_directory_elementor_comment_hide', 'label' => esc_html__( 'Enable / Disable Post Comment', 'business-directory-elementor' ), 'section' => 'business_directory_elementor_blog_post', 'default' => '1', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'business_directory_elementor_length_setting_heading', 'section' => 'business_directory_elementor_blog_post', 'default' => '

' . __( 'Blog Post Content Limit', 'business-directory-elementor' ) . '

', ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'number', 'settings' => 'business_directory_elementor_length_setting', 'section' => 'business_directory_elementor_blog_post', 'default' => '15', 'priority' => 10, 'choices' => [ 'min' => -10, 'max' => 40, 'step' => 1, ], ] ); // FOOTER SECTION Kirki::add_section( 'business_directory_elementor_footer_section', array( 'title' => esc_html__( 'Footer Settings', 'business-directory-elementor' ), 'description' => esc_html__( 'Here you can change copyright text', 'business-directory-elementor' ), 'priority' => 160, ) ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'business_directory_elementor_footer_text_heading', 'section' => 'business_directory_elementor_footer_section', 'default' => '

' . __( 'Footer Copyright Text', 'business-directory-elementor' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'text', 'settings' => 'business_directory_elementor_footer_text', 'section' => 'business_directory_elementor_footer_section', 'default' => '', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'custom', 'settings' => 'business_directory_elementor_footer_enable_heading', 'section' => 'business_directory_elementor_footer_section', 'default' => '

' . __( 'Enable / Disable Footer Link', 'business-directory-elementor' ) . '

', 'priority' => 10, ] ); Kirki::add_field( 'theme_config_id', [ 'type' => 'switch', 'settings' => 'business_directory_elementor_copyright_enable', 'label' => esc_html__( 'Section Enable / Disable', 'business-directory-elementor' ), 'section' => 'business_directory_elementor_footer_section', 'default' => '1', 'priority' => 10, 'choices' => [ 'on' => esc_html__( 'Enable', 'business-directory-elementor' ), 'off' => esc_html__( 'Disable', 'business-directory-elementor' ), ], ] ); }