<div id="ib-edu-breadcrumbs"><?php 
ib_edu_breadcrumbs();
?>
</div>

	<div class="lesson-content entry-content">
		<?php 
if ($student_can_study) {
    the_content();
    Edr_View::template_part('quiz');
} else {
    echo '<p>';
    printf(__('Please register for the %s to view this lesson.', 'ibeducator'), '<a href="' . esc_url(get_permalink(ib_edu_get_course_id())) . '">' . __('course', 'ibeducator') . '</a>');
    echo '</p>';
}
?>
	</div>

	<nav class="ib-edu-lesson-nav">
		<?php 
echo ib_edu_get_adjacent_lesson_link('previous', '<div class="nav-previous">&laquo; %link</div>', __('Previous Lesson', 'ibeducator'));
echo ib_edu_get_adjacent_lesson_link('next', '<div class="nav-next">%link &raquo;</div>', __('Next Lesson', 'ibeducator'));
?>
	</nav>
</article>

<?php 
// Comments.
if ($student_can_study && 1 == ib_edu_get_option('lesson_comments', 'learning') && (comments_open() || get_comments_number())) {
    comments_template();
}
								</div>
							<?php 
    the_content();
    Edr_View::template_part('quiz');
} else {
    echo '<p>';
    printf(esc_html__('Please register for the %s to view this lesson.', 'training'), '<a href="' . esc_url(get_permalink(ib_edu_get_course_id())) . '">' . esc_html__('course', 'training') . '</a>');
    echo '</p>';
}
?>
					</div>

					<nav class="ib-edu-lesson-nav">
						<?php 
echo ib_edu_get_adjacent_lesson_link('previous', '<div class="nav-previous">&laquo; %link</div>', esc_html__('Previous Lesson', 'training'));
echo ib_edu_get_adjacent_lesson_link('next', '<div class="nav-next">%link &raquo;</div>', esc_html__('Next Lesson', 'training'));
?>
					</nav>
				</article>
			</div>
		</div>
		
		<div class="lesson-comment space-padding-tb-30">
			<div class="comment-inner">
				<?php 
if ($student_can_study && 1 == ib_edu_get_option('lesson_comments', 'learning') && (comments_open() || get_comments_number())) {
    comments_template();
}
?>
			</div>	
		</div>