|
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 <div id="region-main-box"> 00051 <div id="region-post-box"> 00052 00053 <div id="region-main-wrap"> 00054 <div id="region-main"> 00055 <div class="region-content"> 00056 <?php echo $OUTPUT->main_content() ?> 00057 </div> 00058 </div> 00059 </div> 00060 00061 <?php if ($hassidepre) { ?> 00062 <div id="region-pre" class="block-region"> 00063 <div class="region-content"> 00064 <?php echo $OUTPUT->blocks_for_region('side-pre') ?> 00065 </div> 00066 </div> 00067 <?php } ?> 00068 00069 <?php if ($hassidepost) { ?> 00070 <div id="region-post" class="block-region"> 00071 <div class="region-content"> 00072 <?php echo $OUTPUT->blocks_for_region('side-post') ?> 00073 </div> 00074 </div> 00075 <?php } ?> 00076 00077 </div> 00078 </div> 00079 </div> 00080 00081 <!-- START OF FOOTER --> 00082 <div id="page-footer"> 00083 <p class="helplink"> 00084 <?php echo page_doc_link(get_string('moodledocslink')) ?> 00085 </p> 00086 00087 <?php 00088 echo $OUTPUT->login_info(); 00089 echo $OUTPUT->home_link(); 00090 echo $OUTPUT->standard_footer_html(); 00091 ?> 00092 </div> 00093 </div> 00094 <?php echo $OUTPUT->standard_end_of_body_html() ?> 00095 </body> 00096 </html>