Checking in basic file structure for new theme.
[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
43 <ul id="page-navigation" class="clearfix">
44 <li id="first"><a href="<?php echo $CFG->wwwroot; ?>" title="Home">Home</a></li>
45 <li><a href="<?php echo $CFG->wwwroot; ?>" title="Courses">Courses</a></li>
46 </ul>
47
48<!-- END OF HEADER -->
49
50<!-- START OF CONTENT -->
51
52<div id="page-content-wrapper">
53 <div id="page-content">
54 <div id="region-main-box">
55 <div id="region-post-box">
56
57 <div id="region-main-wrap">
58 <div id="region-main">
59 <div class="region-content">
60 <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
61 </div>
62 </div>
63 </div>
64
65 <?php if ($hassidepre) { ?>
66 <div id="region-pre">
67 <div class="region-content">
68 <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
69 </div>
70 </div>
71 <?php } ?>
72
73 <?php if ($hassidepost) { ?>
74 <div id="region-post">
75 <div class="region-content">
76 <?php echo $OUTPUT->blocks_for_region('side-post') ?>
77 </div>
78 </div>
79 <?php } ?>
80
81 </div>
82 </div>
83 </div>
84</div>
85
86<!-- END OF CONTENT -->
87
88<!-- START OF FOOTER -->
89
90 <div id="page-footer">
91 <p class="helplink">
92 <?php echo page_doc_link(get_string('moodledocslink')) ?>
93 </p>
94
95 <?php
96 echo $OUTPUT->login_info();
97 echo $OUTPUT->home_link();
98 echo $OUTPUT->standard_footer_html();
99 ?>
100 </div>
101
102<!-- END OF FOOTER -->
103
104</div>
105<?php echo $OUTPUT->standard_end_of_body_html() ?>
106</body>
107</html>