mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-49923-master' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
44e2802555
@ -62,7 +62,7 @@ echo $OUTPUT->doctype() ?>
|
||||
|
||||
<div id="page" class="container-fluid">
|
||||
|
||||
<?php echo $OUTPUT->full_header($html->heading); ?>
|
||||
<?php echo $OUTPUT->full_header(); ?>
|
||||
|
||||
<div id="page-content" class="row-fluid">
|
||||
<section id="region-main" class="span12">
|
||||
|
@ -70,7 +70,7 @@ echo $OUTPUT->doctype() ?>
|
||||
</header>
|
||||
|
||||
<div id="page" class="container-fluid">
|
||||
<?php echo $OUTPUT->full_header($html->heading); ?>
|
||||
<?php echo $OUTPUT->full_header(); ?>
|
||||
<div id="page-content" class="row-fluid">
|
||||
<section id="region-main" class="<?php echo $regionmain; ?>">
|
||||
<?php
|
||||
|
@ -80,8 +80,7 @@ echo $OUTPUT->doctype() ?>
|
||||
</header>
|
||||
|
||||
<div id="page" class="container-fluid">
|
||||
<?php echo $OUTPUT->full_header($html->heading); ?>
|
||||
|
||||
<?php echo $OUTPUT->full_header(); ?>
|
||||
<div id="page-content" class="row-fluid">
|
||||
<div id="region-main-box" class="<?php echo $regionmainbox; ?>">
|
||||
<div class="row-fluid">
|
||||
|
41
theme/clean/renderers/core_renderer.php
Normal file
41
theme/clean/renderers/core_renderer.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* 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();
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user