Skip to content

Commit

Permalink
Merge branch 'MDL-49923-master' of git://github.com/FMCorz/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed May 4, 2015
2 parents b861cc9 + a75dbde commit 44e2802
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
2 changes: 1 addition & 1 deletion theme/clean/layout/columns1.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

<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">
Expand Down
2 changes: 1 addition & 1 deletion theme/clean/layout/columns2.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</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
Expand Down
3 changes: 1 addition & 2 deletions theme/clean/layout/columns3.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@
</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">
Expand Down
41 changes: 41 additions & 0 deletions theme/clean/renderers/core_renderer.php
Original file line number Diff line number Diff line change
@@ -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();
}

}

0 comments on commit 44e2802

Please sign in to comment.