|
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 $custommenu = $OUTPUT->custom_menu(); 00009 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); 00010 00011 $bodyclasses = array(); 00012 if ($hassidepre && !$hassidepost) { 00013 $bodyclasses[] = 'side-pre-only'; 00014 } else if ($hassidepost && !$hassidepre) { 00015 $bodyclasses[] = 'side-post-only'; 00016 } else if (!$hassidepost && !$hassidepre) { 00017 $bodyclasses[] = 'content-only'; 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 <?php if ($hasheading || $hasnavbar) { ?> 00036 <div id="page-header"> 00037 <div id="page-header-wrapper" class="wrapper clearfix"> 00038 <?php if ($hasheading) { ?> 00039 <h1 class="headermain inside"><?php echo $PAGE->heading ?></h1> 00040 <div class="headermenu"><?php 00041 echo $OUTPUT->login_info(); 00042 if (!empty($PAGE->layout_options['langmenu'])) { 00043 echo $OUTPUT->lang_menu(); 00044 } 00045 echo $PAGE->headingmenu ?> 00046 </div> 00047 <?php } ?> 00048 </div> 00049 </div> 00050 00051 <?php if ($hascustommenu) { ?> 00052 <div id="custommenuwrap"><div id="custommenu"><?php echo $custommenu; ?></div></div> 00053 <?php } ?> 00054 00055 <?php if ($hasnavbar) { ?> 00056 <div class="navbar"> 00057 <div class="wrapper clearfix"> 00058 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div> 00059 <div class="navbutton"> <?php echo $PAGE->button; ?></div> 00060 </div> 00061 </div> 00062 <?php } ?> 00063 00064 <?php } ?> 00065 <!-- END OF HEADER --> 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 <div id="region-main"> 00073 <div class="region-content"> 00074 <?php echo $OUTPUT->main_content() ?> 00075 </div> 00076 </div> 00077 </div> 00078 00079 <?php if ($hassidepre) { ?> 00080 <div id="region-pre" class="block-region"> 00081 <div class="region-content"> 00082 <?php echo $OUTPUT->blocks_for_region('side-pre') ?> 00083 </div> 00084 </div> 00085 <?php } ?> 00086 00087 <?php if ($hassidepost) { ?> 00088 <div id="region-post" class="block-region"> 00089 <div class="region-content"> 00090 <?php echo $OUTPUT->blocks_for_region('side-post') ?> 00091 </div> 00092 </div> 00093 <?php } ?> 00094 00095 </div> 00096 </div> 00097 </div> 00098 </div> 00099 00100 <!-- START OF FOOTER --> 00101 <?php if ($hasfooter) { ?> 00102 <div id="page-footer" class="wrapper"> 00103 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p> 00104 <?php 00105 echo $OUTPUT->login_info(); 00106 echo $OUTPUT->home_link(); 00107 echo $OUTPUT->standard_footer_html(); 00108 ?> 00109 </div> 00110 <?php } ?> 00111 </div> 00112 <?php echo $OUTPUT->standard_end_of_body_html() ?> 00113 </body> 00114 </html>