~ubuntu-branches/ubuntu/trusty/moodle/trusty-proposed

« back to all changes in this revision

Viewing changes to theme/clean/layout/columns2.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-07-19 08:52:46 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130719085246-yebwditc2exoap2r
Tags: 2.5.1-1
* New upstream version: 2.5.1.
  - Fixes security issues:
    CVE-2013-2242 CVE-2013-2243 CVE-2013-2244 CVE-2013-2245
    CVE-2013-2246
* Depend on apache2 instead of obsolete apache2-mpm-prefork.
* Use packaged libphp-phpmailer (closes: #429339), adodb,
  HTMLPurifier, PclZip.
* Update debconf translations, thanks Salvatore Merone, Pietro Tollot,
  Joe Hansen, Yuri Kozlov, Holger Wansing, Américo Monteiro,
  Adriano Rafael Gomes, victory, Michał Kułach.
  (closes: #716972, #716986, #717080, #717108, #717278)

Show diffs side-by-side

added added

removed removed

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