id = 'advanced';
$this->text = esc_html__( 'Advanced', 'learnpress' );
parent::__construct();
}
public function get_settings( $section = '', $tab = '' ) {
return apply_filters(
'learn_press_advanced_settings',
array(
array(
'type' => 'title',
'title' => esc_html__( 'Style', 'learnpress' ),
'id' => 'lp_metabox_setting_advanced',
),
array(
'title' => esc_html__( 'Primary color', 'learnpress' ),
'desc' => sprintf( __( 'Default: %s', 'learnpress' ), '#ffb606' ),
'id' => 'primary_color',
'type' => 'color',
'css' => 'width:6em;',
'default' => '#ffb606',
'autoload' => false,
'desc_tip' => true,
),
array(
'title' => esc_html__( 'Secondary color', 'learnpress' ),
'desc' => sprintf( __( 'Default: %s', 'learnpress' ), '#442e66' ),
'id' => 'secondary_color',
'type' => 'color',
'css' => 'width:6em;',
'default' => '#442e66',
'autoload' => false,
'desc_tip' => true,
),
array(
'type' => 'sectionend',
'id' => 'lp_metabox_setting_advanced',
),
array(
'type' => 'title',
'title' => esc_html__( 'Other', 'learnpress' ),
'id' => 'lp_metabox_advanced_other',
),
array(
'title' => esc_html__( 'Enable gutenberg', 'learnpress' ),
'id' => 'enable_gutenberg_course',
'default' => 'no',
'type' => 'checkbox',
'checkboxgroup' => 'start',
'desc' => esc_html__( 'Course', 'learnpress' ),
),
array(
'id' => 'enable_gutenberg_lesson',
'default' => 'no',
'type' => 'checkbox',
'checkboxgroup' => '',
'desc' => esc_html__( 'Lesson', 'learnpress' ),
),
array(
'id' => 'enable_gutenberg_quiz',
'default' => 'no',
'type' => 'checkbox',
'checkboxgroup' => '',
'desc' => esc_html__( 'Quiz', 'learnpress' ),
),
array(
'id' => 'enable_gutenberg_question',
'default' => 'no',
'type' => 'checkbox',
'checkboxgroup' => 'end',
'desc' => esc_html__( 'Question', 'learnpress' ),
),
array(
'title' => esc_html__( 'Debug Mode', 'learnpress' ),
'id' => 'debug',
'default' => 'no',
'type' => 'checkbox',
'desc' => esc_html__( 'Enable debug mode for developer.', 'learnpress' ),
),
// array(
// 'title' => esc_html__( 'Enable Jwt Rest API', 'learnpress' ),
// 'id' => 'enable_jwt_rest_api',
// 'default' => 'no',
// 'type' => 'checkbox',
// 'desc' => esc_html__( 'Enable Rest API build for app, mobile...etc.', 'learnpress' ),
// ),
/*array(
'title' => esc_html__( 'Hard Cache', 'learnpress' ),
'id' => 'enable_hard_cache',
'default' => 'no',
'type' => 'checkbox',
'desc' => sprintf( __( 'Enable cache for static content such as content and settings of course, lesson, quiz. %2$s', 'learnpress' ), admin_url( 'admin.php?page=learn-press-tools&tab=cache' ), esc_html__( 'Advanced', 'learnpress' ) ),
),*/
array(
'title' => esc_html__( 'Enable', 'learnpress' ),
'id' => 'navigation_position',
'default' => 'yes',
'type' => 'checkbox',
'desc' => esc_html__( 'Question navigation position is sticky, if not right below the quiz content', 'learnpress' ),
),
array(
'type' => 'sectionend',
'id' => 'lp_metabox_advanced_other',
),
)
);
}
}
return new LP_Settings_Advanced();