Commit 1bc4ef60 authored by Camille Tardy's avatar Camille Tardy

add context header + upgrade version number

parent 67076c20
......@@ -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/head', $header);
return $this->render_from_template('theme_unige/full_header', $header);
}
/**
......
......@@ -8,20 +8,17 @@ $THEME->layouts = [
'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),
)
];
......
......@@ -40,10 +40,10 @@
{{{ output.standard_top_of_body_html }}}
{{>theme_unige/navbar}}
{{> theme_unige/navbar }}
<div id="page" class="container-fluid">
{{{ output.full_header }}}
{{{ output.full_header }}}
<div id="page-content" class="row pb-3">
<div id="region-main-box" class="col-12">
......@@ -54,17 +54,17 @@
{{/hasregionmainsettingsmenu}}
<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}}
{{{ output.course_content_header }}}
{{{ output.main_content }}}
{{{ output.activity_navigation }}}
{{{ output.course_content_footer }}}
{{#hasregionmainsettingsmenu}}
<div class="region_main_settings_menu_proxy"></div>
{{/hasregionmainsettingsmenu}}
{{{ output.course_content_header }}}
{{{ output.main_content }}}
{{{ output.activity_navigation }}}
{{{ output.course_content_footer }}}
</section>
{{#hasblocks}}
<section data-region="blocks-column" class="d-print-none">
<section data-region="blocks-column" class="d-print-none" aria-label="{{#str}}blocks{{/str}}">
{{{ sidepreblocks }}}
</section>
{{/hasblocks}}
......
{{!
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/>.
}}
{{!
@template boost/header
This template renders the header.
Example context (json):
{
"contextheader": "context_header_html",
"settingsmenu": "settings_html",
"hasnavbar": false,
"navbar": "navbar_if_available",
"courseheader": "course_header_html"
}
Page header.
}}
<header id="page-header" class="row">
<div class="col-12 pt-3 pb-3">
<div class="card {{^contextheader}}border-0 bg-transparent{{/contextheader}}">
<div class="card-body {{^contextheader}}p-2{{/contextheader}}">
<div class="d-flex">
{{#contextheader}}
<div class="mr-auto">
{{{contextheader}}}
</div>
{{/contextheader}}
{{#settingsmenu}}
<div class="context-header-settings-menu">
{{{settingsmenu}}}
</div>
{{/settingsmenu}}
</div>
<div class="d-flex flex-wrap">
{{#hasnavbar}}
<div id="page-navbar">
{{{navbar}}}
</div>
{{/hasnavbar}}
<div class="ml-auto d-flex">
{{{pageheadingbutton}}}
</div>
<div id="course-header">
{{{courseheader}}}
</div>
</div>
</div>
</div>
</div>
</header>
\ No newline at end of file
......@@ -3,7 +3,8 @@
defined('MOODLE_INTERNAL') || die();
// This is the version of the plugin
$plugin->version = '2018060100';
$plugin->version = '2019112500';
$plugin->release = '3.7.0';
// This is the version of Moodle this plugin requires
$plugin->requires = '2018051700';
......@@ -13,7 +14,7 @@ $plugin->component = 'theme_unige';
// This is a list of plugins, this plugin depends on (and their versions)
$plugin->dependencies = [
'theme_boost' => '2018051400'
'theme_boost' => '2019052000'
];
......
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