diff --git a/blocks/activity_results/block_activity_results.php b/blocks/activity_results/block_activity_results.php index f62b43048c3..d60e5838e79 100644 --- a/blocks/activity_results/block_activity_results.php +++ b/blocks/activity_results/block_activity_results.php @@ -342,13 +342,13 @@ class block_activity_results extends block_base { $rank = 0; if (!empty($best)) { - $this->content->text .= '
'; + $this->content->text .= ''; + $this->content->text .= ''; $this->content->text .= ''; foreach ($best as $groupid => $averagegrade) { switch ($nameformat) { @@ -398,13 +398,13 @@ class block_activity_results extends block_base { $rank = 0; if (!empty($worst)) { $worst = array_reverse($worst, true); - $this->content->text .= '
'; if ($numbest == 1) { $this->content->text .= get_string('bestgroupgrade', 'block_activity_results'); } else { $this->content->text .= get_string('bestgroupgrades', 'block_activity_results', $numbest); } - $this->content->text .= '
'; + $this->content->text .= ''; + $this->content->text .= ''; $this->content->text .= ''; foreach ($worst as $groupid => $averagegrade) { switch ($nameformat) { @@ -529,13 +529,13 @@ class block_activity_results extends block_base { $rank = 0; if (!empty($best)) { - $this->content->text .= '
'; if ($numworst == 1) { $this->content->text .= get_string('worstgroupgrade', 'block_activity_results'); } else { $this->content->text .= get_string('worstgroupgrades', 'block_activity_results', $numworst); } - $this->content->text .= '
'; + $this->content->text .= ''; + $this->content->text .= ''; $this->content->text .= ''; foreach ($best as $userid => $gradeid) { switch ($nameformat) { @@ -592,13 +592,13 @@ class block_activity_results extends block_base { $rank = 0; if (!empty($worst)) { $worst = array_reverse($worst, true); - $this->content->text .= '
'; if ($numbest == 1) { $this->content->text .= get_string('bestgrade', 'block_activity_results'); } else { $this->content->text .= get_string('bestgrades', 'block_activity_results', $numbest); } - $this->content->text .= '
'; + $this->content->text .= ''; + $this->content->text .= ''; $this->content->text .= ''; foreach ($worst as $userid => $gradeid) { switch ($nameformat) { @@ -678,17 +678,17 @@ class block_activity_results extends block_base { } /** - * Generates the Link to the activity module when displaed outside of the module + * Generates the Link to the activity module when displayed outside of the module. * @param stdclass $activity * @param stdclass $cm * @return string */ private function activity_link($activity, $cm) { - $o = html_writer::start_tag('h3'); + $o = html_writer::start_tag('h5'); $o .= html_writer::link(new moodle_url('/mod/'.$activity->itemmodule.'/view.php', array('id' => $cm->id)), format_string(($activity->itemname), true, ['context' => context_module::instance($cm->id)])); - $o .= html_writer::end_tag('h3'); + $o .= html_writer::end_tag('h5'); return $o; } diff --git a/blocks/activity_results/styles.css b/blocks/activity_results/styles.css index 83ffd7d618b..119ebcde6df 100644 --- a/blocks/activity_results/styles.css +++ b/blocks/activity_results/styles.css @@ -21,8 +21,3 @@ .block_activity_results table.grades .grade { text-align: right; } - -.block_activity_results table.grades caption { - font-weight: bold; - font-size: 18px; -}
'; if ($numbest == 1) { $this->content->text .= get_string('worstgrade', 'block_activity_results'); } else { $this->content->text .= get_string('worstgrades', 'block_activity_results', $numworst); } - $this->content->text .= '