mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-28710 rating: added some more classes to the html for entering ratings
This commit is contained in:
parent
d0e016f53f
commit
6278ce451f
1 changed files with 4 additions and 5 deletions
|
@ -1469,14 +1469,13 @@ class core_renderer extends renderer_base {
|
|||
$aggregatelabel = $ratingmanager->get_aggregate_label($rating->settings->aggregationmethod);
|
||||
$aggregatestr = $rating->get_aggregate_string();
|
||||
|
||||
$aggregatehtml = html_writer::tag('span', $aggregatestr, array('id' => 'ratingaggregate'.$rating->itemid)).' ';
|
||||
$aggregatehtml .= html_writer::start_tag('span', array('id'=>"ratingcount{$rating->itemid}"));
|
||||
$aggregatehtml = html_writer::tag('span', $aggregatestr, array('id' => 'ratingaggregate'.$rating->itemid, 'class' => 'ratingaggregate')).' ';
|
||||
if ($rating->count > 0) {
|
||||
$aggregatehtml .= "({$rating->count})";
|
||||
$countstr = "({$rating->count})";
|
||||
} else {
|
||||
$aggregatehtml .= '-';
|
||||
$countstr = '-';
|
||||
}
|
||||
$aggregatehtml .= html_writer::end_tag('span').' ';
|
||||
$aggregatehtml .= html_writer::tag('span', $countstr, array('id'=>"ratingcount{$rating->itemid}", 'class' => 'ratingcount')).' ';
|
||||
|
||||
$ratinghtml .= html_writer::tag('span', $aggregatelabel, array('class'=>'rating-aggregate-label'));
|
||||
if ($rating->settings->permissions->viewall && $rating->settings->pluginpermissions->viewall) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue