theme-binarius MDL-23188 Added support for the custom menu... remaining changes
[moodle.git] / theme / boxxie / layout / frontpage.php
CommitLineData
1cbdc5a3
PM
1<?php
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
9$bodyclasses = array();
10if ($hassidepre && !$hassidepost) {
11 $bodyclasses[] = 'side-pre-only';
12} else if ($hassidepost && !$hassidepre) {
13 $bodyclasses[] = 'side-post-only';
14} else if (!$hassidepost && !$hassidepre) {
15 $bodyclasses[] = 'content-only';
16}
17
18echo $OUTPUT->doctype() ?>
19<html <?php echo $OUTPUT->htmlattributes() ?>>
20<head>
21 <title><?php echo $PAGE->title; ?></title>
22 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
23 <?php echo $OUTPUT->standard_head_html() ?>
24</head>
25
26<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
27
28<?php echo $OUTPUT->standard_top_of_body_html() ?>
29
30<?php if ($hasheading || $hasnavbar) { ?>
31
32<div id="page-wrapper">
33 <div id="page" class="clearfix">
34
279fac50 35 <div id="page-header" class="clearfix">
1cbdc5a3
PM
36 <?php if ($PAGE->heading) { ?>
37 <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
38 <div class="headermenu">
39 <?php echo $OUTPUT->login_info();
40 if (!empty($PAGE->layout_options['langmenu'])) {
41 echo $OUTPUT->lang_menu();
42 }
43 echo $PAGE->headingmenu; ?>
44 </div>
45 <?php } ?>
46 </div>
47
1cbdc5a3
PM
48<?php } ?>
49
50 <div id="page-content">
8e0d1f85
PM
51 <div id="region-main-box">
52 <div id="region-post-box">
53
54 <div id="region-main-wrap">
55 <div id="region-main">
56 <div class="region-content">
57 <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
58 </div>
59 </div>
60 </div>
61
62 <?php if ($hassidepre) { ?>
63 <div id="region-pre">
64 <div class="region-content">
65 <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
66 </div>
67 </div>
68 <?php } ?>
69
70 <?php if ($hassidepost) { ?>
71 <div id="region-post">
72 <div class="region-content">
73 <?php echo $OUTPUT->blocks_for_region('side-post') ?>
74 </div>
75 </div>
76 <?php } ?>
77
1cbdc5a3 78 </div>
1cbdc5a3 79 </div>
1cbdc5a3
PM
80 </div>
81
82<?php if ($hasfooter) { ?>
83
84 <div id="page-footer" class="clearfix">
85 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
19e6204e 86 <?php echo $OUTPUT->login_info(); ?>
1cbdc5a3
PM
87 </div>
88
89<?php }
90
91if ($hasheading || $hasnavbar) { ?>
92
93 </div> <!-- END #page -->
94</div> <!-- END #page-wrapper -->
95
96<?php } ?>
19e6204e
PM
97
98<div id="page-footer-bottom">
99
100<?php if ($hasfooter) {
101 echo $OUTPUT->home_link();
102 echo $OUTPUT->standard_footer_html();
103} ?>
104
105</div>
1cbdc5a3
PM
106
107<?php echo $OUTPUT->standard_end_of_body_html() ?>
108</body>
109</html>