Files
Landing/wp-content/themes/upstudy/inc/customizer/option-panel/tutor.php
T

747 lines
25 KiB
PHP
Raw Normal View History

2026-04-23 04:33:43 +03:30
<?php
/*----------------------------
Tutor Archive Page
----------------------------*/
Kirki::add_section( 'upstudy_tutor_archive_page_section', array(
'title' => esc_html__( 'Course Archive Page', 'upstudy' ),
'panel' => 'upstudy_tutor_panel'
) );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'text',
'settings' => 'tutor_archive_page_title',
'label' => esc_html__( 'Custom Archive Page Title', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => esc_html__('Courses', 'upstudy'),
'transport' => 'refresh',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'select',
'settings' => 'tutor_course_archive_style',
'label' => esc_html__( 'Course Style', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
'multiple' => false,
'choices' => [
'1' => esc_html__('Style 01', 'upstudy'),
'2' => esc_html__('Style 02', 'upstudy'),
'3' => esc_html__('Style 03', 'upstudy'),
'4' => esc_html__('Style 04', 'upstudy'),
'5' => esc_html__('Style 05', 'upstudy'),
'6' => esc_html__('Style 06', 'upstudy'),
'7' => esc_html__('Style 07', 'upstudy'),
// '8' => esc_html__('Style 08', 'upstudy'),
// '9' => esc_html__('Style 09', 'upstudy'),
// '10' => esc_html__('Style 10', 'upstudy'),
],
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_archive_media_show',
'label' => esc_html__( 'Media?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_intro_video',
'label' => esc_html__( 'PopUp Intro Video?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => false,
'active_callback' => [
[
'setting' => 'tutor_archive_media_show',
'operator' => '===',
'value' => true,
],
],
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'select',
'settings' => 'tutor_archive_image_size',
'label' => esc_html__( 'Select Image Size', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => 'upstudy-course-thumb',
'multiple' => false,
'placeholder' => esc_html__( 'Select a image size', 'upstudy' ),
'choices' => upstudy_get_thumbnail_sizes(),
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'custom',
'settings' => 'divider_tutor_header_top',
'section' => 'upstudy_tutor_archive_page_section',
'default' => '<hr>',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_archive_title_show',
'label' => esc_html__( 'Title?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_excerpt_show',
'label' => esc_html__( 'Excerpt?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => false,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_price_show',
'label' => esc_html__( 'Price?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => true,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_enroll_show',
'label' => esc_html__( 'Students?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => false,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_enroll_text_show',
'label' => esc_html__( 'Students Text?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
'active_callback' => array(
array(
array(
'setting' => 'tutor_enroll_show',
'operator' => '==',
'value' => true,
),
),
)
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_lesson_show',
'label' => esc_html__( 'Lesson?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => true,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_lesson_text_show',
'label' => esc_html__( 'Lesson Text?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => 1,
'active_callback' => array(
array(
array(
'setting' => 'tutor_lesson_show',
'operator' => '==',
'value' => true,
),
),
)
] );
// Kirki::add_field( 'upstudy_theme_config', [
// 'type' => 'toggle',
// 'settings' => 'tutor_duration_show',
// 'label' => esc_html__( 'Duration?', 'upstudy' ),
// 'section' => 'upstudy_tutor_archive_page_section',
// 'default' => false,
// ] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_quiz_show',
'label' => esc_html__( 'Quiz?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => false,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_quiz_text_show',
'label' => esc_html__( 'Quiz Text?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
'active_callback' => array(
array(
array(
'setting' => 'tutor_quiz_show',
'operator' => '==',
'value' => true,
),
),
)
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_cat_show',
'label' => esc_html__( 'Categories?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_review_show',
'label' => esc_html__( 'Review?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_review_text_show',
'label' => esc_html__( 'Review Text?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => false,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_level_show',
'label' => esc_html__( 'Level?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => true,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_wishlist_show',
'label' => esc_html__( 'Wishlist?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => true,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_instructor_img_on_off',
'label' => esc_html__( 'Instructor Avatar?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_instructor_name_on_off',
'label' => esc_html__( 'Instructor Name?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'custom',
'settings' => 'divider_tutor_permalink_type',
'section' => 'upstudy_tutor_archive_page_section',
'default' => '<hr>',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_see_more_btn',
'label' => esc_html__( 'View More Button?', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', array(
'label' => esc_html__( 'View More - Custom Text', 'upstudy' ),
'type' => 'text',
'settings' => 'tutor_see_more_btn_text',
'section' => 'upstudy_tutor_archive_page_section',
'default' => esc_html__('Explore Now', 'upstudy'),
'transport' => 'refresh',
) );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'radio-buttonset',
'settings' => 'tutor_archive_pagi_aligment',
'label' => esc_html__( 'Pagination', 'upstudy' ),
'section' => 'upstudy_tutor_archive_page_section',
'default' => 'center',
'choices' => [
'flex-start' => esc_html__('Left', 'upstudy'),
'center' => esc_html__('Center', 'upstudy'),
'flex-end' => esc_html__('Right', 'upstudy'),
],
] );
/*----------------------------
Tutor Single Page
----------------------------*/
Kirki::add_section( 'upstudy_tutor_single_page_section', array(
'title' => esc_html__( 'Course Single Page', 'upstudy' ),
'panel' => 'upstudy_tutor_panel'
) );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'select',
'settings' => 'tutor_single_page_layout',
'label' => esc_html__( 'Page Style', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
'multiple' => false,
'choices' => [
'1' => esc_html__('Style 01', 'upstudy'),
'2' => esc_html__('Style 02', 'upstudy'),
'3' => esc_html__('Style 03', 'upstudy'),
// '4' => esc_html__('Style 04', 'upstudy'),
// '5' => esc_html__('Style 05', 'upstudy'),
],
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'select',
'settings' => 'tutor_course_header_style',
'label' => esc_html__( 'Header Style', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
'multiple' => false,
'choices' => [
'1' => esc_html__('Style 01', 'upstudy'),
'2' => esc_html__('Style 02', 'upstudy'),
],
'active_callback' => array(
array(
array(
'setting' => 'tutor_single_page_layout',
'operator' => '==',
'value' => '0',
),
// OR
array(
array(
'setting' => 'tutor_single_page_layout',
'operator' => '==',
'value' => '0',
),
),
),
),
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'custom',
'settings' => 'divider_tutor_intro_video_position',
'section' => 'upstudy_tutor_single_page_section',
'default' => '<hr>',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'radio-buttonset',
'settings' => 'tutor_intro_video_position',
'label' => esc_html__( 'Intro Image/Video Preview', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => 'intro_video_sidebar',
'multiple' => false,
'choices' => [
'none' => esc_html__('Off', 'upstudy'),
'intro_video_content' => esc_html__('Content Area', 'upstudy'),
'intro_video_sidebar' => esc_html__('Sidebar Area', 'upstudy'),
],
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'select',
'settings' => 'tutor_single_video_type',
'label' => esc_html__( 'Video Type', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => 'video_by_theme_popup',
'multiple' => false,
'choices' => [
'video_by_theme_popup' => esc_html__('Theme PopUp', 'upstudy'),
'video_by_lms' => esc_html__('Tutor LMS Default', 'upstudy'),
],
'active_callback' => array(
array(
array(
'setting' => 'tutor_intro_video_position',
'operator' => '==',
'value' => 'intro_video_sidebar',
),
),
)
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'select',
'settings' => 'tutor_single_title_tag',
'label' => esc_html__( 'Title Tag', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => 'h1',
'placeholder' => esc_html__( 'Select an tag...', 'upstudy' ),
'multiple' => false,
'choices' => [
'h1' => esc_html__( 'H1', 'upstudy' ),
'h2' => esc_html__( 'H2', 'upstudy' ),
'h3' => esc_html__( 'H3', 'upstudy' ),
'h4' => esc_html__( 'H4', 'upstudy' ),
'h5' => esc_html__( 'H5', 'upstudy' ),
'h6' => esc_html__( 'H6', 'upstudy' ),
],
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_breadcrumb',
'label' => esc_html__( 'Breadcrumb?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'custom',
'settings' => 'divider_tutor_single_sidebar_sticky',
'section' => 'upstudy_tutor_single_page_section',
'default' => '<hr>',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_sidebar_sticky',
'label' => esc_html__( 'Sidebar Sticky?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => false,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'custom',
'settings' => 'divider_tutor_single_course_graduation',
'section' => 'upstudy_tutor_single_page_section',
'default' => '<hr>',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_last_update',
'label' => esc_html__( 'Last Updated?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_enroll_btn',
'label' => esc_html__( 'Enrolled Button?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_price',
'label' => esc_html__( 'Price?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_excerpt',
'label' => esc_html__( 'Excerpt?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => false,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_enroll',
'label' => esc_html__( 'Enrolled?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_duration_single',
'label' => esc_html__( 'Duration?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_lesson_single',
'label' => esc_html__( 'Lesson?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_quiz',
'label' => esc_html__( 'Quiz?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => true,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_skill_level',
'label' => esc_html__( 'Skill Level?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => true,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_language',
'label' => esc_html__( 'Language?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_cat',
'label' => esc_html__( 'Category?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'radio-buttonset',
'settings' => 'tutor_custom_features_position',
'label' => esc_html__( 'Custom Features List Position', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => 'bottom',
'choices' => [
'top' => esc_html__('Top', 'upstudy'),
'bottom' => esc_html__('Buttom', 'upstudy'),
],
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_tags',
'label' => esc_html__( 'Tags?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_social_shear',
'label' => esc_html__( 'Social Share?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_instructor_single',
'label' => esc_html__( 'Instructor?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => '1',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_review',
'label' => esc_html__( 'Reviews?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => true,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_wishlist',
'label' => esc_html__( 'Wishlist?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => true,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_cat_list',
'label' => esc_html__( 'Sidebar Category List?', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => false,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_single_instructor',
'label' => esc_html__( 'A Course by (Instructor)', 'upstudy' ),
'section' => 'upstudy_tutor_single_page_section',
'default' => false,
] );
/*----------------------------
Tutor Related Courses
----------------------------*/
Kirki::add_section( 'upstudy_tutor_related_course_section', array(
'title' => esc_html__( 'Related Courses', 'upstudy' ),
'panel' => 'upstudy_tutor_panel'
) );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'select',
'settings' => 'tutor_related_course_position',
'label' => esc_html__( 'Custom Features List Position', 'upstudy' ),
'section' => 'upstudy_tutor_related_course_section',
'default' => 'content',
'multiple' => false,
'choices' => [
'none' => esc_html__('None', 'upstudy'),
'sidebar' => esc_html__('Sidebar Area', 'upstudy'),
'content' => esc_html__('Content Area', 'upstudy'),
],
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'custom',
'settings' => 'divider_tutor_related_course_style',
'section' => 'upstudy_tutor_related_course_section',
'default' => '<hr>',
'active_callback' => array(
array(
array(
'setting' => 'tutor_related_course_position',
'operator' => '==',
'value' => 'sidebar',
),
),
),
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'radio-buttonset',
'settings' => 'tutor_related_course_style',
'label' => esc_html__( 'Related Course Style', 'upstudy' ),
'section' => 'upstudy_tutor_related_course_section',
'default' => 'square',
'choices' => [
'round' => esc_html__('Round', 'upstudy'),
'square' => esc_html__('Square', 'upstudy'),
],
'active_callback' => array(
array(
array(
'setting' => 'tutor_related_course_position',
'operator' => '==',
'value' => 'sidebar',
),
),
),
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'custom',
'settings' => 'divider_tutor_related_course_title',
'section' => 'upstudy_tutor_related_course_section',
'default' => '<hr>',
] );
Kirki::add_field( 'upstudy_theme_config', array(
'label' => esc_html__( 'Custom Heading', 'upstudy' ),
'type' => 'text',
'settings' => 'tutor_related_course_title',
'section' => 'upstudy_tutor_related_course_section',
'default' => 'Related Courses',
'transport' => 'postMessage',
'active_callback' => [
[
'setting' => 'tutor_course_feature_cat_show',
'operator' => '===',
'value' => true,
],
],
) );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'custom',
'settings' => 'divider_tutor_related_course_items',
'section' => 'upstudy_tutor_related_course_section',
'default' => '<hr>',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'number',
'settings' => 'tutor_related_course_items',
'label' => esc_html__( 'Number of Courses', 'upstudy' ),
'section' => 'upstudy_tutor_related_course_section',
'default' => 4,
'choices' => [
'min' => 1,
'step' => 1,
],
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'radio-buttonset',
'settings' => 'tutor_related_course_columns',
'label' => esc_html__( 'Related Course Columns', 'upstudy' ),
'section' => 'upstudy_tutor_related_course_section',
'default' => '3',
'choices' => [
'3' => __('4 Columns', 'upstudy'),
'4' => __('3 Columns', 'upstudy'),
'6' => __('2 Columns', 'upstudy'),
],
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'custom',
'settings' => 'divider_tutor_related_course_by',
'section' => 'upstudy_tutor_related_course_section',
'default' => '<hr>',
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'radio-buttonset',
'settings' => 'tutor_related_course_by',
'label' => esc_html__( 'Related Course By', 'upstudy' ),
'section' => 'upstudy_tutor_related_course_section',
'default' => 'tags',
'choices' => [
'category' => esc_html__('Category', 'upstudy'),
'tags' => esc_html__('Tags', 'upstudy'),
],
] );
/*----------------------------
Tutor Login Page
----------------------------*/
Kirki::add_section( 'upstudy_tutor_login_page_section', array(
'title' => esc_html__( 'Login Page', 'upstudy' ),
'panel' => 'upstudy_tutor_panel'
) );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'radio-buttonset',
'settings' => 'tutor_login_form_widget_align',
'label' => esc_html__( 'Widget Align', 'upstudy' ),
'section' => 'upstudy_tutor_login_page_section',
'default' => 'center',
'choices' => [
'flex-start' => esc_html__('Left', 'upstudy'),
'center' => esc_html__('Center', 'upstudy'),
'flex-end' => esc_html__('Right', 'upstudy'),
],
] );
/*----------------------------
Tutor Utilities
----------------------------*/
Kirki::add_section( 'upstudy_tutor_utilities_section', array(
'title' => esc_html__( 'Utilities', 'upstudy' ),
'panel' => 'upstudy_tutor_panel'
) );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_settings_color',
'label' => esc_html__( 'Override Tutor Settings Color?', 'upstudy' ),
'section' => 'upstudy_tutor_utilities_section',
'default' => false,
] );
Kirki::add_field( 'upstudy_theme_config', [
'type' => 'toggle',
'settings' => 'tutor_hide_profile_page_header',
'label' => esc_html__( 'Hide Profile Page Header?', 'upstudy' ),
'section' => 'upstudy_tutor_utilities_section',
'default' => false,
] );