'edit_theme_options',
'option_type' => 'theme_mod',
));
Kirki::add_field( 'theme_config_id', [
'type' => '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,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'elemento_business_scroll_enable_setting',
'label' => esc_html__( 'Here you can enable or disable your scroller.', 'elemento-business' ),
'section' => 'elemento_business_additional_setting',
'default' => '0',
'priority' => 10,
] );
// TYPOGRAPHY SETTINGS
Kirki::add_panel( 'elemento_business_typography_panel', array(
'priority' => 10,
'title' => __( 'Typography', 'elemento-business' ),
) );
//Heading 1 Section
Kirki::add_section( 'elemento_business_h1_typography_setting', array(
'title' => __( 'Heading 1', 'elemento-business' ),
'panel' => 'elemento_business_typography_panel',
'priority' => 0,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_h1_typography_heading',
'section' => 'elemento_business_h1_typography_setting',
'default' => '' . __( 'Heading 1 Typography', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'typography',
'settings' => 'elemento_business_h1_typography_font',
'section' => 'elemento_business_h1_typography_setting',
'default' => [
'font-family' => 'Josefin Sans',
'variant' => '700',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
'text-transform' => '',
],
'transport' => 'auto',
'output' => [
[
'element' => 'h1',
'suffix' => '!important'
],
],
) );
//Heading 2 Section
Kirki::add_section( 'elemento_business_h2_typography_setting', array(
'title' => __( 'Heading 2', 'elemento-business' ),
'panel' => 'elemento_business_typography_panel',
'priority' => 0,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_h2_typography_heading',
'section' => 'elemento_business_h2_typography_setting',
'default' => '' . __( 'Heading 2 Typography', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'typography',
'settings' => 'elemento_business_h2_typography_font',
'section' => 'elemento_business_h2_typography_setting',
'default' => [
'font-family' => 'Josefin Sans',
'font-size' => '',
'variant' => '700',
'line-height' => '',
'letter-spacing' => '',
'text-transform' => '',
],
'transport' => 'auto',
'output' => [
[
'element' => 'h2',
'suffix' => '!important'
],
],
) );
//Heading 3 Section
Kirki::add_section( 'elemento_business_h3_typography_setting', array(
'title' => __( 'Heading 3', 'elemento-business' ),
'panel' => 'elemento_business_typography_panel',
'priority' => 0,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_h3_typography_heading',
'section' => 'elemento_business_h3_typography_setting',
'default' => '' . __( 'Heading 3 Typography', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'typography',
'settings' => 'elemento_business_h3_typography_font',
'section' => 'elemento_business_h3_typography_setting',
'default' => [
'font-family' => 'Josefin Sans',
'variant' => '700',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
'text-transform' => '',
],
'transport' => 'auto',
'output' => [
[
'element' => 'h3',
'suffix' => '!important'
],
],
) );
//Heading 4 Section
Kirki::add_section( 'elemento_business_h4_typography_setting', array(
'title' => __( 'Heading 4', 'elemento-business' ),
'panel' => 'elemento_business_typography_panel',
'priority' => 0,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_h4_typography_heading',
'section' => 'elemento_business_h4_typography_setting',
'default' => '' . __( 'Heading 4 Typography', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'typography',
'settings' => 'elemento_business_h4_typography_font',
'section' => 'elemento_business_h4_typography_setting',
'default' => [
'font-family' => 'Josefin Sans',
'variant' => '700',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
'text-transform' => '',
],
'transport' => 'auto',
'output' => [
[
'element' => 'h4',
'suffix' => '!important'
],
],
) );
//Heading 5 Section
Kirki::add_section( 'elemento_business_h5_typography_setting', array(
'title' => __( 'Heading 5', 'elemento-business' ),
'panel' => 'elemento_business_typography_panel',
'priority' => 0,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_h5_typography_heading',
'section' => 'elemento_business_h5_typography_setting',
'default' => '' . __( 'Heading 5 Typography', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'typography',
'settings' => 'elemento_business_h5_typography_font',
'section' => 'elemento_business_h5_typography_setting',
'default' => [
'font-family' => 'Josefin Sans',
'variant' => '700',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
'text-transform' => '',
],
'transport' => 'auto',
'output' => [
[
'element' => 'h5',
'suffix' => '!important'
],
],
) );
//Heading 6 Section
Kirki::add_section( 'elemento_business_h6_typography_setting', array(
'title' => __( 'Heading 6', 'elemento-business' ),
'panel' => 'elemento_business_typography_panel',
'priority' => 0,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_h6_typography_heading',
'section' => 'elemento_business_h6_typography_setting',
'default' => '' . __( 'Heading 6 Typography', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'typography',
'settings' => 'elemento_business_h6_typography_font',
'section' => 'elemento_business_h6_typography_setting',
'default' => [
'font-family' => 'Josefin Sans',
'variant' => '700',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '',
'text-transform' => '',
],
'transport' => 'auto',
'output' => [
[
'element' => 'h6',
'suffix' => '!important'
],
],
) );
//body Typography
Kirki::add_section( 'elemento_business_body_typography_setting', array(
'title' => __( 'Content Typography', 'elemento-business' ),
'panel' => 'elemento_business_typography_panel',
'priority' => 0,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_body_typography_heading',
'section' => 'elemento_business_body_typography_setting',
'default' => '' . __( 'Content Typography', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'typography',
'settings' => 'elemento_business_body_typography_font',
'section' => 'elemento_business_body_typography_setting',
'default' => [
'font-family' => 'Josefin Sans',
'variant' => '',
],
'transport' => 'auto',
'output' => [
[
'element' => 'body',
'suffix' => '!important'
],
],
) );
// 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' => 'switch',
'settings' => 'elemento_business_sticky_header',
'label' => esc_html__( 'Enable/Disable Sticky Header', 'elemento-business' ),
'section' => 'elemento_business_section_header',
'default' => 0,
'priority' => 2,
'choices' => [
'on' => esc_html__( 'Enable', 'elemento-business'),
'off' => esc_html__( 'Disable', 'elemento-business'),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_menu_size_heading',
'section' => 'elemento_business_section_header',
'default' => '' . __( 'Menu Font Size(px)', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'elemento_business_menu_size',
'label' => __( 'Enter a value in pixels. Example:20px', 'elemento-business' ),
'type' => 'text',
'section' => 'elemento_business_section_header',
'transport' => 'auto',
'output' => array(
array(
'element' => array( '#main-menu a', '#main-menu ul li a', '#main-menu li a'),
'property' => 'font-size',
),
),
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_menu_text_transform_heading',
'section' => 'elemento_business_section_header',
'default' => '' . __( 'Menu Text Transform', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'settings' => 'elemento_business_menu_text_transform',
'section' => 'elemento_business_section_header',
'default' => 'capitalize',
'choices' => [
'none' => esc_html__( 'Normal', 'elemento-business' ),
'uppercase' => esc_html__( 'Uppercase', 'elemento-business' ),
'lowercase' => esc_html__( 'Lowercase', 'elemento-business' ),
'capitalize' => esc_html__( 'Capitalize', 'elemento-business' ),
],
'output' => array(
array(
'element' => array( '#main-menu a', '#main-menu ul li a', '#main-menu li a'),
'property' => ' text-transform',
),
),
) );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'elemento_business_menu_color',
'label' => __( 'Menu Color', 'elemento-business' ),
'type' => 'color',
'section' => 'elemento_business_section_header',
'transport' => 'auto',
'default' => '#222222',
'choices' => [
'alpha' => true,
],
'output' => array(
array(
'element' => array( '#main-menu a', '#main-menu ul li a', '#main-menu li a'),
'property' => 'color',
),
),
) );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'elemento_business_menu_hover_color',
'label' => __( 'Menu Hover Color', 'elemento-business' ),
'type' => 'color',
'default' => '#1a73e9',
'section' => 'elemento_business_section_header',
'transport' => 'auto',
'choices' => [
'alpha' => true,
],
'output' => array(
array(
'element' => array( '#main-menu a:hover', '#main-menu ul li a:hover', '#main-menu li:hover > a','#main-menu a:focus','#main-menu li.focus > a','#main-menu ul li.current-menu-item > a','#main-menu ul li.current_page_item > a','#main-menu ul li.current-menu-parent > a','#main-menu ul li.current_page_ancestor > a','#main-menu ul li.current-menu-ancestor > a'),
'property' => 'color',
),
),
) );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'elemento_business_submenu_color',
'label' => __( 'Submenu Color', 'elemento-business' ),
'type' => 'color',
'section' => 'elemento_business_section_header',
'transport' => 'auto',
'default' => '#222222',
'choices' => [
'alpha' => true,
],
'output' => array(
array(
'element' => array( '#main-menu ul.children li a', '#main-menu ul.sub-menu li a'),
'property' => 'color',
),
),
) );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'elemento_business_submenu_hover_color',
'label' => __( 'Submenu Hover Color', 'elemento-business' ),
'type' => 'color',
'section' => 'elemento_business_section_header',
'transport' => 'auto',
'default' => '#fff',
'choices' => [
'alpha' => true,
],
'output' => array(
array(
'element' => array( '#main-menu ul.children li a:hover', '#main-menu ul.sub-menu li a:hover'),
'property' => 'color',
),
),
) );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'elemento_business_submenu_hover_background_color',
'label' => __( 'Submenu Hover Background Color', 'elemento-business' ),
'type' => 'color',
'section' => 'elemento_business_section_header',
'transport' => 'auto',
'default' => '#1a73e9',
'choices' => [
'alpha' => true,
],
'output' => array(
array(
'element' => array( '#main-menu ul.children li a:hover', '#main-menu ul.sub-menu li a:hover'),
'property' => 'background',
),
),
) );
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
],
] );
// POST SECTION
Kirki::add_section( 'elemento_business_blog_post', array(
'title' => esc_html__( 'Post Settings', 'elemento-business' ),
'description' => esc_html__( 'Here you can add post information.', 'elemento-business' ),
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'elemento_business_date_hide',
'label' => esc_html__( 'Enable / Disable Post Date', 'elemento-business' ),
'section' => 'elemento_business_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'elemento_business_author_hide',
'label' => esc_html__( 'Enable / Disable Post Author', 'elemento-business' ),
'section' => 'elemento_business_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'elemento_business_comment_hide',
'label' => esc_html__( 'Enable / Disable Post Comment', 'elemento-business' ),
'section' => 'elemento_business_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'elemento_business_blog_post_featured_image',
'label' => esc_html__( 'Enable / Disable Post Image', 'elemento-business' ),
'section' => 'elemento_business_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_length_setting_heading',
'section' => 'elemento_business_blog_post',
'default' => '' . __( 'Blog Post Content Limit', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'number',
'settings' => 'elemento_business_length_setting',
'section' => 'elemento_business_blog_post',
'default' => '15',
'priority' => 10,
'choices' => [
'min' => -10,
'max' => 40,
'step' => 1,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'label' => esc_html__( 'Enable / Disable Single Post Tag', 'elemento-business' ),
'settings' => 'elemento_business_single_post_tag',
'section' => 'elemento_business_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'label' => esc_html__( 'Enable / Disable Single Post Category', 'elemento-business' ),
'settings' => 'elemento_business_single_post_category',
'section' => 'elemento_business_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'elemento_business_single_post_featured_image',
'label' => esc_html__( 'Enable / Disable Single Post Image', 'elemento-business' ),
'section' => 'elemento_business_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'elemento_business_single_post_radius',
'section' => 'elemento_business_blog_post',
'default' => '' . __( 'Single Post Image Border Radius(px)', 'elemento-business' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'elemento_business_single_post_border_radius',
'label' => __( 'Enter a value in pixels. Example:15px', 'elemento-business' ),
'type' => 'text',
'section' => 'elemento_business_blog_post',
'transport' => 'auto',
'output' => array(
array(
'element' => array('.post-img img'),
'property' => 'border-radius',
),
),
) );
// 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' ),
],
] );
}