'custom',
'settings' => 'body_typo_heading_1',
'section' => 'headings',
'default' => '
' . esc_html__( 'Heading 1', 'bizberg' ) . '
',
) );
Kirki::add_field( 'bizberg', [
'type' => 'checkbox',
'settings' => 'body_typo_heading_1_status',
'label' => esc_html__( 'Enable / Disable', 'bizberg' ),
'description' => esc_html__( 'Tick to enable custom H1 font', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_body_typo_heading_1_status', false ),
] );
Kirki::add_field( 'bizberg', [
'type' => 'typography',
'settings' => 'typography_h1',
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h1', [
'font-family' => 'Lato',
'variant' => '700',
'font-size' => '64.09px',
'line-height' => '1.1',
'letter-spacing' => '0',
'text-transform' => 'inherit'
]),
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'h1:not([class^="elementor-"]):not(.banner-title),.breadcrumb-wrapper h1',
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_1_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', [
'type' => 'number',
'settings' => 'typography_h1_tablet',
'label' => esc_html__( 'Font Size ( Tablet )', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h1_tablet', 57.98 ),
'choices' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'output' => [
[
'element' => 'h1:not([class^="elementor-"]):not(.banner-title),.breadcrumb-wrapper h1',
'value_pattern' => '$px',
'property' => 'font-size',
'media_query' => '@media (min-width: 481px) and (max-width: 1024px)',
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_1_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', [
'type' => 'number',
'settings' => 'typography_h1_mobile',
'label' => esc_html__( 'Font Size ( Mobile )', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h1_mobile', 45.78 ),
'choices' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'output' => [
[
'element' => 'h1:not([class^="elementor-"]):not(.banner-title),.breadcrumb-wrapper h1',
'value_pattern' => '$px',
'property' => 'font-size',
'media_query' => '@media (min-width: 320px) and (max-width: 480px)'
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_1_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', array(
'type' => 'custom',
'settings' => 'body_typo_heading_2',
'section' => 'headings',
'default' => '' . esc_html__( 'Heading 2', 'bizberg' ) . '
',
) );
Kirki::add_field( 'bizberg', [
'type' => 'checkbox',
'settings' => 'body_typo_heading_2_status',
'label' => esc_html__( 'Enable / Disable', 'bizberg' ),
'description' => esc_html__( 'Tick to enable custom H2 font', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_body_typo_heading_2_status', false ),
] );
Kirki::add_field( 'bizberg', [
'type' => 'typography',
'settings' => 'typography_h2',
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h2', [
'font-family' => 'Lato',
'variant' => '700',
'font-size' => '51.27px',
'line-height' => '1',
'letter-spacing' => '0',
'text-transform' => 'inherit'
]),
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'h2:not([class^="elementor-"]):not(.title),body.sidebar #sidebar .widget h2, .wp-block-search__label',
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_2_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', [
'type' => 'number',
'settings' => 'typography_h2_tablet',
'label' => esc_html__( 'Font Size ( Tablet )', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h2_tablet', 46.39 ),
'choices' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'output' => [
[
'element' => 'h2:not([class^="elementor-"]):not(.title),body.sidebar #sidebar .widget h2, .wp-block-search__label',
'value_pattern' => '$px',
'property' => 'font-size',
'media_query' => '@media (min-width: 481px) and (max-width: 1024px)',
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_2_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', [
'type' => 'number',
'settings' => 'typography_h2_mobile',
'label' => esc_html__( 'Font Size ( Mobile )', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h2_mobile', 36.62 ),
'choices' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'output' => [
[
'element' => 'h2:not([class^="elementor-"]):not(.title),body.sidebar #sidebar .widget h2, .wp-block-search__label',
'value_pattern' => '$px',
'property' => 'font-size',
'media_query' => '@media (min-width: 320px) and (max-width: 480px)'
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_2_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', array(
'type' => 'custom',
'settings' => 'body_typo_heading_3',
'section' => 'headings',
'default' => '' . esc_html__( 'Heading 3', 'bizberg' ) . '
',
) );
Kirki::add_field( 'bizberg', [
'type' => 'checkbox',
'settings' => 'body_typo_heading_3_status',
'label' => esc_html__( 'Enable / Disable', 'bizberg' ),
'description' => esc_html__( 'Tick to enable custom H3 font', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_body_typo_heading_3_status', false ),
] );
Kirki::add_field( 'bizberg', [
'type' => 'typography',
'settings' => 'typography_h3',
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h3', [
'font-family' => 'Lato',
'variant' => '700',
'font-size' => '41.02px',
'line-height' => '1',
'letter-spacing' => '0',
'text-transform' => 'inherit'
]),
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'h3:not([class^="elementor-"]):not(.header_site_title):not(.service-title):not(.news-title):not([class^="eael-"]):not(.team-title):not(.cause-title):not(.progress-percentage):not(.donated-text):not(.income-symbol):not(.donor-count):not(.circle-progressbar-counter):not(.goal-title):not(.remaing-title):not(.donor-title),.detail-content.single_page h3',
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_3_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', [
'type' => 'number',
'settings' => 'typography_h3_tablet',
'label' => esc_html__( 'Font Size ( Tablet )', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h3_tablet', 37.11 ),
'choices' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'output' => [
[
'element' => 'h3:not([class^="elementor-"]):not(.header_site_title):not(.service-title):not(.news-title):not([class^="eael-"]):not(.team-title):not(.cause-title):not(.progress-percentage):not(.donated-text):not(.income-symbol):not(.donor-count):not(.circle-progressbar-counter):not(.goal-title):not(.remaing-title):not(.donor-title),.detail-content.single_page h3',
'value_pattern' => '$px',
'property' => 'font-size',
'media_query' => '@media (min-width: 481px) and (max-width: 1024px)',
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_3_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', [
'type' => 'number',
'settings' => 'typography_h3_mobile',
'label' => esc_html__( 'Font Size ( Mobile )', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h3_mobile', 29.30 ),
'choices' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'output' => [
[
'element' => 'h3:not([class^="elementor-"]):not(.header_site_title):not(.service-title):not(.news-title):not([class^="eael-"]):not(.team-title):not(.cause-title):not(.progress-percentage):not(.donated-text):not(.income-symbol):not(.donor-count):not(.circle-progressbar-counter):not(.goal-title):not(.remaing-title):not(.donor-title),.detail-content.single_page h3',
'value_pattern' => '$px',
'property' => 'font-size',
'media_query' => '@media (min-width: 320px) and (max-width: 480px)'
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_3_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', array(
'type' => 'custom',
'settings' => 'body_typo_heading_4',
'section' => 'headings',
'default' => '' . esc_html__( 'Heading 4', 'bizberg' ) . '
',
) );
Kirki::add_field( 'bizberg', [
'type' => 'checkbox',
'settings' => 'body_typo_heading_4_status',
'label' => esc_html__( 'Enable / Disable', 'bizberg' ),
'description' => esc_html__( 'Tick to enable custom H4 font', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_body_typo_heading_4_status', false ),
] );
Kirki::add_field( 'bizberg', [
'type' => 'typography',
'settings' => 'typography_h4',
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h4', [
'font-family' => 'Lato',
'variant' => '700',
'font-size' => '32.81px',
'line-height' => '1.1',
'letter-spacing' => '0',
'text-transform' => 'inherit'
]),
'priority' => 10,
'transport' => 'auto',
'output' => [
[
'element' => 'h4:not([class^="elementor-"]):not([class^="eael-"]):not([class^="napae-"]):not([class^="namep-"]):not(.valuable-title)',
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_4_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', [
'type' => 'number',
'settings' => 'typography_h4_tablet',
'label' => esc_html__( 'Font Size ( Tablet )', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h4_tablet', 29.69 ),
'choices' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'output' => [
[
'element' => 'h4:not([class^="elementor-"]):not([class^="eael-"]):not([class^="napae-"]):not([class^="namep-"]):not(.valuable-title)',
'value_pattern' => '$px',
'property' => 'font-size',
'media_query' => '@media (min-width: 481px) and (max-width: 1024px)',
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_4_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', [
'type' => 'number',
'settings' => 'typography_h4_mobile',
'label' => esc_html__( 'Font Size ( Mobile )', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_typography_h4_mobile', 23.44 ),
'choices' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
'output' => [
[
'element' => 'h4:not([class^="elementor-"]):not([class^="eael-"]):not([class^="napae-"]):not([class^="namep-"]):not(.valuable-title)',
'value_pattern' => '$px',
'property' => 'font-size',
'media_query' => '@media (min-width: 320px) and (max-width: 480px)'
],
],
'active_callback' => [
[
'setting' => 'body_typo_heading_4_status',
'operator' => '==',
'value' => true,
]
],
] );
Kirki::add_field( 'bizberg', array(
'type' => 'custom',
'settings' => 'sidebar_widget_heading',
'section' => 'headings',
'default' => '' . esc_html__( 'Sidebar Widget Heading', 'bizberg' ) . '
',
) );
Kirki::add_field( 'bizberg', [
'type' => 'checkbox',
'settings' => 'sidebar_widget_heading_font_size_status',
'label' => esc_html__( 'Enable custom heading font size', 'bizberg' ),
'description' => esc_html__( 'Tick to enable custom font size on sidebar headings', 'bizberg' ),
'section' => 'headings',
'default' => apply_filters( 'bizberg_sidebar_widget_heading_font_size_status', false )
] );
if( function_exists( 'bizberg_kirki_dtm_options' ) ){
bizberg_kirki_dtm_options(
array(
'display' => array(
'desktop' => 'desktop',
'tablet' => 'tablet',
'mobile' => 'mobile'
),
'field_id' => 'bizberg',
'section' => 'headings',
'settings' => 'sidebar_widget_heading_font_sizes',
'global_active_callback' => array(
array(
'setting' => 'sidebar_widget_heading_font_size_status',
'operator' => '==',
'value' => true
)
),
'fields' => array(
'slider' => array(
'desktop' => array(
'label' => esc_html__( 'Font Size', 'bizberg' ),
'settings' => 'sidebar_widget_heading_font_sizes',
'default' => apply_filters( 'bizberg_number_setting_desktop_sidebar_widget_heading_font_sizes', 32.81 ),
'choices' => [
'min' => 10,
'max' => 50,
'step' => 1,
],
'transport' => 'auto',
'output' => array(
array(
'element' => 'body.sidebar #sidebar .widget h2, .wp-block-search__label',
'property' => 'font-size',
'value_pattern' => '$px'
)
),
),
'tablet' => array(
'label' => esc_html__( 'Font Size', 'bizberg' ),
'settings' => 'sidebar_widget_heading_font_sizes',
'default' => apply_filters( 'bizberg_number_setting_tablet_sidebar_widget_heading_font_sizes', 29.69 ),
'choices' => [
'min' => 10,
'max' => 50,
'step' => 1,
],
'transport' => 'auto',
'output' => array(
array(
'element' => 'body.sidebar #sidebar .widget h2, .wp-block-search__label',
'property' => 'font-size',
'value_pattern' => '$px',
'media_query' => '@media (min-width: 481px) and (max-width: 1024px)'
)
),
),
'mobile' => array(
'label' => esc_html__( 'Font Size', 'bizberg' ),
'settings' => 'sidebar_widget_heading_font_sizes',
'default' => apply_filters( 'bizberg_number_setting_mobile_sidebar_widget_heading_font_sizes', 23.44 ),
'choices' => [
'min' => 10,
'max' => 50,
'step' => 1,
],
'transport' => 'auto',
'output' => array(
array(
'element' => 'body.sidebar #sidebar .widget h2, .wp-block-search__label',
'property' => 'font-size',
'value_pattern' => '$px',
'media_query' => '@media (min-width: 320px) and (max-width: 480px)'
)
),
)
),
)
)
);
}