Skip to content
Snippets Groups Projects
Commit 9c16b70a authored by Alexander Loewe's avatar Alexander Loewe
Browse files

Fixed rendering of FontAwesome Icons

parent 18a5b9f4
No related branches found
No related tags found
No related merge requests found
......@@ -110,8 +110,8 @@ class grading_hints_renderer
$heading = '<div style="text-align:left;width:'. $titlewidth .'%;display:inline-block;">';
if ($this->showfeedbackdata && $node->getSeparateFeedbackData()->has_internal_error()) {
$heading .= '<div style="font-family: FontAwesome; font-size: 1.5em;margin-right:20px;".'
. '"display:inline-block;">&#xf00d;</div>';
$heading .= '<div style="font-size: 1.5em;margin-right:20px;".'
. '"display:inline-block;"><span class="fa fa-close"/></div>';
}
$heading .= '<div style="vertical-align: text-bottom;display:inline-block;">' . $node->get_heading();
......
......@@ -745,7 +745,7 @@ class qtype_moopt_renderer extends qtype_renderer {
$responsefileinfos['filename'], true);
$downloadable_responsefilename = $responsefileinfos['filename'];
$html .= "<a href='$url' style='display:block;text-align:right;'>" .
" <span class='fa-solid fa-download'></span> " .
" <span class='fa fa-download'></span> " .
get_string('downloadcompletefile', 'qtype_moopt', $downloadable_responsefilename) . "</a>";
}
return $html;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment