|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00003 $hasheading = ($PAGE->heading); 00004 $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()); 00005 $hasfooter = (empty($PAGE->layout_options['nofooter'])); 00006 $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT); 00007 $showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT); 00008 $custommenu = $OUTPUT->custom_menu(); 00009 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); 00010 00011 $bodyclasses = array(); 00012 if (!$showsidepre) { 00013 $bodyclasses[] = 'content-only'; 00014 } 00015 if ($hascustommenu) { 00016 $bodyclasses[] = 'has_custom_menu'; 00017 } 00018 if ($hasnavbar) { 00019 $bodyclasses[] = 'hasnavbar'; 00020 } 00021 00022 echo $OUTPUT->doctype() ?> 00023 <html <?php echo $OUTPUT->htmlattributes() ?>> 00024 <head> 00025 <title><?php echo $PAGE->title ?></title> 00026 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" /> 00027 <?php echo $OUTPUT->standard_head_html() ?> 00028 </head> 00029 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>"> 00030 <?php echo $OUTPUT->standard_top_of_body_html() ?> 00031 00032 <div id="page"> 00033 <?php if ($hasheading || $hasnavbar) { ?> 00034 <div id="page-header"> 00035 <div class="rounded-corner top-left"></div> 00036 <div class="rounded-corner top-right"></div> 00037 <?php if ($hasheading) { ?> 00038 <h1 class="headermain"><?php echo $PAGE->heading ?></h1> 00039 <div class="headermenu"><?php 00040 echo $OUTPUT->login_info(); 00041 if (!empty($PAGE->layout_options['langmenu'])) { 00042 echo $OUTPUT->lang_menu(); 00043 } 00044 echo $PAGE->headingmenu 00045 ?></div><?php } ?> 00046 00047 <?php if ($hascustommenu) { ?> 00048 <div id="custommenu"><?php echo $custommenu; ?></div> 00049 <?php } ?> 00050 00051 <?php if ($hasnavbar) { ?> 00052 <div class="navbar clearfix"> 00053 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div> 00054 <div class="navbutton"><?php echo $PAGE->button; ?></div> 00055 </div> 00056 <?php } ?> 00057 </div> 00058 <?php } ?> 00059 <!-- END OF HEADER --> 00060 00061 <div id="page-content" class="clearfix"> 00062 <div id="report-main-content"> 00063 <div class="region-content"> 00064 <?php echo $OUTPUT->main_content() ?> 00065 </div> 00066 </div> 00067 <?php if ($hassidepre) { ?> 00068 <div id="report-region-wrap"> 00069 <div id="report-region-pre" class="block-region"> 00070 <div class="region-content"> 00071 <?php echo $OUTPUT->blocks_for_region('side-pre') ?> 00072 </div> 00073 </div> 00074 </div> 00075 <?php } ?> 00076 </div> 00077 00078 <!-- START OF FOOTER --> 00079 <?php if ($hasfooter) { ?> 00080 <div id="page-footer" class="clearfix"> 00081 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p> 00082 <?php 00083 echo $OUTPUT->login_info(); 00084 echo $OUTPUT->home_link(); 00085 echo $OUTPUT->standard_footer_html(); 00086 ?> 00087 <div class="rounded-corner bottom-left"></div> 00088 <div class="rounded-corner bottom-right"></div> 00089 </div> 00090 <?php } ?> 00091 <div class="clearfix"></div> 00092 </div> 00093 <?php echo $OUTPUT->standard_end_of_body_html() ?> 00094 </body> 00095 </html>