'edit_theme_options',
'option_type' => 'theme_mod',
));
Kirki::add_field( 'theme_config_id', [
'type' => 'slider',
'settings' => 'auto_car_repair_logo_resizer',
'label' => esc_html__( 'Adjust Logo Size', 'auto-car-repair' ),
'section' => 'title_tagline',
'default' => 70,
'choices' => [
'min' => 10,
'max' => 300,
'step' => 10,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_enable_logo_text',
'section' => 'title_tagline',
'default' => '
' . __( 'Enable / Disable Site Title and Tagline', 'auto-car-repair' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'auto_car_repair_display_header_title',
'label' => esc_html__( 'Site Title Enable / Disable Button', 'auto-car-repair' ),
'section' => 'title_tagline',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'auto-car-repair' ),
'off' => esc_html__( 'Disable', 'auto-car-repair' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'auto_car_repair_display_header_text',
'label' => esc_html__( 'Tagline Enable / Disable Button', 'auto-car-repair' ),
'section' => 'title_tagline',
'default' => '0',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'auto-car-repair' ),
'off' => esc_html__( 'Disable', 'auto-car-repair' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_site_tittle_font_heading',
'section' => 'title_tagline',
'default' => '' . __( 'Site Title Font Size', 'auto-car-repair' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'auto_car_repair_site_tittle_font_size',
'type' => 'number',
'section' => 'title_tagline',
'transport' => 'auto',
'output' => array(
array(
'element' => array('.logo a'),
'property' => 'font-size',
'suffix' => 'px'
),
),
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_site_tagline_font_heading',
'section' => 'title_tagline',
'default' => '' . __( 'Site Tagline Font Size', 'auto-car-repair' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'auto_car_repair_site_tagline_font_size',
'type' => 'number',
'section' => 'title_tagline',
'transport' => 'auto',
'output' => array(
array(
'element' => array('.logo span'),
'property' => 'font-size',
'suffix' => 'px'
),
),
) );
// Theme Options Panel
Kirki::add_panel( 'auto_car_repair_theme_options_panel', array(
'priority' => 10,
'title' => __( 'Theme Options', 'auto-car-repair' ),
) );
// HEADER SECTION
Kirki::add_section( 'auto_car_repair_section_header', array(
'title' => esc_html__( 'Header Settings', 'auto-car-repair' ),
'description' => esc_html__( 'Here you can add header information.', 'auto-car-repair' ),
'panel' => 'auto_car_repair_theme_options_panel',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'auto_car_repair_search_enable',
'label' => esc_html__( 'Enable/Disable Search', 'auto-car-repair' ),
'section' => 'auto_car_repair_section_header',
'default' => 'on',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'auto-car-repair' ),
'off' => esc_html__( 'Disable', 'auto-car-repair' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'auto_car_repair_cart_box_enable',
'label' => esc_html__( 'Enable/Disable Shopping Cart', 'auto-car-repair' ),
'section' => 'auto_car_repair_section_header',
'default' => 'on',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'auto-car-repair' ),
'off' => esc_html__( 'Disable', 'auto-car-repair' ),
],
] );
// WOOCOMMERCE SETTINGS
Kirki::add_section( 'auto_car_repair_woocommerce_settings', array(
'title' => esc_html__( 'Woocommerce Settings', 'auto-car-repair' ),
'description' => esc_html__( 'Woocommerce Settings of themes', 'auto-car-repair' ),
'panel' => 'woocommerce',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_shop_page_sidebar',
'label' => esc_html__( 'Enable/Disable Shop Page Sidebar', 'auto-car-repair' ),
'section' => 'auto_car_repair_woocommerce_settings',
'default' => 'true',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'label' => esc_html__( 'Shop Page Layouts', 'auto-car-repair' ),
'settings' => 'auto_car_repair_shop_page_layout',
'section' => 'auto_car_repair_woocommerce_settings',
'default' => 'Right Sidebar',
'choices' => [
'Right Sidebar' => esc_html__( 'Right Sidebar', 'auto-car-repair' ),
'Left Sidebar' => esc_html__( 'Left Sidebar', 'auto-car-repair' ),
],
'active_callback' => [
[
'setting' => 'auto_car_repair_shop_page_sidebar',
'operator' => '===',
'value' => true,
],
]
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'select',
'label' => esc_html__( 'Products Per Row', 'auto-car-repair' ),
'settings' => 'auto_car_repair_products_per_row',
'section' => 'auto_car_repair_woocommerce_settings',
'default' => '3',
'priority' => 10,
'choices' => [
'2' => '2',
'3' => '3',
'4' => '4',
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'number',
'label' => esc_html__( 'Products Per Page', 'auto-car-repair' ),
'settings' => 'auto_car_repair_products_per_page',
'section' => 'auto_car_repair_woocommerce_settings',
'default' => '9',
'priority' => 10,
'choices' => [
'min' => 0,
'max' => 50,
'step' => 1,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_single_product_sidebar',
'label' => esc_html__( 'Enable / Disable Single Product Sidebar', 'auto-car-repair' ),
'section' => 'auto_car_repair_woocommerce_settings',
'default' => 'true',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'label' => esc_html__( 'Single Product Layout', 'auto-car-repair' ),
'settings' => 'auto_car_repair_single_product_sidebar_layout',
'section' => 'auto_car_repair_woocommerce_settings',
'default' => 'Right Sidebar',
'choices' => [
'Right Sidebar' => esc_html__( 'Right Sidebar', 'auto-car-repair' ),
'Left Sidebar' => esc_html__( 'Left Sidebar', 'auto-car-repair' ),
],
'active_callback' => [
[
'setting' => 'auto_car_repair_single_product_sidebar',
'operator' => '===',
'value' => true,
],
]
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_products_button_border_radius_heading',
'section' => 'auto_car_repair_woocommerce_settings',
'default' => '' . __( 'Products Button Border Radius', 'auto-car-repair' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'slider',
'settings' => 'auto_car_repair_products_button_border_radius',
'section' => 'auto_car_repair_woocommerce_settings',
'default' => '1',
'priority' => 10,
'choices' => [
'min' => 1,
'max' => 50,
'step' => 1,
],
'output' => array(
array(
'element' => array('.woocommerce ul.products li.product .button',' a.checkout-button.button.alt.wc-forward','.woocommerce #respond input#submit', '.woocommerce a.button', '.woocommerce button.button','.woocommerce input.button','.woocommerce #respond input#submit.alt','.woocommerce button.button.alt','.woocommerce input.button.alt'),
'property' => 'border-radius',
'units' => 'px',
),
),
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_sale_badge_position_heading',
'section' => 'auto_car_repair_woocommerce_settings',
'default' => '' . __( 'Sale Badge Position', 'auto-car-repair' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'settings' => 'auto_car_repair_sale_badge_position',
'section' => 'auto_car_repair_woocommerce_settings',
'default' => 'right',
'choices' => [
'right' => esc_html__( 'Right', 'auto-car-repair' ),
'left' => esc_html__( 'Left', 'auto-car-repair' ),
],
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_products_sale_font_size_heading',
'section' => 'auto_car_repair_woocommerce_settings',
'default' => '' . __( 'Sale Font Size', 'auto-car-repair' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'auto_car_repair_products_sale_font_size',
'section' => 'auto_car_repair_woocommerce_settings',
'priority' => 10,
'output' => array(
array(
'element' => array('.woocommerce span.onsale','.woocommerce ul.products li.product .onsale'),
'property' => 'font-size',
'units' => 'px',
),
),
] );
//ADDITIONAL SETTINGS
Kirki::add_section( 'auto_car_repair_additional_setting', array(
'title' => esc_html__( 'Additional Settings', 'auto-car-repair' ),
'description' => esc_html__( 'Additional Settings of themes', 'auto-car-repair' ),
'panel' => 'auto_car_repair_theme_options_panel',
'priority' => 10,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_preloader_hide',
'label' => esc_html__( 'Here you can enable or disable your preloader.', 'auto-car-repair' ),
'section' => 'auto_car_repair_additional_setting',
'default' => '0',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_scroll_enable_setting',
'label' => esc_html__( 'Here you can enable or disable your scroller.', 'auto-car-repair' ),
'section' => 'auto_car_repair_additional_setting',
'default' => '0',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_single_page_layout_heading',
'section' => 'auto_car_repair_additional_setting',
'default' => '' . __( 'Single Page Layout', 'auto-car-repair' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'settings' => 'auto_car_repair_single_page_layout',
'section' => 'auto_car_repair_additional_setting',
'default' => 'One Column',
'choices' => [
'Left Sidebar' => esc_html__( 'Left Sidebar', 'auto-car-repair' ),
'Right Sidebar' => esc_html__( 'Right Sidebar', 'auto-car-repair' ),
'One Column' => esc_html__( 'One Column', 'auto-car-repair' ),
],
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_header_background_attachment_heading',
'section' => 'auto_car_repair_additional_setting',
'default' => '' . __( 'Header Image Attachment', 'auto-car-repair' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'settings' => 'auto_car_repair_header_background_attachment',
'section' => 'auto_car_repair_additional_setting',
'default' => 'scroll',
'choices' => [
'scroll' => esc_html__( 'Scroll', 'auto-car-repair' ),
'fixed' => esc_html__( 'Fixed', 'auto-car-repair' ),
],
'output' => array(
array(
'element' => '.header-image-box',
'property' => 'background-attachment',
),
),
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_header_page_title',
'label' => esc_html__( 'Enable / Disable Header Image Page Title.', 'auto-car-repair' ),
'section' => 'auto_car_repair_additional_setting',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_header_breadcrumb',
'label' => esc_html__( 'Enable / Disable Header Image Breadcrumb.', 'auto-car-repair' ),
'section' => 'auto_car_repair_additional_setting',
'default' => '1',
'priority' => 10,
] );
// POST SECTION
Kirki::add_section( 'auto_car_repair_blog_post', array(
'title' => esc_html__( 'Post Settings', 'auto-car-repair' ),
'description' => esc_html__( 'Here you can add post information.', 'auto-car-repair' ),
'panel' => 'auto_car_repair_theme_options_panel',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_post_layout_heading',
'section' => 'auto_car_repair_blog_post',
'default' => '' . __( 'Blog Layout', 'auto-car-repair' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'settings' => 'auto_car_repair_post_layout',
'section' => 'auto_car_repair_blog_post',
'default' => 'Right Sidebar',
'choices' => [
'Left Sidebar' => esc_html__( 'Left Sidebar', 'auto-car-repair' ),
'Right Sidebar' => esc_html__( 'Right Sidebar', 'auto-car-repair' ),
'One Column' => esc_html__( 'One Column', 'auto-car-repair' ),
'Three Columns' => esc_html__( 'Three Columns', 'auto-car-repair' ),
'Four Columns' => esc_html__( 'Four Columns', 'auto-car-repair' ),
],
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_date_hide',
'label' => esc_html__( 'Enable / Disable Post Date', 'auto-car-repair' ),
'section' => 'auto_car_repair_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_author_hide',
'label' => esc_html__( 'Enable / Disable Post Author', 'auto-car-repair' ),
'section' => 'auto_car_repair_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_comment_hide',
'label' => esc_html__( 'Enable / Disable Post Comment', 'auto-car-repair' ),
'section' => 'auto_car_repair_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_blog_post_featured_image',
'label' => esc_html__( 'Enable / Disable Post Image', 'auto-car-repair' ),
'section' => 'auto_car_repair_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_length_setting_heading',
'section' => 'auto_car_repair_blog_post',
'default' => '' . __( 'Blog Post Content Limit', 'auto-car-repair' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'number',
'settings' => 'auto_car_repair_length_setting',
'section' => 'auto_car_repair_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', 'auto-car-repair' ),
'settings' => 'auto_car_repair_single_post_tag',
'section' => 'auto_car_repair_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'label' => esc_html__( 'Enable / Disable Single Post Category', 'auto-car-repair' ),
'settings' => 'auto_car_repair_single_post_category',
'section' => 'auto_car_repair_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'auto_car_repair_single_post_featured_image',
'label' => esc_html__( 'Enable / Disable Single Post Image', 'auto-car-repair' ),
'section' => 'auto_car_repair_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_single_post_radius',
'section' => 'auto_car_repair_blog_post',
'default' => '' . __( 'Single Post Image Border Radius(px)', 'auto-car-repair' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'auto_car_repair_single_post_border_radius',
'label' => __( 'Enter a value in pixels. Example:15px', 'auto-car-repair' ),
'type' => 'text',
'section' => 'auto_car_repair_blog_post',
'transport' => 'auto',
'output' => array(
array(
'element' => array('.post-img img'),
'property' => 'border-radius',
),
),
) );
// FOOTER SECTION
Kirki::add_section( 'auto_car_repair_footer_section', array(
'title' => esc_html__( 'Footer Settings', 'auto-car-repair' ),
'description' => esc_html__( 'Here you can change copyright text', 'auto-car-repair' ),
'panel' => 'auto_car_repair_theme_options_panel',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_footer_text_heading',
'section' => 'auto_car_repair_footer_section',
'default' => '' . __( 'Footer Copyright Text', 'auto-car-repair' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'auto_car_repair_footer_text',
'section' => 'auto_car_repair_footer_section',
'default' => '',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_footer_enable_heading',
'section' => 'auto_car_repair_footer_section',
'default' => '' . __( 'Enable / Disable Footer Link', 'auto-car-repair' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'auto_car_repair_copyright_enable',
'label' => esc_html__( 'Section Enable / Disable', 'auto-car-repair' ),
'section' => 'auto_car_repair_footer_section',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'auto-car-repair' ),
'off' => esc_html__( 'Disable', 'auto-car-repair' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_footer_background_widget_heading',
'section' => 'auto_car_repair_footer_section',
'default' => '' . __( 'Footer Widget Background', 'auto-car-repair' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id',
[
'settings' => 'auto_car_repair_footer_background_widget',
'type' => 'background',
'section' => 'auto_car_repair_footer_section',
'default' => [
'background-color' => 'rgba(18,18,18,1)',
'background-image' => '',
'background-repeat' => 'no-repeat',
'background-position' => 'center center',
'background-size' => 'cover',
'background-attachment' => 'scroll',
],
'transport' => 'auto',
'output' => [
[
'element' => '.footer-widget',
],
],
]);
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_footer_widget_alignment_heading',
'section' => 'auto_car_repair_footer_section',
'default' => '' . __( 'Footer Widget Alignment', 'auto-car-repair' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'settings' => 'auto_car_repair_footer_widget_alignment',
'section' => 'auto_car_repair_footer_section',
'default' => 'left',
'choices' => [
'center' => esc_html__( 'center', 'auto-car-repair' ),
'right' => esc_html__( 'right', 'auto-car-repair' ),
'left' => esc_html__( 'left', 'auto-car-repair' ),
],
'output' => array(
array(
'element' => '.footer-area',
'property' => 'text-align',
),
),
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'auto_car_repair_footer_copright_color_heading',
'section' => 'auto_car_repair_footer_section',
'default' => '' . __( 'Copyright Background Color', 'auto-car-repair' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'auto_car_repair_footer_copright_color',
'type' => 'color',
'label' => __( 'Background Color', 'auto-car-repair' ),
'section' => 'auto_car_repair_footer_section',
'transport' => 'auto',
'default' => '#121212',
'choices' => [
'alpha' => true,
],
'output' => array(
array(
'element' => '.footer-copyright',
'property' => 'background',
),
),
) );
}