MDL-21695 adding help and link strings
[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
f41046c7 43 <ul id="page-navigation" class="clearfix">
c54c8b35 44 &nbsp;
f41046c7 45 </ul>
1c601a53
PM
46
47<!-- END OF HEADER -->
48
49<!-- START OF CONTENT -->
50
51<div id="page-content-wrapper">
52 <div id="page-content">
53 <div id="region-main-box">
54 <div id="region-post-box">
55
56 <div id="region-main-wrap">
57 <div id="region-main">
58 <div class="region-content">
59 <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
60 </div>
61 </div>
62 </div>
63
64 <?php if ($hassidepre) { ?>
65 <div id="region-pre">
66 <div class="region-content">
67 <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
68 </div>
69 </div>
70 <?php } ?>
71
72 <?php if ($hassidepost) { ?>
73 <div id="region-post">
74 <div class="region-content">
75 <?php echo $OUTPUT->blocks_for_region('side-post') ?>
76 </div>
77 </div>
78 <?php } ?>
79
80 </div>
81 </div>
82 </div>
83</div>
84
85<!-- END OF CONTENT -->
86
87<!-- START OF FOOTER -->
88
89 <div id="page-footer">
90 <p class="helplink">
91 <?php echo page_doc_link(get_string('moodledocslink')) ?>
92 </p>
93
94 <?php
95 echo $OUTPUT->login_info();
96 echo $OUTPUT->home_link();
97 echo $OUTPUT->standard_footer_html();
98 ?>
99 </div>
100
101<!-- END OF FOOTER -->
102
103</div>
104<?php echo $OUTPUT->standard_end_of_body_html() ?>
105</body>
c54c8b35 106</html>