Dashboard do usuário

This commit is contained in:
eduardogusmao
2019-09-03 19:49:41 -03:00
parent 503ed90b8a
commit 05f4a327f7
9 changed files with 239 additions and 25 deletions

View File

@@ -54,6 +54,32 @@ class theme_qualisaude_core_renderer extends theme_boost\output\core_renderer {
return $content;
}
/**
* This renders the navbar.
* Uses bootstrap compatible html.
*/
public function breadscrumb() {
// print_object($this->page->navbar);
return $this->render_from_template('theme_qualisaude/breadscrumb', $this->page->navbar);
}
/**
* Wrapper for header elements.
*
* @return string HTML to display the main header.
*/
public function edit_buttons() {
global $PAGE;
$header = new stdClass();
$header->settingsmenu = $this->context_header_settings_menu();
$header->contextheader = $this->context_header();
$header->hasnavbar = empty($PAGE->layout_options['nonavbar']);
$header->navbar = $this->navbar();
$header->pageheadingbutton = $this->page_heading_button();
$header->courseheader = $this->course_header();
return $this->render_from_template('theme_qualisaude/edit_buttons', $header);
}
/**
* Extract first image from html