Commit d6a5c560 authored by Frederic Massart's avatar Frederic Massart Committed by Dan Poltawski
Browse files

MDL-55793 theme_noname: Drop columns3 layout

Part of MDL-55071
parent 60d17ecd
...@@ -39,32 +39,32 @@ $THEME->layouts = [ ...@@ -39,32 +39,32 @@ $THEME->layouts = [
), ),
// Standard layout with blocks, this is recommended for most pages with general information. // Standard layout with blocks, this is recommended for most pages with general information.
'standard' => array( 'standard' => array(
'file' => 'columns3.php', 'file' => 'columns2.php',
'regions' => array('side-pre', 'side-post'), 'regions' => array('side-pre'),
'defaultregion' => 'side-pre', 'defaultregion' => 'side-pre',
), ),
// Main course page. // Main course page.
'course' => array( 'course' => array(
'file' => 'columns3.php', 'file' => 'columns2.php',
'regions' => array('side-pre', 'side-post'), 'regions' => array('side-pre'),
'defaultregion' => 'side-pre', 'defaultregion' => 'side-pre',
'options' => array('langmenu' => true), 'options' => array('langmenu' => true),
), ),
'coursecategory' => array( 'coursecategory' => array(
'file' => 'columns3.php', 'file' => 'columns2.php',
'regions' => array('side-pre', 'side-post'), 'regions' => array('side-pre'),
'defaultregion' => 'side-pre', 'defaultregion' => 'side-pre',
), ),
// Part of course, typical for modules - default page layout if $cm specified in require_login(). // Part of course, typical for modules - default page layout if $cm specified in require_login().
'incourse' => array( 'incourse' => array(
'file' => 'columns3.php', 'file' => 'columns2.php',
'regions' => array('side-pre', 'side-post'), 'regions' => array('side-pre'),
'defaultregion' => 'side-pre', 'defaultregion' => 'side-pre',
), ),
// The site home page. // The site home page.
'frontpage' => array( 'frontpage' => array(
'file' => 'columns3.php', 'file' => 'columns2.php',
'regions' => array('side-pre', 'side-post'), 'regions' => array('side-pre'),
'defaultregion' => 'side-pre', 'defaultregion' => 'side-pre',
'options' => array('nonavbar' => true), 'options' => array('nonavbar' => true),
), ),
...@@ -76,8 +76,8 @@ $THEME->layouts = [ ...@@ -76,8 +76,8 @@ $THEME->layouts = [
), ),
// My dashboard page. // My dashboard page.
'mydashboard' => array( 'mydashboard' => array(
'file' => 'columns3.php', 'file' => 'columns2.php',
'regions' => array('side-pre', 'side-post'), 'regions' => array('side-pre'),
'defaultregion' => 'side-pre', 'defaultregion' => 'side-pre',
'options' => array('langmenu' => true), 'options' => array('langmenu' => true),
), ),
...@@ -137,7 +137,7 @@ $THEME->layouts = [ ...@@ -137,7 +137,7 @@ $THEME->layouts = [
// The pagelayout used for safebrowser and securewindow. // The pagelayout used for safebrowser and securewindow.
'secure' => array( 'secure' => array(
'file' => 'secure.php', 'file' => 'secure.php',
'regions' => array('side-pre', 'side-post'), 'regions' => array('side-pre'),
'defaultregion' => 'side-pre' 'defaultregion' => 'side-pre'
) )
]; ];
......
<?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/>.
/**
* A three column layout for the noname theme.
*
* @package theme_noname
* @copyright 2016 Damyon Wiese
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$templatecontext = [
'sitename' => format_string($SITE->shortname, true, array('context' => context_course::instance(SITEID))),
'output' => $OUTPUT,
'sidepreblocks' => $OUTPUT->blocks('side-pre', 'col-md-4 pull-md-8'),
'sidepostblocks' => $OUTPUT->blocks('side-post', 'col-md-3')
];
echo $OUTPUT->render_from_template('theme_noname/columns3', $templatecontext);
{{{ output.doctype }}}
<html {{{ output.htmlattributes }}}>
<head>
<title>{{ output.page_title }}</title>
<link rel="shortcut icon" href="{{{ output.favicon }}}" />
{{{ output.standard_head_html }}}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body {{{ output.body_attributes }}}>
<div id="page-wrapper">
{{{ output.standard_top_of_body_html }}}
{{>theme_noname/header}}
<div id="page" class="container-fluid">
{{{ output.full_header }}}
<div id="page-content" class="row">
<div id="region-main-box" class="col-md-9">
<div class="row">
<section id="region-main" class="col-md-8 push-md-4">
{{{ output.course_content_header }}}
{{{ output.main_content }}}
{{{ output.course_content_footer }}}
</section>
{{{ sidepreblocks }}}
</div>
</div>
{{{ sidepostblocks }}}
</div>
</div>
</div>
<footer id="page-footer" class="p-y-1">
<div class="container-fluid">
<div id="course-footer">{{{ output.course_footer }}}</div>
{{# output.page_doc_link }}
<p class="helplink">{{{ output.page_doc_link }}}</p>
{{/ output.page_doc_link }}
{{{ output.login_info }}}
{{{ output.home_link }}}
{{{ output.standard_footer_html }}}
{{{ output.standard_end_of_body_html }}}
</div>
</footer>
</body>
</html>
{{#js}}
require(['theme_noname/loader'], function() {});
{{/js}}
Supports Markdown
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