weekly release 2.9dev
[moodle.git] / theme / clean / layout / columns2.php
CommitLineData
7956a02f
SH
1<?php
2// This file is part of Moodle - http://moodle.org/
3//
4// Moodle is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// Moodle is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
69f727f8
SH
17/**
18 * The two column layout.
19 *
20 * @package theme_clean
21 * @copyright 2013 Moodle, moodle.org
22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23 */
24
7956a02f
SH
25// Get the HTML for the settings bits.
26$html = theme_clean_get_html_for_settings($OUTPUT, $PAGE);
27
2e3fb23f 28$left = (!right_to_left()); // To know if to add 'pull-right' and 'desktop-first-column' classes in the layout for LTR.
7956a02f
SH
29echo $OUTPUT->doctype() ?>
30<html <?php echo $OUTPUT->htmlattributes(); ?>>
31<head>
32 <title><?php echo $OUTPUT->page_title(); ?></title>
33 <link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>" />
34 <?php echo $OUTPUT->standard_head_html() ?>
35 <meta name="viewport" content="width=device-width, initial-scale=1.0">
36</head>
37
38<body <?php echo $OUTPUT->body_attributes('two-column'); ?>>
39
40<?php echo $OUTPUT->standard_top_of_body_html() ?>
41
6e2bf857 42<header role="banner" class="navbar navbar-fixed-top<?php echo $html->navbarclass ?> moodle-has-zindex">
7956a02f
SH
43 <nav role="navigation" class="navbar-inner">
44 <div class="container-fluid">
ba41742e
MG
45 <a class="brand" href="<?php echo $CFG->wwwroot;?>"><?php echo
46 format_string($SITE->shortname, true, array('context' => context_course::instance(SITEID)));
47 ?></a>
7956a02f
SH
48 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
49 <span class="icon-bar"></span>
50 <span class="icon-bar"></span>
51 <span class="icon-bar"></span>
52 </a>
854a647e 53 <?php echo $OUTPUT->user_menu(); ?>
7956a02f
SH
54 <div class="nav-collapse collapse">
55 <?php echo $OUTPUT->custom_menu(); ?>
56 <ul class="nav pull-right">
57 <li><?php echo $OUTPUT->page_heading_menu(); ?></li>
7956a02f
SH
58 </ul>
59 </div>
60 </div>
61 </nav>
62</header>
63
64<div id="page" class="container-fluid">
65
66 <header id="page-header" class="clearfix">
e11558bc 67 <?php echo $html->heading; ?>
ab5bd379 68 <div id="page-navbar" class="clearfix">
fde0b8cd
GB
69 <nav class="breadcrumb-nav"><?php echo $OUTPUT->navbar(); ?></nav>
70 <div class="breadcrumb-button"><?php echo $OUTPUT->page_heading_button(); ?></div>
7956a02f 71 </div>
7956a02f
SH
72 <div id="course-header">
73 <?php echo $OUTPUT->course_header(); ?>
74 </div>
75 </header>
76
77 <div id="page-content" class="row-fluid">
2e3fb23f
GB
78 <section id="region-main" class="span9<?php if ($left) { echo ' pull-right'; } ?>">
79 <?php
80 echo $OUTPUT->course_content_header();
81 echo $OUTPUT->main_content();
82 echo $OUTPUT->course_content_footer();
83 ?>
84 </section>
7956a02f 85 <?php
2e3fb23f
GB
86 $classextra = '';
87 if ($left) {
88 $classextra = ' desktop-first-column';
7956a02f 89 }
2e3fb23f 90 echo $OUTPUT->blocks('side-pre', 'span3'.$classextra);
7956a02f
SH
91 ?>
92 </div>
93
94 <footer id="page-footer">
95 <div id="course-footer"><?php echo $OUTPUT->course_footer(); ?></div>
96 <p class="helplink"><?php echo $OUTPUT->page_doc_link(); ?></p>
97 <?php
98 echo $html->footnote;
034710e8
ME
99 echo $OUTPUT->login_info();
100 echo $OUTPUT->home_link();
7956a02f
SH
101 echo $OUTPUT->standard_footer_html();
102 ?>
103 </footer>
104
105 <?php echo $OUTPUT->standard_end_of_body_html() ?>
106
107</div>
108</body>
034710e8 109</html>