mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-66999-master' of git://github.com/bmbrands/moodle
This commit is contained in:
commit
f00542c485
69 changed files with 1487 additions and 2168 deletions
|
@ -60,11 +60,15 @@ class renderer extends \plugin_renderer_base {
|
|||
public function render_category(category $category) {
|
||||
$classes = $category->classes;
|
||||
if (empty($classes)) {
|
||||
$return = \html_writer::start_tag('section', array('class' => 'node_category'));
|
||||
$return = \html_writer::start_tag('section',
|
||||
array('class' => 'node_category card d-inline-block w-100 mb-3'));
|
||||
$return .= \html_writer::start_tag('div', array('class' => 'card-body'));
|
||||
} else {
|
||||
$return = \html_writer::start_tag('section', array('class' => 'node_category ' . $classes));
|
||||
$return = \html_writer::start_tag('section',
|
||||
array('class' => 'node_category card d-inline-block w-100 mb-3' . $classes));
|
||||
$return .= \html_writer::start_tag('div', array('class' => 'card-body'));
|
||||
}
|
||||
$return .= \html_writer::tag('h3', $category->title);
|
||||
$return .= \html_writer::tag('h3', $category->title, array('class' => 'lead'));
|
||||
$nodes = $category->nodes;
|
||||
if (empty($nodes)) {
|
||||
// No nodes, nothing to render.
|
||||
|
@ -75,6 +79,7 @@ class renderer extends \plugin_renderer_base {
|
|||
$return .= $this->render($node);
|
||||
}
|
||||
$return .= \html_writer::end_tag('ul');
|
||||
$return .= \html_writer::end_tag('div');
|
||||
$return .= \html_writer::end_tag('section');
|
||||
return $return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue