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