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