'theme_mod',
'capability' => 'edit_theme_options'
]);
/**
* Add Panel
*/
Kirki::add_panel( 'affiliate_booster_options_panel', array(
'priority' => 10,
'title' => __( 'AffiliateBooster Theme Panel', 'affiliate-booster' ),
'description' => __( 'Kirki integration for AffiliateBooster', 'affiliate-booster' ),
) );
//Global Options
Kirki::add_panel( 'affiliate_booster_global_options', array(
'title' => __( 'Global Options', 'affiliate-booster' ),
'priority' => 5,
'panel' => 'affiliate_booster_options_panel'
) );
Kirki::add_section( 'affiliate_booster_global_options_body_bgcolor', array(
'title' => __( 'Body Background Color', 'affiliate-booster' ),
'priority' => 10,
'panel' => 'affiliate_booster_global_options'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'background',
'settings' => 'global_body_bgcolor',
'label' => esc_html__( 'Body Background Control', 'affiliate-booster' ),
'description' => esc_html__( 'You can choose which background to use for body', 'affiliate-booster' ),
'section' => 'affiliate_booster_global_options_body_bgcolor',
'default' => [
'background-color' => '#f3f3f3',
'background-image' => '',
'background-repeat' => 'repeat',
'background-position' => 'center center',
'background-size' => 'cover',
'background-attachment' => 'scroll',
],
'transport' => 'auto',
'output' => [
[
'element' => 'body, .home, .single, .page, .archive, search, error404, category'
],
],
] );
Kirki::add_section( 'affiliate_booster_global_options_content_bgcolor', array(
'title' => __( 'Content Background Color', 'affiliate-booster' ),
'priority' => 10,
'panel' => 'affiliate_booster_global_options'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'background',
'settings' => 'global_conent_bgcolor',
'label' => esc_html__( 'Content Background Color Control', 'affiliate-booster' ),
'description' => esc_html__( 'You can choose which background to use for content', 'affiliate-booster' ),
'section' => 'affiliate_booster_global_options_content_bgcolor',
'default' => [
'background-color' => '#ffffff',
'background-image' => '',
'background-repeat' => 'repeat',
'background-position' => 'center center',
'background-size' => 'cover',
'background-attachment' => 'scroll',
],
'transport' => 'auto',
'output' => [
[
'element' => '.main-content, .col-md-12.main-content.full-layout-posts, .col-md-12.main-content.full-layout-page, .single-post .sidebars > ul, .home .sidebars > ul, .blog .sidebars > ul, .category .sidebars > ul, .col-md-8.single-blog-excerpt .aff-single-content-bg,
.page .sidebars > ul, .archive .sidebars > ul, .search .sidebars > ul, .error404 .sidebars > ul'
],
],
] );
//Advanced Typography
Kirki::add_panel( 'affiliate_booster_advanced_typography', array(
'title' => __( 'Advanced Typography', 'affiliate-booster' ),
'priority' => 20,
'panel' => 'affiliate_booster_global_options'
) );
Kirki::add_section( 'affiliate_booster_global_typography_body', array(
'title' => __( 'Global Typography', 'affiliate-booster' ),
'priority' => 10,
'panel' => 'affiliate_booster_advanced_typography'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_typography_global_typhography',
'label' => esc_html__('Global Typography', 'affiliate-booster'),
'description' => esc_html__('Please Select Font Which you like', 'affiliate-booster'),
'section' => 'affiliate_booster_global_typography_body',
'default' => [
'font-family' => 'Poppins',
'variant' => '700',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'body',
],
],
]);
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_font_global_typhography',
'label' => esc_html__('Global Font Typography', 'affiliate-booster'),
// 'description' => esc_html__('Please Select Font Size Which you like', 'affiliate-booster'),
'section' => 'affiliate_booster_global_typography_body',
'default' => [
// 'font-family' => 'Poppins',
'variant' => 'regular',
'font-size' => '18px',
'line-height' => '2.0',
'letter-spacing' => '0',
// 'color' => '',
'text-transform' => '',
'text-align' => 'left',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'body, body div.textwidget, body.home div.cf.aff-entry-content p, body.single-post p, main#content aside ul h4, footer div.aff-widget a, .aff-footer .aff-footer-site-content .widget_categories li a,body .aff-footer .footer-nav-menu ul li a, body .aff-copyright.bottom-footer p, body .aff-copyright.bottom-footer p a, body .aff-header-bottom .aff-main-nav>li>a, body .aff-header-sticky .aff-main-nav>li>a, body .aff-main-nav.aff-7 li>a, body .aff-main-nav.aff-8 li>a, body.single-post p, .relatedposts .related-content p.title, table, table tr, table td',
],
],
]);
Kirki::add_section( 'affiliate_booster_advanced_typography_h1', array(
'title' => __( 'Heading 1 (h1)', 'affiliate-booster' ),
'priority' => 10,
'panel' => 'affiliate_booster_advanced_typography'
) );
Kirki::add_field($affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_typography_h1_settings',
'label' => esc_html__('Advanced Typography', 'affiliate-booster'),
'description' => esc_html__('Please add px with the font size. e.g 16px, 24px', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_h1',
'default' => [
'font-family' => 'inherit',
'variant' => '700',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '0',
'color' => '#111111',
'text-transform' => 'none',
'text-align' => 'inherit',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'body.single-post h1, body.blog h1, .entry-header > h1.entry-title, .post-content.entry-content > h1, body.page h1',
],
],
]);
Kirki::add_section( 'affiliate_booster_advanced_typography_h2', array(
'title' => __( 'Heading 2 (h2)', 'affiliate-booster' ),
'priority' => 20,
'panel' => 'affiliate_booster_advanced_typography'
) );
Kirki::add_field($affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_typography_h2_settings',
'label' => esc_html__('Advanced Typography', 'affiliate-booster'),
'description' => esc_html__('Please add px with the font size. e.g 16px, 24px', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_h2',
'default' => [
'font-family' => 'inherit',
'variant' => '700',
'font-size' => '32px',
'line-height' => '',
'letter-spacing' => '0',
'color' => '#111111',
'text-transform' => 'none',
'text-align' => 'inherit',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'body.single-post h2, body.page h2, .entry-header > h2.entry-title, .post-content.entry-content > h2',
],
],
]);
Kirki::add_section( 'affiliate_booster_advanced_typography_h3', array(
'title' => __( 'Heading 3 (h3)', 'affiliate-booster' ),
'priority' => 30,
'panel' => 'affiliate_booster_advanced_typography'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_typography_h3_settings',
'label' => esc_html__('Advanced Typography', 'affiliate-booster'),
'description' => esc_html__('Please add px with the font size. e.g 16px, 24px', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_h3',
'default' => [
'font-family' => 'inherit',
'variant' => '700',
'font-size' => '30px',
'line-height' => '',
'letter-spacing' => '0',
'color' => '#111111',
'text-transform' => 'none',
'text-align' => 'inherit',
],
'priority' => 99,
'transport' => 'auto',
'output' => [
[
'element' => 'body.single-post h3, body.page h3, body.blog h3, .entry-header h3.entry-title, .post-content.entry-content h3',
],
],
]);
Kirki::add_section( 'affiliate_booster_advanced_typography_h4', array(
'title' => __( 'Heading 4 (h4)', 'affiliate-booster' ),
'priority' => 40,
'panel' => 'affiliate_booster_advanced_typography'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_typography_h4_settings',
'label' => esc_html__('Advanced Typography', 'affiliate-booster'),
'description' => esc_html__('Please add px with the font size. e.g 16px, 24px', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_h4',
'default' => [
'font-family' => 'inherit',
'variant' => '700',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '0',
'color' => '#111111',
'text-transform' => 'none',
'text-align' => 'inherit',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'body.single-post h4, body.page h4, body.blog h4, .entry-header > h4.entry-title, .post-content.entry-content > h4, body.category h4, body.search-results h4, body.author h4, main#content aside ul h4',
],
],
]);
Kirki::add_section( 'affiliate_booster_advanced_typography_h5', array(
'title' => __( 'Heading 5 (h5)', 'affiliate-booster' ),
'priority' => 50,
'panel' => 'affiliate_booster_advanced_typography'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_typography_h5_settings',
'label' => esc_html__('Advanced Typography', 'affiliate-booster'),
'description' => esc_html__('Please add px with the font size. e.g 16px, 24px', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_h5',
'default' => [
'font-family' => 'inherit',
'variant' => '700',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '0',
'color' => '#111111',
'text-transform' => 'none',
'text-align' => 'inherit',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'body.single-post h5, body.blog h5, body.page h5, .entry-header > h5.entry-title, .post-content.entry-content > h5',
],
],
]);
Kirki::add_section( 'affiliate_booster_advanced_typography_h6', array(
'title' => __( 'Heading 6 (h6)', 'affiliate-booster' ),
'priority' => 60,
'panel' => 'affiliate_booster_advanced_typography'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_typography_h6_settings',
'label' => esc_html__('Advanced Typography', 'affiliate-booster'),
'description' => esc_html__('Please add px with the font size. e.g 16px, 24px', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_h6',
'default' => [
'font-family' => 'inherit',
'variant' => '700',
'font-size' => '',
'line-height' => '',
'letter-spacing' => '0',
'color' => '#111111',
'text-transform' => 'none',
'text-align' => 'inherit',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'body.single-post h6, body.blog h6, body.page h6, body:not(.page.elementor-page), body.category h6, body.author h6, body.search-results h6, .entry-header > h6.entry-title, .post-content.entry-content > h6',
],
],
]);
// Global Colors
Kirki::add_section( 'affiliate_booster_advanced_typography_link', array(
'title' => __( 'Global Colors', 'affiliate-booster' ),
'priority' => 10,
'panel' => 'affiliate_booster_global_options'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_typography_link_settings',
'label' => esc_html__('Select Link Color', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_link',
'default' => [
'color' => '#e84d15',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'a, body.home a, body.archive a, body.page a, body.single-post a, .post .aff-post-title a, .post .aff-post-title a span, div.related-content p.title, .aff-post-meta-c .aff-post-author>a, body.single-post .entry-meta span a span, .comments-area a, .comments-area a:visited, .widget ul li a, .post-content.entry-content > h1 > a, .post-content.entry-content > h2 > a, .post-content.entry-content > h3 > a, .post-content.entry-content > h4 > a, .post-content.entry-content > h5 > a, .post-content.entry-content > h6 > a',
],
],
]);
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_advanced_typography_link_hover_settings',
'label' => esc_html__('Select Link Hover Color', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_link',
'default' => [
'color' => '#F18713',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => '.aff-post-title-alt a:hover, .post .aff-post-title a span:hover, main#content aside ul li .post div.aff-post-title a span:hover, body.home h2.is-title.aff-post-title-alt a:hover, div.related-content p.title:hover, .aff-copyright.bottom-footer p a:hover, aside a:hover, span.aff-meta-item.aff-post-author a:hover, body.single-post a:hover',
'suffix' => ' !important',
],
],
]);
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'background',
'settings' => 'aff_advanced_typography_link_visited_settings',
'label' => esc_html__('Select Button Background Color', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_link',
'default' => [
'background-color' => '#2032D8',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'body.blog button[type="Submit"], body.single-post button[type="Submit"], .aff-comments-area input[type="submit"], a.btn_404',
],
],
]);
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'background',
'settings' => 'aff_advanced_typography_btn_hover_settings',
'label' => esc_html__('Select Button Background Hover Color', 'affiliate-booster'),
'section' => 'affiliate_booster_advanced_typography_link',
'default' => [
'background-color' => '#2032D8',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'body.blog button[type="Submit"]:hover, body.single-post button[type="Submit"]:hover, .aff-comments-area input[type="submit"]:hover, a.btn_404:hover',
],
],
]);
//Header Option Section
Kirki::add_section( 'affiliate_booster_header', array(
'title' => __( 'Header Layouts', 'affiliate-booster' ),
'description' => 'You can choose what is displayed on the your site. Different Header options we have on our theme.',
'priority' => 30,
'panel' => 'affiliate_booster_layouts_all'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'aff_header_sticky_settings',
'label' => esc_html__( 'Make Header Sticky', 'affiliate-booster' ),
'section' => 'affiliate_booster_header',
'default' => '0',
'priority' => 9,
] );
//Setting header section
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio',
'settings' => 'aff_header_setting',
'label' => esc_html__( 'Select Header', 'affiliate-booster' ),
'description' => __('You can choose Different header layout along with search Icon', 'affiliate-booster'),
'section' => 'affiliate_booster_header',
'default' => 'header1',
'priority' => 30,
'choices' => [
'header1' => [
esc_html__( 'Header 1', 'affiliate-booster' ),
esc_html__( 'Logo + Secondary Menu', 'affiliate-booster' ),
],
'header2' => [
esc_html__( 'Header 2', 'affiliate-booster' ),
esc_html__( 'Centered Logo', 'affiliate-booster' ),
],
'header3' => [
esc_html__( 'Header 3', 'affiliate-booster' ),
esc_html__( 'Logo + Banner', 'affiliate-booster' ),
],
],
] );
//Menus
Kirki::add_panel( 'affiliate_booster_menus', array(
'title' => __( 'Menu Options', 'affiliate-booster' ),
'priority' => 15,
'panel' => 'affiliate_booster_options_panel'
) );
//Widget Header Menu and Above Header Menu
/* Kirki::add_section( 'affiliate_booster_widget_header_menu', array(
'title' => __( 'Above Header Menu', 'affiliate-booster' ),
'priority' => 10,
'panel' => 'affiliate_booster_menus'
) ); */
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'aff_header_setting_fixed_top',
'label' => esc_html__( 'Sticky Above Header Menu', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '0',
'priority' => 10,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_widget_header_menu_typography_header_v2',
'label' => esc_html__( 'Above Header Menu Typography', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => [
'font-family' => 'Poppins',
'variant' => 'regular',
'font-size' => '16px',
// 'line-height' => '',
'letter-spacing' => '0',
'color' => '#fff',
'text-transform' => 'none',
],
'priority' => 20,
'transport' => 'auto',
'output' => [
[
'element' => '.aff-ad.clickable .widget_nav_menu ul>li>a, .above-header-menu ul>li>a, .above-header-mobile-menu',
],
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'aff_widget_header_menu_link_hover',
'label' => __( 'Color Control (hex-only)', 'affiliate-booster' ),
'description' => esc_html__( 'Hover For Above Widget Header Menu Links', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '#ff780e',
'transport' => 'auto',
'priority' => 30,
'output' => array(
array(
//.widget_pages ul>li>a
'element' => '.aff-ad.clickable .widget_nav_menu ul>li>a:hover, .above-header-menu ul>li>a:hover',
'property' => 'color',
),
),
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'dimensions',
'settings' => 'above_header_padding_settings',
'label' => esc_html__( 'Padding Option', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'priority' => 31,
'default' => [
'padding-top' => '0px',
'padding-bottom' => '0px',
'padding-left' => '0px',
'padding-right' => '0px',
],
'output' => array(
array(
'element' => '.top-header-parent',
),
),
] );
// Above Header Social Icons
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'custom',
'settings' => 'above_header_social_custom_heading',
// 'label' => esc_html__( 'This is the label', 'kirki' ), // optional
'section' => 'affiliate_booster_widget_header_menu',
'default' => '
' . __( 'Social Links', 'affiliate-booster' ) . '
',
'priority' => 32,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'social_icon_show_hide_setting',
'label' => esc_html__( 'Show/Hide Social Icons', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '0',
'priority' => 33,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'link',
'settings' => 'above_header_fb_link',
'label' => __( 'Facebook Link', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '',
'priority' => 34,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'fb_icon_hover_color_setting',
'label' => __( 'Change Facebook Icons Hover Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '#187CDD',
'priority' => 35,
'output' => array(
array(
'element' => 'i.fab.fa-facebook-f:hover',
'property' => 'color',
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'link',
'settings' => 'above_header_twitter_link',
'label' => __( 'Twitter Link', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '',
'priority' => 36,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'twittter_icon_hover_color_setting',
'label' => __( 'Change Twitter Icons Hover Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '#0AA3ED',
'priority' => 37,
'output' => array(
array(
'element' => 'i.fab.fa-twitter:hover',
'property' => 'color',
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'link',
'settings' => 'above_header_ins_link',
'label' => __( 'Instagram Link', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '',
'priority' => 38,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'instagram_icon_hover_color_setting',
'label' => __( 'Change Instagram Icons Hover Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '#DB3662',
'priority' => 39,
'output' => array(
array(
'element' => 'i.fab.fa-instagram:hover',
'property' => 'color',
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'link',
'settings' => 'above_header_pin_link',
'label' => __( 'Pinterest Link', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '',
'priority' => 40,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'pinterest_icon_hover_color_setting',
'label' => __( 'Change Pinterest Icons Hover Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '#C41F25',
'priority' => 41,
'output' => array(
array(
'element' => 'i.fab.fa-pinterest-p:hover',
'property' => 'color',
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'link',
'settings' => 'above_header_youtube_link',
'label' => __( 'Youtube Link', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '',
'priority' => 42,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'youtube_icon_hover_color_setting',
'label' => __( 'Change Youtube Icons Hover Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '#F80003',
'priority' => 43,
'output' => array(
array(
'element' => 'i.fab.fa-youtube:hover',
'property' => 'color',
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'slider',
'settings' => 'social_icon_font_size',
'label' => esc_html__( 'Change Icon Font Size', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'priority' => 44,
'default' => 20,
'choices' => [
'min' => 15,
'max' => 25,
'step' => 1,
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'social_icon_color_setting',
'label' => __( 'Change Icons Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => '#fff',
'priority' => 45,
'output' => array(
array(
'element' => 'p.font-social a i',
'property' => 'color',
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio-buttonset',
'settings' => 'aff_widget_header_menu_position',
'label' => esc_html__( 'Menu Alignment', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'default' => 'left',
'priority' => 10,
'transport' => 'auto',
'choices' => [
'left' => esc_html__( 'Left', 'affiliate-booster' ),
/*'center' => esc_html__( 'Center', 'affiliate-booster' ),*/
'right' => esc_html__( 'Right', 'affiliate-booster' ),
],
/*'output' => array(
array(
'element' => '.above-header-menu, .above-header-mobile-menu',
'property' => 'text-align',
),
)*/
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'multicolor',
'settings' => 'aff_widget_header_menu_bg_color',
'label' => esc_html__( 'Menu Background Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_widget_header_menu',
'priority' => 10,
'transport' => 'auto',
'choices' => [
'link' => esc_html__( 'Background Color', 'affiliate-booster' )
],
'default' => [
'link' => '#333'
],
'output' => array(
array(
'element' => '.above-header-menu, .above-header-mobile-menu, .top-header-parent',
'property' => 'background-color',
),
)
] );
//Primary Menu
Kirki::add_section( 'affiliate_booster_main_menu', array(
'title' => __( 'Primary Menu', 'affiliate-booster' ),
'priority' => 40,
'panel' => 'affiliate_booster_menus',
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'aff_header_setting_fixed',
'label' => esc_html__( 'Sticky Primary Navigation Menu', 'affiliate-booster' ),
'section' => 'affiliate_booster_main_menu',
'default' => '0',
'priority' => 8,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'aff_main_menu_search_show_hide',
'label' => esc_html__( 'Enable/Disable Search', 'affiliate-booster' ),
'section' => 'affiliate_booster_main_menu',
'default' => '0',
'priority' => 9,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio-buttonset',
'settings' => 'aff_widget_primary_menu_position',
'label' => esc_html__( 'Menu Alignment', 'affiliate-booster' ),
'section' => 'affiliate_booster_main_menu',
'default' => 'left',
'priority' => 10,
'transport' => 'auto',
'choices' => [
'left' => esc_html__( 'Left', 'affiliate-booster' ),
'center' => esc_html__( 'Center', 'affiliate-booster' ),
'right' => esc_html__( 'Right', 'affiliate-booster' ),
],
'output' => array(
array(
'element' => '.aff-header-1 nav.aff-main-navigation, .aff-header-3 nav.aff-main-navigation, .aff-header-5 nav.aff-main-navigation, .aff-header-7 .aff-slot-c, .aff-header-3 .aff-site-header .aff-menu, .aff-header-5 ul.aff-actions.aff-menu, .aff-header-bottom.aff-head1-bottom .aff-slot-c',
'property' => 'text-align',
),
)
] );
//this field hided when header option is 'header1' or 'header2'
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'multicolor',
'settings' => 'aff_main_menu_bg_color',
'label' => esc_html__( 'Menu Background Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_main_menu',
'priority' => 10,
'transport' => 'auto',
'choices' => [
'link' => esc_html__( 'Background Color', 'affiliate-booster' )
],
'default' => [
'link' => '#212c41'
],
'output' => array(
array(
'element' => '.aff-header-bottom',
'property' => 'background-color',
),
),
'active_callback' => array(
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header1',
),
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header2',
)
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'multicolor',
'settings' => 'header_bg_color_for_header1',
'label' => esc_html__( 'Background Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_main_menu',
'priority' => 19,
'choices' => [
'background-color' => esc_html__( 'Background Color', 'affiliate-booster' )
],
'default' => [
'background-colo' => '#212c41',
],
'output' => [
[
'element' => '.aff-header-bottom.aff-head1-bottom',
],
],
'active_callback' => array(
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header3',
),
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header4',
),
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header5',
),
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header6',
)
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_main_menu_typography_header_v1',
'label' => esc_html__( 'Menu Typography for Header versions 2 and 3', 'affiliate-booster' ),
'section' => 'affiliate_booster_main_menu',
'default' => [
'font-family' => 'Poppins',
'variant' => 'regular',
'font-size' => '',
// 'line-height' => '40px',
'letter-spacing' => '0',
'color' => '#ffffff',
'text-transform' => 'none',
],
'priority' => 20,
'transport' => 'auto',
'output' => [
[
'element' => '.aff-header-bottom .aff-main-nav>li>a, .aff-header-sticky .aff-main-nav>li>a, .aff-header-bottom .aff-actions>li>span, span.aff-sidebar-action.bars p',
'suffix' => '!important',
],
],
'active_callback' => array(
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header1',
),
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header2',
)
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_main_menu_typography_header_v2',
'label' => esc_html__( 'Menu Typography for header version 1', 'affiliate-booster' ),
'section' => 'affiliate_booster_main_menu',
'default' => [
'font-family' => 'Poppins',
'variant' => 'regular',
'font-size' => '16px',
/*'line-height' => '',*/
'letter-spacing' => '0',
'color' => '#ffffff',
'text-transform' => 'none',
],
'priority' => 20,
'transport' => 'auto',
'output' => [
[
'element' => '.aff-header-1 .aff-main-nav li > a, .aff-header-2 .aff-main-nav li > a, .aff-header-bottom.aff-head1-bottom .aff-slot-c, .aff-header-bottom.aff-head1-bottom .aff-slot-c ul li a, .aff-header-bottom.aff-head1-bottom .aff-slot-r ul li.toggle_menu p',
],
],
'active_callback' => array(
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header3',
),
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header4',
),
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header5',
),
array(
'setting' => 'aff_header_setting',
'operator' => '!==',
'value' => 'header6',
)
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'aff_main_menu_link_hover',
'label' => __( 'Color Control (hex-only)', 'affiliate-booster' ),
'description' => esc_html__( 'Hover For Main Menu Links', 'affiliate-booster' ),
'section' => 'affiliate_booster_main_menu',
'default' => '#FF780E',
'transport' => 'auto',
'priority' => 30,
'output' => array(
array(
'element' => '.aff-main-nav > li > a:hover, .aff-header-bottom .aff-actions-button > span:hover',
'property' => 'color',
'suffix' => '!important'
),
)
] );
//Secondary Menu
Kirki::add_section( 'affiliate_booster_secondary_menu', array(
'title' => __( 'Secondary Menu', 'affiliate-booster' ),
'priority' => 50,
'panel' => 'affiliate_booster_menus',
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'aff_main_menu_search_show_hide_secondary',
'label' => esc_html__( 'Enable/Disable Search', 'affiliate-booster' ),
'section' => 'affiliate_booster_secondary_menu',
'default' => '0',
'priority' => 7,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio-buttonset',
'settings' => 'aff_widget_secondary_menu_position',
'label' => esc_html__( 'Menu Alignment', 'affiliate-booster' ),
'section' => 'affiliate_booster_secondary_menu',
'default' => 'right',
'priority' => 8,
'transport' => 'auto',
'choices' => [
'left' => esc_html__( 'Left', 'affiliate-booster' ),
'center' => esc_html__( 'Center', 'affiliate-booster' ),
'right' => esc_html__( 'Right', 'affiliate-booster' ),
],
'output' => array(
array(
'element' => '.aff-header-1 .aff-slot-r nav.aff-main-navigation',
'property' => 'text-align',
),
)
] );
kirki::add_field($affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'secondary_menu_typo_settings',
'label' => esc_html__( 'Menu Typography', 'affiliate-booster' ),
// 'description' => esc_html__( 'Menu Typography Header versions 7 and 8', 'affiliate-booster' ),
'section' => 'affiliate_booster_secondary_menu',
'priority' => 10,
'default' => [
'font-family' => 'inherit',
'variant' => 'regular',
'font-size' => '',
// 'line-height' => '',
'letter-spacing' => '',
'color' => '#111111',
'text-transform' => 'none',
],
'transport' => 'auto',
'output' => [
[
'element' => '.aff-main-nav.aff-7 li>a, .aff-main-nav.aff-8 li>a, .aff-main-nav.aff-7 li ul.sub-menu li a, span.aff-sidebar-action.bars p, .aff-header-middle span.aff-sidebar-action.bars i.icon-menu, .aff-header-middle span.aff-sidebar-action.bars i.icon-cancel, .aff-header-middle li.aff-actions-button.aff-action-search i.icon-search',
/*'suffix' => ' !important',*/
],
],
]);
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'secondary_menu_hover_color_settings',
'label' => __( 'Menu Hover Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_secondary_menu',
'default' => '#000000',
'transport' => 'auto',
'output' => [
[
'element' => 'nav ul.aff-main-nav.aff-7 > li > a:hover, .aff-main-nav.aff-7 li ul.sub-menu li a:hover, .aff-header-middle .aff-actions-button > span:hover, .aff-header-middle li.aff-actions-button.aff-action-search i.icon-search:hover',
'property' => 'color',
'suffix' => '!important',
],
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio-buttonset',
'settings' => 'aff_sub_menu_algn_pos',
'label' => esc_html__( 'Sub Menu Alignment', 'affiliate-booster' ),
'section' => 'affiliate_booster_sub_menu',
'default' => 'left',
'priority' => 10,
'transport' => 'auto',
'choices' => [
'left' => esc_html__( 'Left', 'affiliate-booster' ),
'center' => esc_html__( 'Center', 'affiliate-booster' ),
'right' => esc_html__( 'Right', 'affiliate-booster' ),
],
'output' => array(
array(
'element' => '.aff-main-nav .sub-menu a',
'property' => 'text-align',
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'slider',
'settings' => 'aff_sub_menu_width',
'label' => esc_html__( 'Width', 'affiliate-booster' ),
'section' => 'affiliate_booster_sub_menu',
'priority' => 20,
'transport' => 'auto',
'default' => 300,
'choices' => [
'min' => 0,
'max' => 400,
'step' => 1,
],
'output' => array(
array(
'element' => '.aff-site-header .sub-menu',
'property' => 'width',
'units' => 'px'
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'dimensions',
'settings' => 'aff_sub_menu_padding',
'label' => esc_html__( 'Padding', 'affiliate-booster' ),
'section' => 'affiliate_booster_sub_menu',
'priority' => 30,
'transport' => 'auto',
'default' => [
'top' => '0px',
'right' => '10px',
'left' => '10px',
'bottom' => '0px',
],
'output' => array(
array(
'element' => '.aff-main-nav .sub-menu a, .widget_nav_menu .sub-menu a',
'property' => 'padding',
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'multicolor',
'settings' => 'aff_sub_menu_links_bg',
'label' => esc_html__( 'Drop Down Background Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_sub_menu',
'priority' => 40,
'transport' => 'auto',
'choices' => [
'link' => esc_html__( 'Background Color', 'affiliate-booster' )
],
'default' => [
'link' => '#ffffff'
],
'output' => array(
array(
'element' => '.aff-main-nav .sub-menu li',
'property' => 'background-color',
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'multicolor',
'settings' => 'aff_sub_menu_links_color',
'label' => esc_html__( 'Links Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_sub_menu',
'priority' => 50,
'transport' => 'auto',
'choices' => [
'link' => esc_html__( 'Color', 'affiliate-booster' )
],
'default' => [
'link' => '#000000'
],
'output' => array(
array(
'element' => '.aff-main-nav .sub-menu a, .widget_nav_menu .sub-menu a',
'property' => 'color',
'suffix' => '!important'
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'multicolor',
'settings' => 'aff_sub_menu_links_hover_color',
'label' => esc_html__( 'Links Hover Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_sub_menu',
'priority' => 60,
'transport' => 'auto',
'choices' => [
'link' => esc_html__( 'Color', 'affiliate-booster' )
],
'default' => [
'link' => '#000000'
],
'output' => array(
array(
'element' => '.aff-main-nav .sub-menu a:hover',
'property' => 'color',
'suffix' => '!important'
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_sub_menu_typography',
'label' => esc_html__( 'Typography Sub Menu', 'affiliate-booster' ),
'section' => 'affiliate_booster_sub_menu',
'default' => [
'font-size' => '18px',
'line-height' => '40px',
'letter-spacing' => '0',
'text-transform' => 'capitalize',
],
'priority' => 70,
'transport' => 'auto',
'output' => array(
array(
'element' => '.aff-site-header .sub-menu li a'
)
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'dimension',
'settings' => 'aff_sub_menu_duration',
'label' => esc_html__( 'Duration Transition', 'affiliate-booster' ),
'description' => esc_html__( 'Determine a duration for the hover effect in miliseconds.', 'affiliate-booster' ),
'section' => 'affiliate_booster_sub_menu',
'priority' => 80,
'default' => '0.3',
'transport' => 'auto',
'output' => array(
array(
'element' => '.aff-site-header .sub-menu',
'property' => 'transition-duration',
'suffix' => 's'
)
)
] );
//Footer Menu
Kirki::add_section( 'affiliate_booster_footer_menu', array(
'title' => __( 'Footer Menu', 'affiliate-booster' ),
'priority' => 50,
'panel' => 'affiliate_booster_menus'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'aff_footer_menu_typography_setting',
'label' => esc_html__( 'Footer Menu Typography', 'affiliate-booster' ),
'section' => 'affiliate_booster_footer_menu',
'default' => [
'font-family' => 'Poppins',
'variant' => 'regular',
'font-size' => '13px',
'line-height' => '1.4',
'letter-spacing' => '0',
'text-transform' => 'none',
],
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => '.aff-footer .footer-nav-menu ul li a',
'suffix' => '!important',
],
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'multicolor',
'settings' => 'aff_footer_menu_color_setting',
'label' => esc_html__( 'Links Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_footer_menu',
'priority' => 20,
'transport' => 'auto',
'choices' => [
'link' => esc_html__( 'Color', 'affiliate-booster' )
],
'default' => [
'link' => '#ffffff'
],
'output' => array(
array(
'element' => '.aff-footer .footer-nav-menu ul li a',
'property' => 'color',
'suffix' => '!important'
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'aff_footer_menu_hover_color_setting',
'label' => __( 'Color Control (hex-only)', 'affiliate-booster' ),
'description' => esc_html__( 'Hover For Footer Menu Links', 'affiliate-booster' ),
'section' => 'affiliate_booster_footer_menu',
'default' => '#e84d15',
'transport' => 'auto',
'priority' => 30,
'output' => array(
array(
'element' => '.aff-footer .footer-nav-menu ul li a:hover',
'property' => 'color',
'suffix' => '!important'
),
)
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'footer_footer_menu_settings',
'label' => __( 'Select Background Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_footer_menu',
'default' => '',
'priority' => 40,
'transport' => 'auto',
'default' => '#1e73be',
'output' => [
[
'element' => '.aff-footer.footer_footer_menu',
],
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'dimensions',
'settings' => 'footer_footer_menu_padding_settings',
'label' => __( 'Select Footer Menu Padding', 'affiliate-booster' ),
'section' => 'affiliate_booster_footer_menu',
'priority' => 50,
'default' => [
'padding-top' => '10px',
'padding-bottom' => '10px',
'padding-left' => '10px',
'padding-right' => '10px',
],
'output' => [
[
'element' => '.aff-footer.footer_footer_menu',
],
],
] );
//Layouts
Kirki::add_panel( 'affiliate_booster_layouts_all', array(
'title' => __( 'Layouts', 'affiliate-booster' ),
'priority' => 20,
'panel' => 'affiliate_booster_options_panel'
) );
//Homepage Layout
Kirki::add_section( 'affiliate_booster_homepage', array(
'title' => __( 'Home Page Layout', 'affiliate-booster' ),
'description' => __('Desgin Home page with Customize', 'affiliate-booster'),
'priority' => 60,
'panel' => 'affiliate_booster_layouts_all'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'sortable',
'settings' => 'sortable_post_info_setting',
'label' => esc_html__( 'Post Info', 'affiliate-booster' ),
'section' => 'affiliate_booster_homepage',
'default' => [
'option1',
'option2',
],
'choices' => [
'option1' => esc_html__( 'Show Author Name', 'affiliate-booster' ),
'option2' => esc_html__( 'Show Published on', 'affiliate-booster' ),
],
'priority' => 3,
] );
//Homepage Layout Type
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio',
'settings' => 'homepage_layout',
'label' => esc_html__( 'Homepage Layout', 'affiliate-booster' ),
'section' => 'affiliate_booster_homepage',
'default' => '1',
'priority' => 10,
'choices' => [
'1' => esc_html__( 'Basic Layout', 'affiliate-booster' ),
'7' => esc_html__( 'Grid Layout', 'affiliate-booster' ),
],
] );
//Single post layout
Kirki::add_section( 'affiliate_booster_singlepost', array(
'title' => __( 'Single Post Layout', 'affiliate-booster' ),
'description' => 'Select Single Featured Image layout form here area form there',
'priority' => 70,
'panel' => 'affiliate_booster_layouts_all'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'single_post_breadcrums_settings',
'label' => esc_html__( 'Enable/Disable Breadcrums', 'affiliate-booster' ),
'section' => 'affiliate_booster_singlepost',
'default' => '1',
'priority' => 3,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'sortable',
'settings' => 'sortable_single_post_info_setting',
'label' => esc_html__( 'Post Info', 'affiliate-booster' ),
'section' => 'affiliate_booster_singlepost',
'default' => [
'option1',
'option2',
],
'choices' => [
'option1' => esc_html__( 'Show Author Name', 'affiliate-booster' ),
'option2' => esc_html__( 'Show Published on', 'affiliate-booster' ),
/* 'option3' => esc_html__( 'Show Last Updated', 'affiliate-booster' ),
'option4' => esc_html__( 'Show Comment Count', 'affiliate-booster' ),
'option5' => esc_html__( 'Show Categories', 'affiliate-booster' ), */
],
'priority' => 3,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'blog_archive_layout_header',
'label' => esc_html__( 'Archive Headline (Show - On/Hide - Off)', 'affiliate-booster' ),
'section' => 'affiliate_booster_blog_archive',
'default' => '1',
'priority' => 9,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'sortable',
'settings' => 'sortable_archive_post_info_setting',
'label' => esc_html__( 'Post Info', 'affiliate-booster' ),
'section' => 'affiliate_booster_blog_archive',
'default' => [
'option1',
'option2',
],
'choices' => [
'option1' => esc_html__( 'Show Author Name', 'affiliate-booster' ),
'option2' => esc_html__( 'Show Published on', 'affiliate-booster' ),
'option3' => esc_html__( 'Show Last Updated', 'affiliate-booster' ),
'option4' => esc_html__( 'Show Comment Count', 'affiliate-booster' ),
'option5' => esc_html__( 'Show Categories', 'affiliate-booster' ),
],
'priority' => 10,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio',
'settings' => 'archive_layout',
'label' => esc_html__( 'Archive Layout', 'affiliate-booster' ),
'description' => 'Select different layouts of Archive page along with sidebar',
'section' => 'affiliate_booster_blog_archive',
'default' => '1',
'priority' => 11,
'choices' => [
'1' => esc_html__( 'Basic Layout', 'affiliate-booster' ),
'3' => esc_html__( 'Basic Layout + Big Featured Image', 'affiliate-booster' ),
'5' => esc_html__( 'Wide Featured Images', 'affiliate-booster' ),
'7' => esc_html__( 'Grid Layout', 'affiliate-booster' ),
'8' => esc_html__( 'Grid Layout + Big Featured Image', 'affiliate-booster' ),
'10' => esc_html__( 'Full-width Featured Image', 'affiliate-booster' ),
'12' => esc_html__( 'Full-width Grid Layout', 'affiliate-booster' ),
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio-buttonset',
'settings' => 'archive_sidebar_settings',
'label' => esc_html__( 'Select Sidebar', 'affiliate-booster' ),
'section' => 'affiliate_booster_blog_archive',
'default' => 'right',
'priority' => 12,
'choices' => [
'left' => esc_html__( 'Left', 'affiliate-booster' ),
'right' => esc_html__( 'Right', 'affiliate-booster' ),
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'number',
'settings' => 'archive_layout_excerpt_length',
'label' => esc_html__( 'Excerpt length', 'affiliate-booster' ),
'section' => 'affiliate_booster_blog_archive',
'priority' => 13,
'default' => 120,
'choices' => [
'min' => 0,
'max' => 200,
'step' => 10,
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'archive_layout_featured_image',
'label' => esc_html__( 'Enable/Disable featured image', 'affiliate-booster' ),
'section' => 'affiliate_booster_blog_archive',
'default' => '1',
'priority' => 14,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'dimensions',
'settings' => 'blog_archive_padding',
'label' => esc_html__( 'Content Padding', 'affiliate-booster' ),
'section' => 'affiliate_booster_blog_archive',
'priority' => 15,
'transport' => 'auto',
'default' => [
'top' => '40px',
'right' => '40px',
'left' => '40px',
'bottom' => '40px',
],
'output' => array(
array(
'element' => '.archive .col-md-8.main-content, .archive .col-md-12.main-content.full-layout-posts, .archive .col-md-12.main-content.full-layout-page',
'property' => 'padding',
),
)
] );
//discolser section
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'toggle',
'settings' => 'discloser_on_off_settings',
'label' => esc_html__( 'Enable/Disable Discolser Section', 'affiliate-booster' ),
'section' => 'affiliate_booster_discloser_layout',
'default' => '0',
'priority' => 90,
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio',
'settings' => 'discloser_content_alignment',
'label' => esc_html__( 'Discloser Placement(For single post layout 1)', 'affiliate-booster' ),
'section' => 'affiliate_booster_discloser_layout',
'default' => 'above-title',
'priority' => 91,
'choices' => [
'above-title' => esc_html__( 'Above Title', 'affiliate-booster' ),
'below-title' => esc_html__( 'Below Title', 'affiliate-booster' ),
'below-content' => esc_html__( 'Below Content', 'affiliate-booster' )
],
'active_callback' => [
[
'setting' => 'aff_single_layout',
'operator' => '!==',
'value' => 'layout2',
]
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'radio',
'settings' => 'discloser_content_alignment_layout_2',
'label' => esc_html__( 'Discloser Placement(For single post layout 2)', 'affiliate-booster' ),
'section' => 'affiliate_booster_discloser_layout',
'default' => 'above-content',
'priority' => 92,
'choices' => [
'above-content' => esc_html__( 'Above Content', 'affiliate-booster' ),
'below-content' => esc_html__( 'Below Content', 'affiliate-booster' )
],
'active_callback' => [
[
'setting' => 'aff_single_layout',
'operator' => '==',
'value' => 'layout2',
]
],
] );
//discolser text
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'textarea',
'settings' => 'discolser_text_settings',
'label' => esc_html__( 'Discloser Text', 'affiliate-booster' ),
'section' => 'affiliate_booster_discloser_layout',
// 'default' => esc_html__( 'Disclosure:', 'affiliate-booster' ),
'priority' => 93,
] );
//discolser trypography
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'typography',
'settings' => 'discolser_typography_settings',
'label' => esc_html__( 'Discloser Typography', 'affiliate-booster' ),
'section' => 'affiliate_booster_discloser_layout',
'default' => [
'font-family' => 'inherit',
'variant' => 'regular',
'font-size' => '18px',
'line-height' => '',
'letter-spacing' => '0',
'color' => '#333333',
'text-transform' => 'none',
],
'output' => [
[
'element' => 'body.single-post .discloser',
],
],
'priority' => 94,
'transport' => 'auto',
] );
//discloser background
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'discloser_background_settings',
'label' => __( 'Discloser Background', 'affiliate-booster' ),
'section' => 'affiliate_booster_discloser_layout',
'default' => '#f7f7f7',
'priority' => 95,
] );
//discloser padding
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'dimensions',
'settings' => 'discolser_dimensions_settings',
'label' => esc_html__( 'Discloser Padding', 'affiliate-booster' ),
'section' => 'affiliate_booster_discloser_layout',
'default' => [
'padding-top' => '20px',
'padding-bottom' => '20px',
'padding-left' => '20px',
'padding-right' => '20px',
],
'priority' => 93,
'output' => [
[
'element' => 'body.single-post .discloser',
],
],
] );
//Footer option in cutsomizer
Kirki::add_section( 'affiliate_booster_footer', array(
'title' => __( 'Footer Options', 'affiliate-booster' ),
'description' => 'Check if you want to include footer widgetized area in your theme. You can manage the footer content in the Appearance -> Widgets settings.',
'priority' => 90,
'panel' => 'affiliate_booster_options_panel'
) );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'select',
'settings' => 'aff_footer',
'label' => esc_html__( 'Footer columns', 'affiliate-booster' ),
'section' => 'affiliate_booster_footer',
'default' => '3_4',
'placeholder' => esc_html__( 'Select an option...', 'affiliate-booster' ),
'priority' => 50,
'multiple' => 1,
'choices' => [
'1_12' => esc_html__( '1', 'affiliate-booster' ),
'2_6' => esc_html__( '2', 'affiliate-booster' ),
'3_4' => esc_html__( '3', 'affiliate-booster' ),
'4_3' => esc_html__( '4', 'affiliate-booster' )
],
] );
Kirki::add_field( $affiliateBoosterTheme, [
'type' => 'color',
'settings' => 'footer_bgcolor_new',
'label' => __( 'Background Color', 'affiliate-booster' ),
'section' => 'affiliate_booster_footer',
'priority' => 90,
'default' => '#f3f3f3',
'transport' => 'auto',
'output' => [
[
'element' => '.aff-footer'
],
],
] );
//Site Identity
Kirki::add_field( $affiliateBoosterTheme, array(
'type' => 'slider',
'settings' => 'height-logo',
'label' => esc_html__( 'Logo Width (px)', 'affiliate-booster' ),
'section' => 'title_tagline',
'default' => 220,
'choices' => array(
'min' => '0',
'max' => '300',
'step' => '1',
),
'transport' => 'auto',
'output' => [
[
'element' => '.aff-logo',
'property' => 'width',
'suffix' => 'px'
],
],
'active_callback' => array(
array(
'setting' => 'aff_logo',
'operator' => '!==',
'value' => '',
),
)
) );
}
} );
/**
* Custom CSS for Kirki Controls Panel
*/
function my_customizer_styles() { ?>