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