MDL-23870: Replace flash and mp3 multimedia filter with flowplayer.
[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
483a47fa
SH
9$custommenu = $OUTPUT->custom_menu();
10$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
11
1cbdc5a3
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
1cbdc5a3
PM
25echo $OUTPUT->doctype() ?>
26<html <?php echo $OUTPUT->htmlattributes() ?>>
27<head>
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() ?>
31</head>
32
33<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
34
35<?php echo $OUTPUT->standard_top_of_body_html() ?>
36
37<?php if ($hasheading || $hasnavbar) { ?>
38
39<div id="page-wrapper">
40 <div id="page" class="clearfix">
41
279fac50 42 <div id="page-header" class="clearfix">
1cbdc5a3
PM
43 <?php if ($PAGE->heading) { ?>
44 <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
45 <div class="headermenu">
46 <?php echo $OUTPUT->login_info();
47 if (!empty($PAGE->layout_options['langmenu'])) {
48 echo $OUTPUT->lang_menu();
49 }
50 echo $PAGE->headingmenu; ?>
51 </div>
483a47fa
SH
52 <?php if ($hascustommenu) { ?>
53 <div id="custommenu"><?php echo $custommenu; ?></div>
54 <?php } ?>
1cbdc5a3
PM
55 <?php } ?>
56 </div>
57
1cbdc5a3
PM
58<?php } ?>
59
60 <div id="page-content">
8e0d1f85
PM
61 <div id="region-main-box">
62 <div id="region-post-box">
63
64 <div id="region-main-wrap">
65 <div id="region-main">
66 <div class="region-content">
67 <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
68 </div>
69 </div>
70 </div>
71
72 <?php if ($hassidepre) { ?>
73 <div id="region-pre">
74 <div class="region-content">
75 <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
76 </div>
77 </div>
78 <?php } ?>
79
80 <?php if ($hassidepost) { ?>
81 <div id="region-post">
82 <div class="region-content">
83 <?php echo $OUTPUT->blocks_for_region('side-post') ?>
84 </div>
85 </div>
86 <?php } ?>
87
1cbdc5a3 88 </div>
1cbdc5a3 89 </div>
1cbdc5a3
PM
90 </div>
91
92<?php if ($hasfooter) { ?>
93
94 <div id="page-footer" class="clearfix">
95 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
19e6204e 96 <?php echo $OUTPUT->login_info(); ?>
1cbdc5a3
PM
97 </div>
98
99<?php }
100
101if ($hasheading || $hasnavbar) { ?>
102
103 </div> <!-- END #page -->
104</div> <!-- END #page-wrapper -->
105
106<?php } ?>
19e6204e
PM
107
108<div id="page-footer-bottom">
109
110<?php if ($hasfooter) {
111 echo $OUTPUT->home_link();
112 echo $OUTPUT->standard_footer_html();
113} ?>
114
115</div>
1cbdc5a3
PM
116
117<?php echo $OUTPUT->standard_end_of_body_html() ?>
118</body>
119</html>