themes lib MDL-24895 Multiple fixes to better handle overflow.
[moodle.git] / theme / sky_high / layout / report.php
CommitLineData
367a75fa
SH
1<?php
2
3$hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT));
4$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
5$showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT));
6
7$custommenu = $OUTPUT->custom_menu();
8$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
9
10$bodyclasses = array();
11if (!$showsidepre) {
12 $bodyclasses[] = 'content-only';
13}
14if ($hassidepre) {
15 $bodyclasses[] = 'background';
16}
17
18if (!empty($PAGE->theme->settings->logo)) {
19 $logourl = $PAGE->theme->settings->logo;
20} else {
21 $logourl = NULL;
22}
23
24if (!empty($PAGE->theme->settings->footnote)) {
25 $footnote = $PAGE->theme->settings->footnote;
26} else {
27 $footnote = '<!-- There was no custom footnote set -->';
28}
29
30echo $OUTPUT->doctype() ?>
31<html <?php echo $OUTPUT->htmlattributes() ?>>
32<head>
33 <title><?php echo $PAGE->title ?></title>
34 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
35 <meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" />
36 <?php echo $OUTPUT->standard_head_html() ?>
37</head>
38<body id="<?php echo $PAGE->bodyid ?>" class="<?php echo $PAGE->bodyclasses.' '.join(' ', $bodyclasses) ?>">
39<?php echo $OUTPUT->standard_top_of_body_html() ?>
40
41<div id="page">
42 <div id="wrapper" class="clearfix">
43
44<!-- START OF HEADER -->
45
46 <div id="page-header" class="clearfix">
47 <div id="page-header-wrapper">
48 <?php if($logourl == NULL) { ?>
49 <h1 class="headermain">
50 <?php echo $PAGE->heading ?>
51 </h1>
52 <?php } else { ?>
53 <img class="logo" src="<?php echo $logourl;?>" alt="Custom logo here" /><h1 class="headerwlogo">- <?php echo $PAGE->heading ?></h1>
54 <?php } ?>
55
56
57 <div class="headermenu">
58 <?php
59 echo $OUTPUT->login_info();
60 if (!empty($PAGE->layout_options['langmenu'])) {
61 echo $OUTPUT->lang_menu();
62 }
63 echo $PAGE->headingmenu
64 ?>
65 </div>
66 </div>
67 </div>
68
69<!-- END OF HEADER -->
70
71<!-- START OF CONTENT -->
72<?php if ($hascustommenu) { ?>
73 <div id="custommenu"><?php echo $custommenu; ?></div>
74<?php } ?>
75<div class="navbar clearfix">
76 <?php if ($hasnavbar) { ?>
77 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
78 <div class="navbutton"> <?php echo $PAGE->button; ?></div>
79 <?php } ?>
80 </div>
81
82
83
84
85<div id="page-content-wrapper">
86 <div id="page-content">
87 <div id="region-main-box">
88 <div id="region-post-box">
89
90 <div id="region-main-wrap">
91 <div id="region-main">
92 <div class="region-content">
93 <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
94 </div>
95 </div>
96 </div>
97
98 <?php if ($hassidepre) { ?>
99 <div id="region-pre" class="block-region">
100 <div class="region-content">
101 <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
102 </div>
103 </div>
104 <?php } ?>
105
106 </div>
107 </div>
108 </div>
109</div>
110
111<!-- END OF CONTENT -->
112
113
114
115<!-- START OF FOOTER -->
116
117 <div id="page-footer">
118 <div class="footnote"><?php echo $footnote; ?></div>
119 <?php
120 echo $OUTPUT->login_info();
121 echo $OUTPUT->standard_footer_html();
122 ?>
123 </div>
124
125<!-- END OF FOOTER -->
126</div>
127</div>
128 <p class="helplink">
129 <?php echo page_doc_link(get_string('moodledocslink')) ?>
130 </p><center>
131 <?php
132 echo $OUTPUT->home_link();
133 echo $OUTPUT->standard_end_of_body_html() ?>
134</center>
135</body>
136</html>