9f2609299768fd15db5d56cd2869ddb2559e7e90
[moodle.git] / theme / experiment / layout / general.php
1 <?php
3 $regionsinfo = 'pagelayout';
4 if ($PAGE->blocks->region_has_content('side-pre', $OUTPUT)) {
5     $regionsinfo .= '-pre';
6 }
7 if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) {
8     $regionsinfo .= '-post';
9 }
11 echo $OUTPUT->doctype() ?>
12 <html <?php echo $OUTPUT->htmlattributes() ?>>
13 <head>
14     <title><?php echo $PAGE->title ?></title>
15     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
16     <?php echo $OUTPUT->standard_head_html() ?>
17 </head>
18 <body id="<?php echo $PAGE->pagetype ?>" class="<?php echo $PAGE->bodyclasses ?>">
19 <?php echo $OUTPUT->standard_top_of_body_html() ?>
21 <div id="page"  class="<?php echo $regionsinfo ?>">
23     <div id="header" class="clearfix">
24         <?php if ($PAGE->heading) { ?>
25         <div class="headermain"><h1><?php echo $PAGE->heading ?></h1></div>
26         <?php } ?>
27         <div class="headermenu"><?php
28             echo $OUTPUT->login_info();
29             if (!empty($PAGE->layout_options['langmenu'])) {
30                 echo $OUTPUT->lang_menu();
31             }
32             echo $PAGE->headingmenu;
33         ?></div>
35         <?php if (empty($PAGE->layout_options['nonavbar']) and $PAGE->has_navbar()) { // This is the navigation bar with breadcrumbs  ?>
36         <div class="navbar clearfix">
37             <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
38             <div class="navbutton"><?php echo $PAGE->button; ?></div>
39         </div>
40         <?php } else { ?>
41         <div class="navbar clearfix">&nbsp;</div>
42         <?php } ?>
43     </div>
44 <!-- END OF HEADER -->
46     <div class="regions-outer clearfix">
47         <div id="regions">
48             <div class="regions-inner">
49                 <div class="contentwrap">
50                     <div id="content">
51                         <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
52                     </div>
53                 </div>
54                 <?php if ($PAGE->blocks->region_has_content('side-pre', $OUTPUT)) { ?>
55                 <div id="region-side-pre" class="block-region">
56                     <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
57                 </div>
58                 <?php } ?>
59                 <?php if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) { ?>
60                 <div id="region-side-post" class="block-region">
61                     <?php echo $OUTPUT->blocks_for_region('side-post') ?>
62                 </div>
63                 <?php } ?>
64             </div>
65         </div>
66     </div>
68 <!-- START OF FOOTER -->
69     <?php if (empty($PAGE->layout_options['nofooter'])) { ?>
70     <div id="footer" class="clearfix">
71         <div class="helplink">
72         <?php echo page_doc_link(get_string('moodledocslink')) ?>
73         </div>
74         <div class="homeinfo">
75             <?php echo $OUTPUT->home_link() ?>
76         </div>
77         <?php echo $OUTPUT->login_info() ?>
78         <div class="debuginfo">
79             <?php echo $OUTPUT->standard_footer_html() ?>
80         </div>
82     </div>
83     <?php } ?>
84 </div>
85 <?php echo $OUTPUT->standard_end_of_body_html() ?>
86 </body>
87 </html>