diff --git a/theme/clean/layout/columns1.php b/theme/clean/layout/columns1.php index 7782c69c65f..15201d86925 100644 --- a/theme/clean/layout/columns1.php +++ b/theme/clean/layout/columns1.php @@ -62,7 +62,7 @@ echo $OUTPUT->doctype() ?>
- full_header($html->heading); ?> + full_header(); ?>
diff --git a/theme/clean/layout/columns2.php b/theme/clean/layout/columns2.php index 6624f69d3b9..d199bf19dc5 100644 --- a/theme/clean/layout/columns2.php +++ b/theme/clean/layout/columns2.php @@ -70,7 +70,7 @@ echo $OUTPUT->doctype() ?>
- full_header($html->heading); ?> + full_header(); ?>
doctype() ?>
- full_header($html->heading); ?> - + full_header(); ?>
diff --git a/theme/clean/renderers/core_renderer.php b/theme/clean/renderers/core_renderer.php new file mode 100644 index 00000000000..41cc0bf8089 --- /dev/null +++ b/theme/clean/renderers/core_renderer.php @@ -0,0 +1,41 @@ +. + +/** + * Clean core renderers. + * + * @package theme_clean + * @copyright 2015 Frédéric Massart - FMCorz.net + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class theme_clean_core_renderer extends theme_bootstrapbase_core_renderer { + + /** + * Wrapper for header elements. + * + * We override this renderer helper in order to inject the logo into the theme. + * + * @param string $heading Heading to be used for the main header. + * @return string HTML to display the main header. + */ + public function full_header($heading = null) { + if (!empty($this->page->theme->settings->logo)) { + return $this->full_header(html_writer::tag('div', '', array('class' => 'logo'))); + } + return $this->full_header(); + } + +}