forms MDL-22487 Fixed resizing bug in smart select
[moodle.git] / theme / formfactor / layout / frontpage.php
CommitLineData
1c601a53
PM
1<?php
2
3$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
4$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
5
6$bodyclasses = array();
7if ($hassidepre && !$hassidepost) {
8 $bodyclasses[] = 'side-pre-only';
9} else if ($hassidepost && !$hassidepre) {
10 $bodyclasses[] = 'side-post-only';
11} else if (!$hassidepost && !$hassidepre) {
12 $bodyclasses[] = 'content-only';
13}
14
15echo $OUTPUT->doctype() ?>
16<html <?php echo $OUTPUT->htmlattributes() ?>>
17<head>
18 <title><?php echo $PAGE->title ?></title>
19 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
20 <meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" />
21 <?php echo $OUTPUT->standard_head_html() ?>
22</head>
23<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
24<?php echo $OUTPUT->standard_top_of_body_html() ?>
25
26<div id="page">
27
28<!-- START OF HEADER -->
29
30 <div id="page-header" class="clearfix">
31 <div id="page-header-wrapper">
32 <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
33 <div class="headermenu">
34 <?php
35 echo $OUTPUT->login_info();
36 echo $OUTPUT->lang_menu();
37 echo $PAGE->headingmenu;
38 ?>
39 </div>
40 </div>
41 </div>
42
43d65a95
PM
43 <?php if ($hascustommenu) { ?>
44 <div id="custommenu"><?php echo $custommenu; ?></div>
45 <?php } else { ?>
46 <ul id="page-navigation" class="clearfix">
47 <li>&nbsp;</li>
48 </ul>
49 <?php } ?>
50
1c601a53
PM
51<!-- END OF HEADER -->
52
53<!-- START OF CONTENT -->
54
55<div id="page-content-wrapper">
56 <div id="page-content">
57 <div id="region-main-box">
58 <div id="region-post-box">
59
60 <div id="region-main-wrap">
61 <div id="region-main">
62 <div class="region-content">
63 <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
64 </div>
65 </div>
66 </div>
67
68 <?php if ($hassidepre) { ?>
69 <div id="region-pre">
70 <div class="region-content">
71 <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
72 </div>
73 </div>
74 <?php } ?>
75
76 <?php if ($hassidepost) { ?>
77 <div id="region-post">
78 <div class="region-content">
79 <?php echo $OUTPUT->blocks_for_region('side-post') ?>
80 </div>
81 </div>
82 <?php } ?>
83
84 </div>
85 </div>
86 </div>
87</div>
88
89<!-- END OF CONTENT -->
90
91<!-- START OF FOOTER -->
92
93 <div id="page-footer">
94 <p class="helplink">
95 <?php echo page_doc_link(get_string('moodledocslink')) ?>
96 </p>
97
98 <?php
99 echo $OUTPUT->login_info();
100 echo $OUTPUT->home_link();
101 echo $OUTPUT->standard_footer_html();
102 ?>
103 </div>
104
105<!-- END OF FOOTER -->
106
107</div>
108<?php echo $OUTPUT->standard_end_of_body_html() ?>
109</body>
c54c8b35 110</html>