|
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 = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT)); 00007 $haslogininfo = (empty($PAGE->layout_options['nologininfo'])); 00008 00009 $showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT)); 00010 00011 $custommenu = $OUTPUT->custom_menu(); 00012 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); 00013 00014 $bodyclasses = array(); 00015 if (!$showsidepre) { 00016 $bodyclasses[] = 'content-only'; 00017 } 00018 if ($hascustommenu) { 00019 $bodyclasses[] = 'has_custom_menu'; 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 <div id="page"> 00032 <?php if ($hasheading || $hasnavbar) { ?> 00033 <div id="page-header"> 00034 <?php if ($hasheading) { ?> 00035 <h1 class="headermain"><?php echo $PAGE->heading ?></h1> 00036 <div class="headermenu"><?php 00037 if ($haslogininfo) { 00038 echo $OUTPUT->login_info(); 00039 } 00040 if (!empty($PAGE->layout_options['langmenu'])) { 00041 echo $OUTPUT->lang_menu(); 00042 } 00043 echo $PAGE->headingmenu 00044 ?></div><?php } ?> 00045 <?php if ($hascustommenu) { ?> 00046 <div id="custommenu"><?php echo $custommenu; ?></div> 00047 <?php } ?> 00048 <?php if ($hasnavbar) { ?> 00049 <div class="navbar clearfix"> 00050 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div> 00051 <div class="navbutton"> <?php echo $PAGE->button; ?></div> 00052 </div> 00053 <?php } ?> 00054 </div> 00055 <?php } ?> 00056 <!-- END OF HEADER --> 00057 00058 <div id="page-content" class="clearfix"> 00059 <div id="report-main-content"> 00060 <div class="region-content"> 00061 <?php echo $OUTPUT->main_content() ?> 00062 </div> 00063 </div> 00064 <?php if ($hassidepre) { ?> 00065 <div id="report-region-wrap"> 00066 <div id="report-region-pre" class="block-region"> 00067 <div class="region-content"> 00068 <?php echo $OUTPUT->blocks_for_region('side-pre') ?> 00069 </div> 00070 </div> 00071 </div> 00072 <?php } ?> 00073 </div> 00074 00075 <!-- START OF FOOTER --> 00076 <?php if ($hasfooter) { ?> 00077 <div id="page-footer" class="clearfix"> 00078 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p> 00079 <?php 00080 echo $OUTPUT->login_info(); 00081 echo $OUTPUT->home_link(); 00082 echo $OUTPUT->standard_footer_html(); 00083 ?> 00084 </div> 00085 <?php } ?> 00086 </div> 00087 <?php echo $OUTPUT->standard_end_of_body_html() ?> 00088 </body> 00089 </html>