MDL-25589 removing extra align value
[moodle.git] / theme / boxxie / layout / general.php
CommitLineData
f020dd1b 1<?php
c6d75515
PM
2
3$hasheading = ($PAGE->heading);
4$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
5$hasfooter = (empty($PAGE->layout_options['nofooter']));
6$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
7$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
8
483a47fa
SH
9$custommenu = $OUTPUT->custom_menu();
10$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
11
c6d75515
PM
12$bodyclasses = array();
13if ($hassidepre && !$hassidepost) {
14 $bodyclasses[] = 'side-pre-only';
15} else if ($hassidepost && !$hassidepre) {
16 $bodyclasses[] = 'side-post-only';
17} else if (!$hassidepost && !$hassidepre) {
18 $bodyclasses[] = 'content-only';
19}
20
483a47fa
SH
21if ($hascustommenu) {
22 $bodyclasses[] = 'has-custom-menu';
23}
24
f020dd1b
PM
25echo $OUTPUT->doctype() ?>
26<html <?php echo $OUTPUT->htmlattributes() ?>>
27<head>
4f68869b
PM
28 <title><?php echo $PAGE->title; ?></title>
29 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
30 <?php echo $OUTPUT->standard_head_html() ?>
f020dd1b
PM
31</head>
32
c6d75515 33<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
4f68869b 34
f020dd1b 35<?php echo $OUTPUT->standard_top_of_body_html() ?>
4f68869b 36
c6d75515 37<?php if ($hasheading || $hasnavbar) { ?>
4f68869b
PM
38
39<div id="page-wrapper">
40 <div id="page" class="clearfix">
41
279fac50 42 <div id="page-header" class="clearfix">
4f68869b 43 <?php if ($PAGE->heading) { ?>
f020dd1b 44 <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
9159cb37
PM
45 <div class="headermenu">
46 <?php echo $OUTPUT->login_info();
4f68869b
PM
47 if (!empty($PAGE->layout_options['langmenu'])) {
48 echo $OUTPUT->lang_menu();
49 }
9159cb37
PM
50 echo $PAGE->headingmenu; ?>
51 </div>
52 <?php } ?>
483a47fa
SH
53 <?php if ($hascustommenu) { ?>
54 <div id="custommenu"><?php echo $custommenu; ?></div>
55 <?php } ?>
9159cb37
PM
56 </div>
57
18fa24aa 58 <div class="myclear"></div>
4f68869b 59
c6d75515 60 <?php if ($hasnavbar) { ?>
4f68869b
PM
61 <div class="navbar clearfix">
62 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
63 <div class="navbutton"> <?php echo $PAGE->button; ?></div>
64 </div>
65 <?php } ?>
4f68869b 66
f020dd1b 67<?php } ?>
4f68869b 68
f020dd1b 69 <div id="page-content">
8e0d1f85
PM
70 <div id="region-main-box">
71 <div id="region-post-box">
72
73 <div id="region-main-wrap">
74 <div id="region-main">
75 <div class="region-content">
76 <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
77 </div>
78 </div>
79 </div>
80
81 <?php if ($hassidepre) { ?>
82 <div id="region-pre">
83 <div class="region-content">
84 <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
85 </div>
86 </div>
87 <?php } ?>
88
89 <?php if ($hassidepost) { ?>
90 <div id="region-post">
91 <div class="region-content">
92 <?php echo $OUTPUT->blocks_for_region('side-post') ?>
93 </div>
94 </div>
95 <?php } ?>
96
4f68869b 97 </div>
f020dd1b
PM
98 </div>
99 </div>
4f68869b 100
18fa24aa 101 <div class="myclear"></div>
4f68869b
PM
102<?php if ($hasfooter) { ?>
103
f020dd1b 104 <div id="page-footer" class="clearfix">
4f68869b 105 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
1cbdc5a3 106 <?php echo $OUTPUT->login_info(); ?>
f020dd1b 107 </div>
4f68869b
PM
108
109<?php }
110
c6d75515 111if ($hasheading || $hasnavbar) { ?>
18fa24aa 112 <div class="myclear"></div>
4f68869b 113 </div> <!-- END #page -->
18fa24aa 114
4f68869b
PM
115</div> <!-- END #page-wrapper -->
116
117<?php } ?>
1cbdc5a3 118
19e6204e
PM
119<div id="page-footer-bottom">
120
1cbdc5a3
PM
121<?php if ($hasfooter) {
122
123 echo $OUTPUT->home_link();
124 echo $OUTPUT->standard_footer_html();
19e6204e 125
1cbdc5a3 126} ?>
19e6204e
PM
127
128</div>
1cbdc5a3 129
4f68869b 130
f020dd1b
PM
131<?php echo $OUTPUT->standard_end_of_body_html() ?>
132</body>
133</html>