|
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 if ($hascustommenu) { 00019 $bodyclasses[] = 'has-custom-menu'; 00020 } 00021 00022 echo $OUTPUT->doctype() ?> 00023 <html <?php echo $OUTPUT->htmlattributes() ?>> 00024 <head> 00025 <title><?php echo $PAGE->title ?></title> 00026 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" /> 00027 <?php echo $OUTPUT->standard_head_html() ?> 00028 </head> 00029 00030 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>"> 00031 <?php echo $OUTPUT->standard_top_of_body_html() ?> 00032 00033 <?php if ($hascustommenu) { ?> 00034 <div id="custommenu"><?php echo $custommenu; ?></div> 00035 <?php } ?> 00036 00037 <div id="page"> 00038 00039 <?php if ($hasheading || $hasnavbar) { ?> 00040 <div id="wrapper" class="clearfix"> 00041 00042 <!-- START OF HEADER --> 00043 00044 <div id="page-header" class="inside"> 00045 <div id="page-header-wrapper" class="wrapper clearfix"> 00046 <?php if ($hasheading) { ?> 00047 <div id="header-left"> 00048 <h1 class="headermain inside"><?php echo $PAGE->heading ?></h1> 00049 </div> 00050 <div class="headermenu"><?php 00051 echo $OUTPUT->login_info(); 00052 if (!empty($PAGE->layout_options['langmenu'])) { 00053 echo $OUTPUT->lang_menu(); 00054 } 00055 echo $PAGE->headingmenu ?> 00056 </div> 00057 <?php } ?> 00058 </div> 00059 </div> 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> 00106 <?php } ?> 00107 00108 <!-- START OF FOOTER --> 00109 00110 <?php if ($hasfooter) { ?> 00111 <div id="page-footer" class="wrapper"> 00112 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p> 00113 <?php 00114 echo $OUTPUT->login_info(); 00115 echo $OUTPUT->home_link(); 00116 echo $OUTPUT->standard_footer_html(); 00117 ?> 00118 </div> 00119 <?php } ?> 00120 00121 </div> 00122 <?php echo $OUTPUT->standard_end_of_body_html() ?> 00123 </body> 00124 </html>