'edit_theme_options',
'option_type' => 'theme_mod',
));
Kirki::add_field( 'theme_config_id', [
'type' => 'slider',
'settings' => 'books_printing_logo_resizer',
'label' => esc_html__( 'Adjust Logo Size', 'books-printing' ),
'section' => 'title_tagline',
'default' => 70,
'choices' => [
'min' => 10,
'max' => 300,
'step' => 10,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_enable_logo_text',
'section' => 'title_tagline',
'default' => '
' . __( 'Enable / Disable Site Title and Tagline', 'books-printing' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'books_printing_display_header_title',
'label' => esc_html__( 'Site Title Enable / Disable Button', 'books-printing' ),
'section' => 'title_tagline',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'books-printing' ),
'off' => esc_html__( 'Disable', 'books-printing' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'books_printing_display_header_text',
'label' => esc_html__( 'Tagline Enable / Disable Button', 'books-printing' ),
'section' => 'title_tagline',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'books-printing' ),
'off' => esc_html__( 'Disable', 'books-printing' ),
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_site_tittle_font_heading',
'section' => 'title_tagline',
'default' => '' . __( 'Site Title Font Size', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'books_printing_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' => 'books_printing_site_tagline_font_heading',
'section' => 'title_tagline',
'default' => '' . __( 'Site Tagline Font Size', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'books_printing_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( 'books_printing_theme_options_panel', array(
'priority' => 10,
'title' => __( 'Theme Options', 'books-printing' ),
) );
// HEADER SECTION
Kirki::add_section( 'books_printing_section_header', array(
'title' => esc_html__( 'Header Settings', 'books-printing' ),
'description' => esc_html__( 'Here you can add header information.', 'books-printing' ),
'panel' => 'books_printing_theme_options_panel',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_advertisement_text_heading',
'section' => 'books_printing_section_header',
'default' => '' . __( 'Advertisement Text', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'books_printing_header_advertisement_text',
'section' => 'books_printing_section_header',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_enable_button_heading',
'section' => 'books_printing_section_header',
'default' => '' . __( 'Button', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'label' => esc_html__( 'Button Text', 'books-printing' ),
'settings' => 'books_printing_header_button_text',
'section' => 'books_printing_section_header',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'url',
'label' => esc_html__( 'Button Link', 'books-printing' ),
'settings' => 'books_printing_header_button_url',
'section' => 'books_printing_section_header',
'default' => '',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_header_phone_number_heading',
'section' => 'books_printing_section_header',
'default' => '' . __( 'Add Phone Number', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'books_printing_header_phone_number',
'section' => 'books_printing_section_header',
'default' => '',
'sanitize_callback' => 'books_printing_sanitize_phone_number',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_header_email_heading',
'section' => 'books_printing_section_header',
'default' => '' . __( 'Add Email', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'books_printing_header_email',
'section' => 'books_printing_section_header',
'default' => '',
'sanitize_callback' => 'sanitize_email',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'books_printing_cart_box_enable',
'label' => esc_html__( 'Enable/Disable Shopping Cart', 'books-printing' ),
'section' => 'books_printing_section_header',
'default' => 'on',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'books-printing' ),
'off' => esc_html__( 'Disable', 'books-printing' ),
],
] );
// WOOCOMMERCE SETTINGS
Kirki::add_section( 'books_printing_woocommerce_settings', array(
'title' => esc_html__( 'Woocommerce Settings', 'books-printing' ),
'description' => esc_html__( 'Woocommerce Settings of themes', 'books-printing' ),
'panel' => 'woocommerce',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_shop_page_sidebar',
'label' => esc_html__( 'Enable/Disable Shop Page Sidebar', 'books-printing' ),
'section' => 'books_printing_woocommerce_settings',
'default' => 'true',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'label' => esc_html__( 'Shop Page Layouts', 'books-printing' ),
'settings' => 'books_printing_shop_page_layout',
'section' => 'books_printing_woocommerce_settings',
'default' => 'Right Sidebar',
'choices' => [
'Right Sidebar' => esc_html__( 'Right Sidebar', 'books-printing' ),
'Left Sidebar' => esc_html__( 'Left Sidebar', 'books-printing' ),
],
'active_callback' => [
[
'setting' => 'books_printing_shop_page_sidebar',
'operator' => '===',
'value' => true,
],
]
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'select',
'label' => esc_html__( 'Products Per Row', 'books-printing' ),
'settings' => 'books_printing_products_per_row',
'section' => 'books_printing_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', 'books-printing' ),
'settings' => 'books_printing_products_per_page',
'section' => 'books_printing_woocommerce_settings',
'default' => '9',
'priority' => 10,
'choices' => [
'min' => 0,
'max' => 50,
'step' => 1,
],
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_single_product_sidebar',
'label' => esc_html__( 'Enable / Disable Single Product Sidebar', 'books-printing' ),
'section' => 'books_printing_woocommerce_settings',
'default' => 'true',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'label' => esc_html__( 'Single Product Layout', 'books-printing' ),
'settings' => 'books_printing_single_product_sidebar_layout',
'section' => 'books_printing_woocommerce_settings',
'default' => 'Right Sidebar',
'choices' => [
'Right Sidebar' => esc_html__( 'Right Sidebar', 'books-printing' ),
'Left Sidebar' => esc_html__( 'Left Sidebar', 'books-printing' ),
],
'active_callback' => [
[
'setting' => 'books_printing_single_product_sidebar',
'operator' => '===',
'value' => true,
],
]
) );
//ADDITIONAL SETTINGS
Kirki::add_section( 'books_printing_additional_setting', array(
'title' => esc_html__( 'Additional Settings', 'books-printing' ),
'description' => esc_html__( 'Additional Settings of themes', 'books-printing' ),
'panel' => 'books_printing_theme_options_panel',
'priority' => 10,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_scroll_enable_setting',
'label' => esc_html__( 'Here you can enable or disable your scroller.', 'books-printing' ),
'section' => 'books_printing_additional_setting',
'default' => '0',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_single_page_layout_heading',
'section' => 'books_printing_additional_setting',
'default' => '' . __( 'Single Page Layout', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'settings' => 'books_printing_single_page_layout',
'section' => 'books_printing_additional_setting',
'default' => 'One Column',
'choices' => [
'Left Sidebar' => esc_html__( 'Left Sidebar', 'books-printing' ),
'Right Sidebar' => esc_html__( 'Right Sidebar', 'books-printing' ),
'One Column' => esc_html__( 'One Column', 'books-printing' ),
],
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_header_background_attachment_heading',
'section' => 'books_printing_additional_setting',
'default' => '' . __( 'Header Image Attachment', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'settings' => 'books_printing_header_background_attachment',
'section' => 'books_printing_additional_setting',
'default' => 'scroll',
'choices' => [
'scroll' => esc_html__( 'Scroll', 'books-printing' ),
'fixed' => esc_html__( 'Fixed', 'books-printing' ),
],
'output' => array(
array(
'element' => '.header-image-box',
'property' => 'background-attachment',
),
),
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_header_page_title',
'label' => esc_html__( 'Enable / Disable Header Image Page Title.', 'books-printing' ),
'section' => 'books_printing_additional_setting',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_header_breadcrumb',
'label' => esc_html__( 'Enable / Disable Header Image Breadcrumb.', 'books-printing' ),
'section' => 'books_printing_additional_setting',
'default' => '1',
'priority' => 10,
] );
// POST SECTION
Kirki::add_section( 'books_printing_blog_post', array(
'title' => esc_html__( 'Post Settings', 'books-printing' ),
'description' => esc_html__( 'Here you can add post information.', 'books-printing' ),
'panel' => 'books_printing_theme_options_panel',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_post_layout_heading',
'section' => 'books_printing_blog_post',
'default' => '' . __( 'Blog Layout', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'type' => 'select',
'settings' => 'books_printing_post_layout',
'section' => 'books_printing_blog_post',
'default' => 'Right Sidebar',
'choices' => [
'Left Sidebar' => esc_html__( 'Left Sidebar', 'books-printing' ),
'Right Sidebar' => esc_html__( 'Right Sidebar', 'books-printing' ),
'One Column' => esc_html__( 'One Column', 'books-printing' ),
'Three Columns' => esc_html__( 'Three Columns', 'books-printing' ),
'Four Columns' => esc_html__( 'Four Columns', 'books-printing' ),
],
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_date_hide',
'label' => esc_html__( 'Enable / Disable Post Date', 'books-printing' ),
'section' => 'books_printing_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_author_hide',
'label' => esc_html__( 'Enable / Disable Post Author', 'books-printing' ),
'section' => 'books_printing_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_comment_hide',
'label' => esc_html__( 'Enable / Disable Post Comment', 'books-printing' ),
'section' => 'books_printing_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_blog_post_featured_image',
'label' => esc_html__( 'Enable / Disable Post Image', 'books-printing' ),
'section' => 'books_printing_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_length_setting_heading',
'section' => 'books_printing_blog_post',
'default' => '' . __( 'Blog Post Content Limit', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'number',
'settings' => 'books_printing_length_setting',
'section' => 'books_printing_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', 'books-printing' ),
'settings' => 'books_printing_single_post_tag',
'section' => 'books_printing_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'label' => esc_html__( 'Enable / Disable Single Post Category', 'books-printing' ),
'settings' => 'books_printing_single_post_category',
'section' => 'books_printing_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'toggle',
'settings' => 'books_printing_single_post_featured_image',
'label' => esc_html__( 'Enable / Disable Single Post Image', 'books-printing' ),
'section' => 'books_printing_blog_post',
'default' => '1',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_single_post_radius',
'section' => 'books_printing_blog_post',
'default' => '' . __( 'Single Post Image Border Radius(px)', 'books-printing' ) . '
',
] );
Kirki::add_field( 'theme_config_id', array(
'settings' => 'books_printing_single_post_border_radius',
'label' => __( 'Enter a value in pixels. Example:15px', 'books-printing' ),
'type' => 'text',
'section' => 'books_printing_blog_post',
'transport' => 'auto',
'output' => array(
array(
'element' => array('.post-img img'),
'property' => 'border-radius',
),
),
) );
// FOOTER SECTION
Kirki::add_section( 'books_printing_footer_section', array(
'title' => esc_html__( 'Footer Settings', 'books-printing' ),
'description' => esc_html__( 'Here you can change copyright text', 'books-printing' ),
'panel' => 'books_printing_theme_options_panel',
'priority' => 160,
) );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_footer_text_heading',
'section' => 'books_printing_footer_section',
'default' => '' . __( 'Footer Copyright Text', 'books-printing' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'text',
'settings' => 'books_printing_footer_text',
'section' => 'books_printing_footer_section',
'default' => '',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'custom',
'settings' => 'books_printing_footer_enable_heading',
'section' => 'books_printing_footer_section',
'default' => '' . __( 'Enable / Disable Footer Link', 'books-printing' ) . '
',
'priority' => 10,
] );
Kirki::add_field( 'theme_config_id', [
'type' => 'switch',
'settings' => 'books_printing_copyright_enable',
'label' => esc_html__( 'Section Enable / Disable', 'books-printing' ),
'section' => 'books_printing_footer_section',
'default' => '1',
'priority' => 10,
'choices' => [
'on' => esc_html__( 'Enable', 'books-printing' ),
'off' => esc_html__( 'Disable', 'books-printing' ),
],
] );
}