|
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 00006 $custommenu = $OUTPUT->custom_menu(); 00007 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); 00008 00009 $bodyclasses = array(); 00010 if ($hassidepre && !$hassidepost) { 00011 $bodyclasses[] = 'side-pre-only'; 00012 } else if ($hassidepost && !$hassidepre) { 00013 $bodyclasses[] = 'side-post-only'; 00014 } else if (!$hassidepost && !$hassidepre) { 00015 $bodyclasses[] = 'content-only'; 00016 } 00017 00018 echo $OUTPUT->doctype() ?> 00019 <html <?php echo $OUTPUT->htmlattributes() ?>> 00020 <head> 00021 <title><?php echo $PAGE->title ?></title> 00022 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" /> 00023 <meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" /> 00024 <?php echo $OUTPUT->standard_head_html() ?> 00025 </head> 00026 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>"> 00027 <?php echo $OUTPUT->standard_top_of_body_html() ?> 00028 00029 <div id="page"> 00030 00031 <!-- START OF HEADER --> 00032 00033 <div id="page-header" class="clearfix"> 00034 <div id="page-header-wrapper"> 00035 <h1 class="headermain"><?php echo $PAGE->heading ?></h1> 00036 <div class="headermenu"> 00037 <?php 00038 echo $OUTPUT->login_info(); 00039 echo $OUTPUT->lang_menu(); 00040 echo $PAGE->headingmenu; 00041 ?> 00042 </div> 00043 </div> 00044 </div> 00045 00046 <?php if ($hascustommenu) { ?> 00047 <div id="custommenu"><?php echo $custommenu; ?></div> 00048 <?php } else { ?> 00049 <ul id="page-navigation" class="clearfix"> 00050 <li> </li> 00051 </ul> 00052 <?php } ?> 00053 00054 <!-- END OF HEADER --> 00055 00056 <!-- START OF CONTENT --> 00057 00058 <div id="page-content-wrapper"> 00059 <div id="page-content"> 00060 <div id="region-main-box"> 00061 <div id="region-post-box"> 00062 00063 <div id="region-main-wrap"> 00064 <div id="region-main"> 00065 <div class="region-content"> 00066 <?php echo $OUTPUT->main_content() ?> 00067 </div> 00068 </div> 00069 </div> 00070 00071 <?php if ($hassidepre) { ?> 00072 <div id="region-pre"> 00073 <div class="region-content"> 00074 <?php echo $OUTPUT->blocks_for_region('side-pre') ?> 00075 </div> 00076 </div> 00077 <?php } ?> 00078 00079 <?php if ($hassidepost) { ?> 00080 <div id="region-post"> 00081 <div class="region-content"> 00082 <?php echo $OUTPUT->blocks_for_region('side-post') ?> 00083 </div> 00084 </div> 00085 <?php } ?> 00086 00087 </div> 00088 </div> 00089 </div> 00090 </div> 00091 00092 <!-- END OF CONTENT --> 00093 00094 <!-- START OF FOOTER --> 00095 00096 <div id="page-footer"> 00097 <p class="helplink"> 00098 <?php echo page_doc_link(get_string('moodledocslink')) ?> 00099 </p> 00100 00101 <?php 00102 echo $OUTPUT->login_info(); 00103 echo $OUTPUT->home_link(); 00104 echo $OUTPUT->standard_footer_html(); 00105 ?> 00106 </div> 00107 00108 <!-- END OF FOOTER --> 00109 00110 </div> 00111 <?php echo $OUTPUT->standard_end_of_body_html() ?> 00112 </body> 00113 </html>