Commit 91c2a9b1 authored by Camille Tardy's avatar Camille Tardy

navbar and footer fix for 3.7

parent 85e25dc9
......@@ -50,7 +50,7 @@ class core_renderer extends \theme_boost\output\core_renderer {
$header->courseheader = $this->course_header();
$header->courseheader .= $this->scroll_header();
return $this->render_from_template('theme_boost/header', $header);
return $this->render_from_template('theme_boost/head', $header);
}
/**
......
......@@ -2,6 +2,29 @@
// This line protects the file from being accessed by a URL directly
defined('MOODLE_INTERNAL') || die();
$THEME->layouts = [
// Main course page.
'course' => array(
'file' => 'columns2.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre',
'options' => array('nocontextheader' => false),
),
'coursecategory' => array(
'file' => 'columns2.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre',
'options' => array('nocontextheader' => false),
),
// My dashboard page.
'mydashboard' => array(
'file' => 'columns2.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre',
'options' => array('nocontextheader' => false),
)
];
// Theme name
$THEME->name = 'unige';
......
......@@ -43,18 +43,17 @@
{{>theme_unige/navbar}}
<div id="page" class="container-fluid">
{{{ output.full_header }}}
{{{ output.full_header }}}
<div id="page-content" class="row">
<div id="page-content" class="row pb-3">
<div id="region-main-box" class="col-12">
{{#hasregionmainsettingsmenu}}
<div id="region-main-settings-menu" class="d-print-none {{#hasblocks}}has-blocks{{/hasblocks}}">
<div> {{{ output.region_main_settings_menu }}} </div>
</div>
{{/hasregionmainsettingsmenu}}
<section id="region-main" {{#hasblocks}}class="has-blocks mb-3"{{/hasblocks}}>
<div class="card">
<div class="card-body">
<section id="region-main" {{#hasblocks}}class="has-blocks mb-3"{{/hasblocks}} aria-label="{{#str}}content{{/str}}">
{{#hasregionmainsettingsmenu}}
<div class="region_main_settings_menu_proxy"></div>
{{/hasregionmainsettingsmenu}}
......@@ -62,8 +61,7 @@
{{{ output.main_content }}}
{{{ output.activity_navigation }}}
{{{ output.course_content_footer }}}
</div>
</div>
</section>
{{#hasblocks}}
<section data-region="blocks-column" class="d-print-none">
......@@ -73,14 +71,19 @@
</div>
</div>
</div>
{{{ output.standard_after_main_region_html }}}
{{> theme_unige/footer }}
</div>
{{> theme_unige/footer }}
</body>
</html>
{{#js}}
require(['theme_boost/loader']);
M.util.js_pending('theme_boost/loader');
require(['theme_boost/loader'], function() {
M.util.js_complete('theme_boost/loader');
});
require(['theme_boost/drawer'], function(mod) {
mod.init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment