image.php 491 Bytes
Newer Older
cyrille's avatar
cyrille committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php
/**
 * Single Question featured image template
 *
 * @package LifterLMS/Templates
 *
 * @since    3.16.0
 * @version  3.16.0
 *
 * @arg  $attempt  (obj)  LLMS_Quiz_Attempt instance
 * @arg  $question (obj)  LLMS_Question instance
 */

defined( 'ABSPATH' ) || exit;

if ( ! $question->has_image() ) {
	return;
}
?>

<div class="llms-question-image">
	<img alt="<?php echo esc_attr( $question->get( 'title' ) ); ?>" src="<?php echo esc_url( $question->get_image( 'size' ) ); ?>">
</div>