diff options
Diffstat (limited to 'app/views/vips')
30 files changed, 82 insertions, 82 deletions
diff --git a/app/views/vips/exam_mode/index.php b/app/views/vips/exam_mode/index.php index b5aba7f..50bf0a6 100644 --- a/app/views/vips/exam_mode/index.php +++ b/app/views/vips/exam_mode/index.php @@ -32,7 +32,7 @@ </td> <td> <a href="<?= URLHelper::getLink($nav->getURL(), ['cid' => $course_id]) ?>"> - <?= $nav->getImage()->asSvg($nav->getLinkAttributes()) ?> + <?= $nav->getImage()->asImg($nav->getLinkAttributes()) ?> </a> </td> </tr> diff --git a/app/views/vips/exercises/ClozeTask/correct.php b/app/views/vips/exercises/ClozeTask/correct.php index 867a644..0791581 100644 --- a/app/views/vips/exercises/ClozeTask/correct.php +++ b/app/views/vips/exercises/ClozeTask/correct.php @@ -15,19 +15,19 @@ <? if ($solution->id): ?> <? if ($results[$blank]['points'] == 1): ?> --><span class="correct_item math-tex"><?= htmlReady($response[$blank]) ?><!-- - --><?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_inline', 'title' => _('richtig')]) ?><!-- + --><?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_inline', 'title' => _('richtig')]) ?><!-- --></span><!-- <? elseif ($results[$blank]['points'] == 0.5): ?> --><span class="fuzzy_item math-tex"><?= htmlReady($response[$blank]) ?><!-- - --><?= Icon::create('decline', Icon::ROLE_STATUS_YELLOW)->asSvg(['class' => 'correction_inline', 'title' => _('fast richtig')]) ?><!-- + --><?= Icon::create('decline', Icon::ROLE_STATUS_YELLOW)->asImg(['class' => 'correction_inline', 'title' => _('fast richtig')]) ?><!-- --></span><!-- <? elseif (empty($edit_solution) || $results[$blank]['safe']): ?> --><span class="wrong_item math-tex"><?= htmlReady($response[$blank]) ?><!-- - --><?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_inline', 'title' => _('falsch')]) ?><!-- + --><?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_inline', 'title' => _('falsch')]) ?><!-- --></span><!-- <? else: ?> --><span class="wrong_item math-tex"><?= htmlReady($response[$blank]) ?><!-- - --><?= Icon::create('question', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_inline', 'title' => _('Unbekannte Antwort')]) ?><!-- + --><?= Icon::create('question', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_inline', 'title' => _('Unbekannte Antwort')]) ?><!-- --></span><!-- <? endif ?> <? endif ?> diff --git a/app/views/vips/exercises/ClozeTask/print.php b/app/views/vips/exercises/ClozeTask/print.php index 4be1f4a..fce4bc4 100644 --- a/app/views/vips/exercises/ClozeTask/print.php +++ b/app/views/vips/exercises/ClozeTask/print.php @@ -17,11 +17,11 @@ --><span class="math-tex" style="text-decoration: underline;"> <?= htmlReady($response[$blank]) ?> </span><!-- <? if ($print_correction): ?> <? if ($results[$blank]['points'] == 1): ?> - --><?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('richtig')]) ?><!-- + --><?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('richtig')]) ?><!-- <? elseif ($results[$blank]['points'] == 0.5): ?> - --><?= Icon::create('decline', Icon::ROLE_STATUS_YELLOW)->asSvg(['title' => _('fast richtig')]) ?><!-- + --><?= Icon::create('decline', Icon::ROLE_STATUS_YELLOW)->asImg(['title' => _('fast richtig')]) ?><!-- <? else: ?> - --><?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('falsch')]) ?><!-- + --><?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['title' => _('falsch')]) ?><!-- <? endif ?> <? endif ?> <? elseif ($exercise->isSelect($blank)): ?> diff --git a/app/views/vips/exercises/MatchingTask/correct.php b/app/views/vips/exercises/MatchingTask/correct.php index d38afb6..64faca6 100644 --- a/app/views/vips/exercises/MatchingTask/correct.php +++ b/app/views/vips/exercises/MatchingTask/correct.php @@ -44,9 +44,9 @@ <?= formatReady($answer['text']) ?> <? if ($exercise->isCorrectAnswer($answer, $i)): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> </div> <? endif ?> @@ -78,9 +78,9 @@ <? if ($solution->id): ?> <? if ($exercise->isCorrectAnswer($answer, -1)): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_inline', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_inline', 'title' => _('richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_inline', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_inline', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> </div> diff --git a/app/views/vips/exercises/MatchingTask/print.php b/app/views/vips/exercises/MatchingTask/print.php index 123c9a6..a9617df 100644 --- a/app/views/vips/exercises/MatchingTask/print.php +++ b/app/views/vips/exercises/MatchingTask/print.php @@ -44,9 +44,9 @@ <? if ($print_correction): ?> <? if ($exercise->isCorrectAnswer($answer, $i)) : ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? else : ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> </div> @@ -84,9 +84,9 @@ <? if ($solution->id && $print_correction): ?> <? if ($exercise->isCorrectAnswer($answer, -1)): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['title' => _('falsch')]) ?> <? endif ?> <? endif ?> </li> diff --git a/app/views/vips/exercises/MatrixChoiceTask/correct.php b/app/views/vips/exercises/MatrixChoiceTask/correct.php index 82a87fe..1b4f8ba 100644 --- a/app/views/vips/exercises/MatrixChoiceTask/correct.php +++ b/app/views/vips/exercises/MatrixChoiceTask/correct.php @@ -18,9 +18,9 @@ <td style="white-space: nowrap;"> <? if (isset($response[$key]) && $response[$key] !== '' && $response[$key] != -1): ?> <? if ($response[$key] == $entry['choice']): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> diff --git a/app/views/vips/exercises/MatrixChoiceTask/print.php b/app/views/vips/exercises/MatrixChoiceTask/print.php index 9403d0c..314730f 100644 --- a/app/views/vips/exercises/MatrixChoiceTask/print.php +++ b/app/views/vips/exercises/MatrixChoiceTask/print.php @@ -17,9 +17,9 @@ <td style="white-space: nowrap;"> <? if (isset($response[$key]) && $response[$key] !== '' && $response[$key] != -1 && $print_correction): ?> <? if ($response[$key] == $entry['choice']): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> diff --git a/app/views/vips/exercises/MultipleChoiceTask/correct.php b/app/views/vips/exercises/MultipleChoiceTask/correct.php index 59fe5b6..2f2a6dc 100644 --- a/app/views/vips/exercises/MultipleChoiceTask/correct.php +++ b/app/views/vips/exercises/MultipleChoiceTask/correct.php @@ -20,9 +20,9 @@ <? if (isset($response[$key])): ?> <? if ((int) $response[$key] == $entry['score']): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> </div> diff --git a/app/views/vips/exercises/MultipleChoiceTask/print.php b/app/views/vips/exercises/MultipleChoiceTask/print.php index ea2d761..d352f17 100644 --- a/app/views/vips/exercises/MultipleChoiceTask/print.php +++ b/app/views/vips/exercises/MultipleChoiceTask/print.php @@ -18,9 +18,9 @@ <? if (isset($response[$key]) && $print_correction): ?> <? if ((int) $response[$key] == $entry['score']): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> </div> diff --git a/app/views/vips/exercises/SequenceTask/correct.php b/app/views/vips/exercises/SequenceTask/correct.php index 8093be0..72cfba5 100644 --- a/app/views/vips/exercises/SequenceTask/correct.php +++ b/app/views/vips/exercises/SequenceTask/correct.php @@ -37,10 +37,10 @@ <div class="correction_marker sequence"> <? if ($results[$i]['points'] == 1): ?> <span style="color: green;">}</span> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('richtig')]) ?> <? else: ?> <span style="color: red;">}</span> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['title' => _('falsch')]) ?> <? endif ?> </div> <? endif ?> @@ -49,9 +49,9 @@ <?= formatReady($answer['text']) ?> <? if ($results[$i]['points'] == 1): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> </div> <? else: ?> diff --git a/app/views/vips/exercises/SequenceTask/print.php b/app/views/vips/exercises/SequenceTask/print.php index 485d4d7..1ccb76d 100644 --- a/app/views/vips/exercises/SequenceTask/print.php +++ b/app/views/vips/exercises/SequenceTask/print.php @@ -39,10 +39,10 @@ <div class="correction_marker sequence"> <? if ($results[$i]['points'] == 1): ?> <span style="color: green;">}</span> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('richtig')]) ?> <? else: ?> <span style="color: red;">}</span> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['title' => _('falsch')]) ?> <? endif ?> </div> <? endif ?> @@ -52,9 +52,9 @@ <? if ($print_correction): ?> <? if ($results[$i]['points'] == 1): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> </li> diff --git a/app/views/vips/exercises/SingleChoiceTask/correct.php b/app/views/vips/exercises/SingleChoiceTask/correct.php index a2796fb..cecc743 100644 --- a/app/views/vips/exercises/SingleChoiceTask/correct.php +++ b/app/views/vips/exercises/SingleChoiceTask/correct.php @@ -28,9 +28,9 @@ <? if (isset($response[$group]) && $response[$group] === "$key"): ?> <? if ($entry['score'] == 1): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? elseif ($key != -1): ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> </div> diff --git a/app/views/vips/exercises/SingleChoiceTask/print.php b/app/views/vips/exercises/SingleChoiceTask/print.php index 5ac9961..a61bc84 100644 --- a/app/views/vips/exercises/SingleChoiceTask/print.php +++ b/app/views/vips/exercises/SingleChoiceTask/print.php @@ -27,9 +27,9 @@ <? if ($print_correction): ?> <? if (isset($response[$group]) && $response[$group] === "$key"): ?> <? if ($entry['score'] == 1): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? elseif ($key != -1): ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> <? endif ?> diff --git a/app/views/vips/exercises/TextLineTask/correct.php b/app/views/vips/exercises/TextLineTask/correct.php index 3457f2e..c87d531 100644 --- a/app/views/vips/exercises/TextLineTask/correct.php +++ b/app/views/vips/exercises/TextLineTask/correct.php @@ -16,13 +16,13 @@ <?= htmlReady($response[0]) ?> <? if ($results[0]['points'] == 1): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('richtig')]) ?> <? elseif ($results[0]['points'] == 0.5): ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_YELLOW)->asSvg(['title' => _('fast richtig')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_YELLOW)->asImg(['title' => _('fast richtig')]) ?> <? elseif (!$edit_solution || $results[0]['safe']): ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['title' => _('falsch')]) ?> <? else: ?> - <?= Icon::create('question', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('Unbekannte Antwort')]) ?> + <?= Icon::create('question', Icon::ROLE_STATUS_RED)->asImg(['title' => _('Unbekannte Antwort')]) ?> <? endif ?> <? endif ?> diff --git a/app/views/vips/exercises/TextLineTask/print.php b/app/views/vips/exercises/TextLineTask/print.php index ba86963..08944d2 100644 --- a/app/views/vips/exercises/TextLineTask/print.php +++ b/app/views/vips/exercises/TextLineTask/print.php @@ -13,11 +13,11 @@ <? if ($print_correction): ?> <? if ($results[0]['points'] == 1): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('richtig')]) ?> <? elseif ($results[0]['points'] == 0.5): ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_YELLOW)->asSvg(['title' => _('fast richtig')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_YELLOW)->asImg(['title' => _('fast richtig')]) ?> <? else: ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['title' => _('falsch')]) ?> <? endif ?> <? endif ?> <? else : ?> diff --git a/app/views/vips/exercises/TextTask/correct.php b/app/views/vips/exercises/TextTask/correct.php index 175de6c..69336a4 100644 --- a/app/views/vips/exercises/TextTask/correct.php +++ b/app/views/vips/exercises/TextTask/correct.php @@ -131,7 +131,7 @@ <tr> <td> <a href="<?= htmlReady($file_ref->getDownloadURL()) ?>"> - <?= Icon::create('file')->asSvg(['title' => _('Datei herunterladen')]) ?> + <?= Icon::create('file')->asImg(['title' => _('Datei herunterladen')]) ?> <?= htmlReady($file_ref->name) ?> </a> </td> diff --git a/app/views/vips/exercises/TextTask/solve.php b/app/views/vips/exercises/TextTask/solve.php index 62b2fa0..7425adc 100644 --- a/app/views/vips/exercises/TextTask/solve.php +++ b/app/views/vips/exercises/TextTask/solve.php @@ -97,7 +97,7 @@ <td> <input type="hidden" name="file_ids[]" value="<?= $file_ref->id ?>"> <a href="<?= htmlReady($file_ref->getDownloadURL()) ?>"> - <?= Icon::create('file')->asSvg(['title' => _('Datei herunterladen')]) ?> + <?= Icon::create('file')->asImg(['title' => _('Datei herunterladen')]) ?> <?= htmlReady($file_ref->name) ?> </a> </td> diff --git a/app/views/vips/sheets/add_exercise_dialog.php b/app/views/vips/sheets/add_exercise_dialog.php index 2858485..fbcd953 100644 --- a/app/views/vips/sheets/add_exercise_dialog.php +++ b/app/views/vips/sheets/add_exercise_dialog.php @@ -16,7 +16,7 @@ <div class="exercise_types"> <? foreach ($exercise_types as $type => $entry): ?> <button class="exercise_type" name="exercise_type" value="<?= htmlReady($type) ?>"> - <?= $type::getTypeIcon()->asSvg(40) ?> + <?= $type::getTypeIcon()->asImg(40) ?> <div class="exercise_type_description"> <span class="exercise_type_name"><?= htmlReady($entry['name']) ?></span> <span><?= htmlReady($type::getTypeDescription()) ?></span> diff --git a/app/views/vips/sheets/content_bar_icons.php b/app/views/vips/sheets/content_bar_icons.php index b0f98c1..5d6268a 100644 --- a/app/views/vips/sheets/content_bar_icons.php +++ b/app/views/vips/sheets/content_bar_icons.php @@ -1,19 +1,19 @@ <? if (isset($prev_exercise_url)): ?> <a href="<?= htmlReady($prev_exercise_url) ?>"> - <?= Icon::create('arr_1left')->asSvg(24, ['title' => _('Vorige Aufgabe')]) ?> + <?= Icon::create('arr_1left')->asImg(24, ['title' => _('Vorige Aufgabe')]) ?> </a> <? else: ?> <span> - <?= Icon::create('arr_1left', Icon::ROLE_INACTIVE)->asSvg(24) ?> + <?= Icon::create('arr_1left', Icon::ROLE_INACTIVE)->asImg(24) ?> </span> <? endif ?> <? if (isset($next_exercise_url)): ?> <a href="<?= htmlReady($next_exercise_url) ?>"> - <?= Icon::create('arr_1right')->asSvg(24, ['title' => _('Nächste Aufgabe')]) ?> + <?= Icon::create('arr_1right')->asImg(24, ['title' => _('Nächste Aufgabe')]) ?> </a> <? else: ?> <span> - <?= Icon::create('arr_1right', Icon::ROLE_INACTIVE)->asSvg(24) ?> + <?= Icon::create('arr_1right', Icon::ROLE_INACTIVE)->asImg(24) ?> </span> <? endif ?> diff --git a/app/views/vips/sheets/copy_assignment_dialog.php b/app/views/vips/sheets/copy_assignment_dialog.php index f7c8209..49eecb9 100644 --- a/app/views/vips/sheets/copy_assignment_dialog.php +++ b/app/views/vips/sheets/copy_assignment_dialog.php @@ -67,7 +67,7 @@ <?= htmlReady($assignment['test_title']) ?> <a href="<?= $controller->link_for('vips/sheets/show_assignment', ['cid' => $course_id, 'assignment_id' => $assignment['id']]) ?>" target="_blank"> - <?= Icon::create('link-intern')->asSvg(['title' => _('Vorschau anzeigen')]) ?> + <?= Icon::create('link-intern')->asImg(['title' => _('Vorschau anzeigen')]) ?> </a> </label> </td> diff --git a/app/views/vips/sheets/copy_exercise_dialog.php b/app/views/vips/sheets/copy_exercise_dialog.php index d825ce1..7eeec26 100644 --- a/app/views/vips/sheets/copy_exercise_dialog.php +++ b/app/views/vips/sheets/copy_exercise_dialog.php @@ -90,7 +90,7 @@ <a href="<?= $controller->link_for('vips/sheets/preview_exercise', ['assignment_id' => $exercise['assignment_id'], 'exercise_id' => $exercise['id']]) ?>" data-dialog="id=vips_preview;size=800x600" target="_blank"> - <?= Icon::create('question-circle')->asSvg(['title' => _('Vorschau anzeigen')]) ?> + <?= Icon::create('question-circle')->asImg(['title' => _('Vorschau anzeigen')]) ?> </a> </label> </td> diff --git a/app/views/vips/sheets/edit_assignment.php b/app/views/vips/sheets/edit_assignment.php index 5ced547..d6e1b78 100644 --- a/app/views/vips/sheets/edit_assignment.php +++ b/app/views/vips/sheets/edit_assignment.php @@ -81,8 +81,8 @@ <section> <input id="options-toggle" class="options-toggle" type="checkbox" value="on" <?= $assignment_id ? '' : 'checked' ?>> <a class="caption" href="#" role="button" data-toggles="#options-toggle" aria-controls="options-panel" aria-expanded="<?= $assignment_id ? 'false' : 'true' ?>"> - <?= Icon::create('arr_1down')->asSvg(['class' => 'toggle-open']) ?> - <?= Icon::create('arr_1right')->asSvg(['class' => 'toggle-closed']) ?> + <?= Icon::create('arr_1down')->asImg(['class' => 'toggle-open']) ?> + <?= Icon::create('arr_1right')->asImg(['class' => 'toggle-closed']) ?> <?= _('Weitere Einstellungen') ?> </a> @@ -191,8 +191,8 @@ <div class="practice-hidden exam-hidden"> <input id="feedback-toggle" class="options-toggle" type="checkbox" value="on"> <a class="caption" href="#" role="button" data-toggles="#feedback-toggle" aria-controls="feedback-panel" aria-expanded="false"> - <?= Icon::create('arr_1down')->asSvg(['class' => 'toggle-open']) ?> - <?= Icon::create('arr_1right')->asSvg(['class' => 'toggle-closed']) ?> + <?= Icon::create('arr_1down')->asImg(['class' => 'toggle-open']) ?> + <?= Icon::create('arr_1right')->asImg(['class' => 'toggle-closed']) ?> <?= _('Automatisches Feedback') ?> </a> diff --git a/app/views/vips/sheets/edit_exercise.php b/app/views/vips/sheets/edit_exercise.php index 41156e1..2650691 100644 --- a/app/views/vips/sheets/edit_exercise.php +++ b/app/views/vips/sheets/edit_exercise.php @@ -75,7 +75,7 @@ <td> <input type="hidden" name="file_ids[]" value="<?= $file_ref->id ?>"> <a href="<?= htmlReady($file_ref->getDownloadURL()) ?>" <?= $file_ref->getContentDisposition() === 'inline' ? 'target="_blank"' : '' ?>> - <?= Icon::create('file')->asSvg(['title' => _('Datei herunterladen')]) ?> + <?= Icon::create('file')->asImg(['title' => _('Datei herunterladen')]) ?> <?= htmlReady($file_ref->name) ?> </a> </td> @@ -122,8 +122,8 @@ <input id="options-toggle" class="options-toggle" type="checkbox" value="on"> <a class="caption" href="#" role="button" data-toggles="#options-toggle" aria-controls="options-panel" aria-expanded="false"> - <?= Icon::create('arr_1down')->asSvg(['class' => 'toggle-open']) ?> - <?= Icon::create('arr_1right')->asSvg(['class' => 'toggle-closed']) ?> + <?= Icon::create('arr_1down')->asImg(['class' => 'toggle-open']) ?> + <?= Icon::create('arr_1right')->asImg(['class' => 'toggle-closed']) ?> <?= _('Weitere Einstellungen') ?> </a> diff --git a/app/views/vips/sheets/show_assignment.php b/app/views/vips/sheets/show_assignment.php index 1494b74..d598e51 100644 --- a/app/views/vips/sheets/show_assignment.php +++ b/app/views/vips/sheets/show_assignment.php @@ -56,8 +56,8 @@ <form class="default width-1200" style="margin-bottom: 1.5ex;"> <input id="options-toggle" class="options-toggle" type="checkbox" value="on"> <a class="caption" href="#" role="button" data-toggles="#options-toggle" aria-controls="options-panel" aria-expanded="false"> - <?= Icon::create('arr_1down')->asSvg(['class' => 'toggle-open']) ?> - <?= Icon::create('arr_1right')->asSvg(['class' => 'toggle-closed']) ?> + <?= Icon::create('arr_1down')->asImg(['class' => 'toggle-open']) ?> + <?= Icon::create('arr_1right')->asImg(['class' => 'toggle-closed']) ?> <?= _('Teilnahmebedingungen') ?> </a> @@ -148,9 +148,9 @@ </td> <td style="text-align: center;"> <? if ($solution): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('ja')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('ja')]) ?> <? else : ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('nein')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['title' => _('nein')]) ?> <? endif ?> </td> <td style="text-align: center;"> diff --git a/app/views/vips/sheets/show_exercise_link.php b/app/views/vips/sheets/show_exercise_link.php index 1abc369..6f41a6a 100644 --- a/app/views/vips/sheets/show_exercise_link.php +++ b/app/views/vips/sheets/show_exercise_link.php @@ -17,7 +17,7 @@ </div> <div class="sidebar_exercise_state"> <? if ($assignment->getSolution($solver_id, $item->task_id)): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('Aufgabe bearbeitet')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('Aufgabe bearbeitet')]) ?> <? endif ?> </div> </a> diff --git a/app/views/vips/solutions/assignment_solutions.php b/app/views/vips/solutions/assignment_solutions.php index 472d7ef..388574c 100644 --- a/app/views/vips/solutions/assignment_solutions.php +++ b/app/views/vips/solutions/assignment_solutions.php @@ -65,8 +65,8 @@ <th style="width: 1em;"></th> <th> <a href="#" class="solution-toggle"> - <?= Icon::create('arr_1right')->asSvg(['class' => 'arrow_all', 'title' => _('Aufgaben aller Teilnehmenden anzeigen')]) ?> - <?= Icon::create('arr_1down')->asSvg(['class' => 'arrow_all', 'title' => _('Aufgaben aller Teilnehmenden verstecken'), 'style' => 'display: none;']) ?> + <?= Icon::create('arr_1right')->asImg(['class' => 'arrow_all', 'title' => _('Aufgaben aller Teilnehmenden anzeigen')]) ?> + <?= Icon::create('arr_1down')->asImg(['class' => 'arrow_all', 'title' => _('Aufgaben aller Teilnehmenden verstecken'), 'style' => 'display: none;']) ?> <?= _('Teilnehmende') ?> </a> </th> @@ -108,8 +108,8 @@ <td> <a href="#" class="solution-toggle"> - <?= Icon::create('arr_1right')->asSvg(['class' => 'solution-open', 'title' => _('Aufgaben anzeigen')]) ?> - <?= Icon::create('arr_1down')->asSvg(['class' => 'solution-close', 'title' => _('Aufgaben verstecken')]) ?> + <?= Icon::create('arr_1right')->asImg(['class' => 'solution-open', 'title' => _('Aufgaben anzeigen')]) ?> + <?= Icon::create('arr_1down')->asImg(['class' => 'solution-close', 'title' => _('Aufgaben verstecken')]) ?> <?= htmlReady($solver['name']) ?> </a> diff --git a/app/views/vips/solutions/assignments_list.php b/app/views/vips/solutions/assignments_list.php index 851fd47..c685e9a 100644 --- a/app/views/vips/solutions/assignments_list.php +++ b/app/views/vips/solutions/assignments_list.php @@ -109,9 +109,9 @@ <? if (!isset($ass['uncorrected_solutions'])): ?> – <? elseif ($ass['uncorrected_solutions'] == 0): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('ja')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('ja')]) ?> <? else : ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('nein')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['title' => _('nein')]) ?> <? endif ?> </td> diff --git a/app/views/vips/solutions/edit_solution.php b/app/views/vips/solutions/edit_solution.php index 327342f..fb00f6b 100644 --- a/app/views/vips/solutions/edit_solution.php +++ b/app/views/vips/solutions/edit_solution.php @@ -25,10 +25,10 @@ <? /* previous solver */ ?> <? if (isset($prev_solver)): ?> <a href="<?= $controller->edit_solution(['assignment_id' => $assignment_id, 'exercise_id' => $exercise_id, 'solver_id' => $prev_solver['user_id'], 'view' => $view]) ?>"> - <?= Icon::create('arr_1left')->asSvg(['title' => _('Voriger Teilnehmer / vorige Teilnehmerin')]) ?> + <?= Icon::create('arr_1left')->asImg(['title' => _('Voriger Teilnehmer / vorige Teilnehmerin')]) ?> </a> <? else: ?> - <?= Icon::create('arr_1left', Icon::ROLE_INACTIVE)->asSvg(['title' => _('Keiner der vorhergehenden Teilnehmenden hat diese Aufgabe bearbeitet')]) ?> + <?= Icon::create('arr_1left', Icon::ROLE_INACTIVE)->asImg(['title' => _('Keiner der vorhergehenden Teilnehmenden hat diese Aufgabe bearbeitet')]) ?> <? endif ?> <? /* overview */ ?> @@ -39,10 +39,10 @@ <? /* next solver */ ?> <? if (isset($next_solver)): ?> <a href="<?= $controller->edit_solution(['assignment_id' => $assignment_id, 'exercise_id' => $exercise_id, 'solver_id' => $next_solver['user_id'], 'view' => $view]) ?>"> - <?= Icon::create('arr_1right')->asSvg(['title' => _('Nächster Teilnehmer / nächste Teilnehmerin')]) ?> + <?= Icon::create('arr_1right')->asImg(['title' => _('Nächster Teilnehmer / nächste Teilnehmerin')]) ?> </a> <? else: ?> - <?= Icon::create('arr_1right', Icon::ROLE_INACTIVE)->asSvg(['title' => _('Keiner der nachfolgenden Teilnehmenden hat diese Aufgabe bearbeitet')]) ?> + <?= Icon::create('arr_1right', Icon::ROLE_INACTIVE)->asImg(['title' => _('Keiner der nachfolgenden Teilnehmenden hat diese Aufgabe bearbeitet')]) ?> <? endif ?> / @@ -50,10 +50,10 @@ <? /* previous exercise */ ?> <? if (isset($prev_exercise)): ?> <a href="<?= $controller->edit_solution(['assignment_id' => $assignment_id, 'exercise_id' => $prev_exercise['id'], 'solver_id' => $solver_id, 'view' => $view]) ?>"> - <?= Icon::create('arr_1left')->asSvg(['title' => _('Vorige Aufgabe')]) ?> + <?= Icon::create('arr_1left')->asImg(['title' => _('Vorige Aufgabe')]) ?> </a> <? else: ?> - <?= Icon::create('arr_1left', Icon::ROLE_INACTIVE)->asSvg(['title' => _('Die teilnehmende Person hat keine der vorhergehenden Aufgaben bearbeitet')]) ?> + <?= Icon::create('arr_1left', Icon::ROLE_INACTIVE)->asImg(['title' => _('Die teilnehmende Person hat keine der vorhergehenden Aufgaben bearbeitet')]) ?> <? endif ?> <? /* exercise name */ ?> @@ -62,10 +62,10 @@ <? /* next exercise */ ?> <? if (isset($next_exercise)): ?> <a href="<?= $controller->edit_solution(['assignment_id' => $assignment_id, 'exercise_id' => $next_exercise['id'], 'solver_id' => $solver_id, 'view' => $view]) ?>"> - <?= Icon::create('arr_1right')->asSvg(['title' => _('Nächste Aufgabe')]) ?> + <?= Icon::create('arr_1right')->asImg(['title' => _('Nächste Aufgabe')]) ?> </a> <? else: ?> - <?= Icon::create('arr_1right', Icon::ROLE_INACTIVE)->asSvg(['title' => _('Die teilnehmende Person hat keine der nachfolgenden Aufgaben bearbeitet')]) ?> + <?= Icon::create('arr_1right', Icon::ROLE_INACTIVE)->asImg(['title' => _('Die teilnehmende Person hat keine der nachfolgenden Aufgaben bearbeitet')]) ?> <? endif ?> </div> @@ -147,7 +147,7 @@ <td> <input type="hidden" name="file_ids[]" value="<?= htmlReady($file_ref->id) ?>"> <a href="<?= htmlReady($file_ref->getDownloadURL()) ?>"> - <?= Icon::create('file')->asSvg(['title' => _('Datei herunterladen')]) ?> + <?= Icon::create('file')->asImg(['title' => _('Datei herunterladen')]) ?> <?= htmlReady($file_ref->name) ?> </a> </td> diff --git a/app/views/vips/solutions/feedback_files_table.php b/app/views/vips/solutions/feedback_files_table.php index 8c6757c..dff9869 100644 --- a/app/views/vips/solutions/feedback_files_table.php +++ b/app/views/vips/solutions/feedback_files_table.php @@ -31,7 +31,7 @@ <tr> <td> <a href="<?= htmlReady($file_ref->getDownloadURL()) ?>"> - <?= Icon::create('file')->asSvg(['title' => _('Datei herunterladen')]) ?> + <?= Icon::create('file')->asImg(['title' => _('Datei herunterladen')]) ?> <?= htmlReady($file_ref->name) ?> </a> </td> diff --git a/app/views/vips/solutions/student_assignment_solutions.php b/app/views/vips/solutions/student_assignment_solutions.php index b279a36..d5b717a 100644 --- a/app/views/vips/solutions/student_assignment_solutions.php +++ b/app/views/vips/solutions/student_assignment_solutions.php @@ -64,9 +64,9 @@ </td> <td style="text-align: center;"> <? if ($solution): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['title' => _('ja')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['title' => _('ja')]) ?> <? else : ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['title' => _('nein')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['title' => _('nein')]) ?> <? endif ?> </td> <td style="text-align: center;"> |
