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