<?php

defined( 'ABSPATH' ) || exit;

/**
 * Gradebook tab in single course page.
 *
 * @since 2.5.20
 */
$layout = masteriyo_get_setting( 'single_course.display.template.layout' ) ?? 'default';

?>
<?php if ( 'layout1' === $layout ) : ?>
	<li class="masteriyo-single-body__main--tabbar-item" onClick="masteriyoSelectSingleCoursePageTabById(event);" data-tab-id="masteriyoSingleCourseGradebookTab"><?php esc_html_e( 'Gradebook', 'learning-management-system' ); ?></li>
<?php else : ?>
	<div class="masteriyo-tab" onClick="masteriyo_select_single_course_page_tab(event, '.tab-content.gradebook');">
		<?php esc_html_e( 'Gradebook', 'learning-management-system' ); ?>
	</div>
<?php endif; ?>
