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