<?php
/**
 * Single Quiz: Return to Lesson Link
 *
 * @package LifterLMS/Templates
 *
 * @since    1.0.0
 * @version  3.16.0
 */

defined( 'ABSPATH' ) || exit;

global $post;

$quiz = llms_get_post( $post );
if ( ! $quiz ) {
	return;
}
?>

<div class="clear"></div>
<div class="llms-return">
	<a href="<?php echo esc_url( get_permalink( $quiz->get( 'lesson_id' ) ) ); ?>"><?php esc_html_e( 'Return to Lesson', 'lifterlms' ); ?></a>
</div>
