|
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 $hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT)); 00007 $hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-post', $OUTPUT)); 00008 $haslogininfo = (empty($PAGE->layout_options['nologininfo'])); 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 $hasfootnote = (!empty($PAGE->theme->settings->footnote)); 00017 00018 $bodyclasses = array(); 00019 if ($showsidepre && !$showsidepost) { 00020 $bodyclasses[] = 'side-pre-only'; 00021 } else if ($showsidepost && !$showsidepre) { 00022 $bodyclasses[] = 'side-post-only'; 00023 } else if (!$showsidepost && !$showsidepre) { 00024 $bodyclasses[] = 'content-only'; 00025 } 00026 if ($hascustommenu) { 00027 $bodyclasses[] = 'has_custom_menu'; 00028 } 00029 00030 echo $OUTPUT->doctype() ?> 00031 <html <?php echo $OUTPUT->htmlattributes() ?>> 00032 <head> 00033 <title><?php echo $PAGE->title ?></title> 00034 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" /> 00035 <?php echo $OUTPUT->standard_head_html() ?> 00036 </head> 00037 00038 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>"> 00039 <?php echo $OUTPUT->standard_top_of_body_html() ?> 00040 <div id="page-wrapper"> 00041 <div id="page"> 00042 <?php if ($hasheading || $hasnavbar) { ?> 00043 <div id="page-header"> 00044 <?php if ($hasheading) { ?> 00045 <a class="logo" href="<?php echo $CFG->wwwroot; ?>" title="<?php print_string('home'); ?>"></a> 00046 <div class="headermenu"><?php 00047 if ($haslogininfo) { 00048 echo $OUTPUT->login_info(); 00049 } 00050 if (!empty($PAGE->layout_options['langmenu'])) { 00051 echo $OUTPUT->lang_menu(); 00052 } 00053 echo $PAGE->headingmenu 00054 ?></div> 00055 <?php } ?> 00056 </div> 00057 <?php } ?> 00058 <!-- END OF HEADER --> 00059 <!-- START CUSTOMMENU AND NAVBAR --> 00060 <div id="navcontainer"> 00061 <?php if ($hascustommenu) { ?> 00062 <div id="custommenu" class="javascript-disabled"><?php echo $custommenu; ?></div> 00063 <?php } ?> 00064 00065 </div> 00066 00067 <?php if ($hasnavbar) { ?> 00068 <div class="navbar clearfix"> 00069 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div> 00070 <div class="navbutton"> <?php echo $PAGE->button; ?></div> 00071 </div> 00072 <?php } ?> 00073 00074 <!-- END OF CUSTOMMENU AND NAVBAR --> 00075 <div id="page-content"> 00076 <div id="region-main-box"> 00077 <div id="region-post-box"> 00078 <div id="region-main-wrap"> 00079 <div id="region-main-pad"> 00080 <div id="region-main"> 00081 <div class="region-content"> 00082 <?php echo $OUTPUT->main_content() ?> 00083 </div> 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 </div> 00104 </div> 00105 </div> 00106 00107 <!-- START OF FOOTER --> 00108 <?php if ($hasfooter) { ?> 00109 <div id="page-footer" class="clearfix"> 00110 00111 <div class="footer-left"> 00112 00113 <?php if ($hasfootnote) { ?> 00114 <div id="footnote"><?php echo $PAGE->theme->settings->footnote;?></div> 00115 <?php } ?> 00116 00117 <a href="http://moodle.org" title="Moodle"> 00118 <img src="<?php echo $OUTPUT->pix_url('footer/moodle-logo','theme')?>" alt="Moodle logo" /> 00119 </a> 00120 </div> 00121 00122 <div class="footer-right"> 00123 <?php echo $OUTPUT->login_info();?> 00124 </div> 00125 00126 <?php echo $OUTPUT->standard_footer_html(); ?> 00127 </div> 00128 <?php } ?> 00129 <div class="clearfix"></div> 00130 </div> 00131 </div> 00132 <?php echo $OUTPUT->standard_end_of_body_html() ?> 00133 </body> 00134 </html>