weekly release 2.6dev
[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
17// Get the HTML for the settings bits.
18$html = theme_clean_get_html_for_settings($OUTPUT, $PAGE);
19
20echo $OUTPUT->doctype() ?>
21<html <?php echo $OUTPUT->htmlattributes(); ?>>
22<head>
23 <title><?php echo $OUTPUT->page_title(); ?></title>
24 <link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>" />
25 <?php echo $OUTPUT->standard_head_html() ?>
26 <meta name="viewport" content="width=device-width, initial-scale=1.0">
27</head>
28
29<body <?php echo $OUTPUT->body_attributes('two-column'); ?>>
30
31<?php echo $OUTPUT->standard_top_of_body_html() ?>
32
33<header role="banner" class="navbar navbar-fixed-top<?php echo $html->navbarclass ?>">
34 <nav role="navigation" class="navbar-inner">
35 <div class="container-fluid">
36 <a class="brand" href="<?php echo $CFG->wwwroot;?>"><?php echo $SITE->shortname; ?></a>
37 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
38 <span class="icon-bar"></span>
39 <span class="icon-bar"></span>
40 <span class="icon-bar"></span>
41 </a>
42 <div class="nav-collapse collapse">
43 <?php echo $OUTPUT->custom_menu(); ?>
44 <ul class="nav pull-right">
45 <li><?php echo $OUTPUT->page_heading_menu(); ?></li>
46 <li class="navbar-text"><?php echo $OUTPUT->login_info() ?></li>
47 </ul>
48 </div>
49 </div>
50 </nav>
51</header>
52
53<div id="page" class="container-fluid">
54
55 <header id="page-header" class="clearfix">
56 <div id="page-navbar">
57 <nav class="breadcrumb-button"><?php echo $OUTPUT->page_heading_button(); ?></nav>
58 <?php echo $OUTPUT->navbar(); ?>
59 </div>
60 <?php echo $html->heading; ?>
61 <div id="course-header">
62 <?php echo $OUTPUT->course_header(); ?>
63 </div>
64 </header>
65
66 <div id="page-content" class="row-fluid">
67 <div id="region-bs-main-and-pre" class="span9">
68 <div class="row-fluid">
69 <section id="region-main" class="span9 pull-right">
70 <?php
71 echo $OUTPUT->course_content_header();
72 echo $OUTPUT->main_content();
73 echo $OUTPUT->course_content_footer();
74 ?>
75 </section>
76 <?php
77 if (!right_to_left()) {
78 echo $OUTPUT->blocks('side-pre', 'span3 desktop-first-column');
79 } ?>
80 </div>
81 </div>
82 <?php
83 if (right_to_left()) {
84 echo $OUTPUT->blocks('side-post', 'span3');
85 }
86 ?>
87 </div>
88
89 <footer id="page-footer">
90 <div id="course-footer"><?php echo $OUTPUT->course_footer(); ?></div>
91 <p class="helplink"><?php echo $OUTPUT->page_doc_link(); ?></p>
92 <?php
93 echo $html->footnote;
034710e8
ME
94 echo $OUTPUT->login_info();
95 echo $OUTPUT->home_link();
7956a02f
SH
96 echo $OUTPUT->standard_footer_html();
97 ?>
98 </footer>
99
100 <?php echo $OUTPUT->standard_end_of_body_html() ?>
101
102</div>
103</body>
034710e8 104</html>