started) : ?>
started) : ?> set && $this->sets) : ?>
set) : ?>
getInput()->post->getInt('extra_time', 0); $baseDurationSeconds = (int) $this->set->duration > 0 ? (int) $this->set->duration * 60 : array_sum(array_map(static function ($item) { return max(0, (int) ($item->time_limit ?? 0)); }, $this->items)); $testDurationSeconds = $baseDurationSeconds + ($extraTime * 60); $durationMinutes = intdiv($testDurationSeconds, 60); $durationRemainder = $testDurationSeconds % 60; ?>
set->subject_title) : ?>
set->subject_title, ENT_QUOTES, 'UTF-8'); ?>

set->title, ENT_QUOTES, 'UTF-8'); ?>

0) : ?>
: min 0) : ?> s
set->image) : ?>
set->test_content) : ?>
set->test_content; ?>
results && $testDurationSeconds > 0) : ?>
--:--
results) : ?>
: results['correct']; ?> / results['total']; ?> (results['percentage'], ENT_QUOTES, 'UTF-8'); ?>%)
items) : ?>
results) : ?> items as $item) : ?> items as $number => $item) : ?> results && !empty($this->results['items'][$item->id]['answer_order']) ? $this->results['items'][$item->id]['answer_order'] : [1, 2, 3, 4]; if (!$this->results && $item->question_type === 'closed') { shuffle($answerOrder); } ?>
question; ?>
image) : ?>
question_type === 'open') : ?>
results) : ?> : results['items'][$item->id]['selected'] ?: '—', ENT_QUOTES, 'UTF-8'); ?>
results) : ?>
    $optionValue) : ?> results && $this->results['items'][$item->id]['selected'] === (string) $optionValue; ?> results && (string) $item->correct_answer === (string) $optionValue; ?>
results) : ?>
results['items'][$item->id]['correct'] ? '✓ ' . \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_ANSWER_CORRECT') : '✗ ' . \Joomla\CMS\Language\Text::_('COM_TESTQUESTIONS_ANSWER_INCORRECT'); ?> question_type === 'closed') : ?> — : correct_answer); ?> — : answer_open, ENT_QUOTES, 'UTF-8'); ?>
results) : ?>
started && !$this->results && $testDurationSeconds > 0) : ?>