|
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 00007 $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT); 00008 $hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT); 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 $bodyclasses = array(); 00017 if ($showsidepre && !$showsidepost) { 00018 $bodyclasses[] = 'side-pre-only'; 00019 } else if ($showsidepost && !$showsidepre) { 00020 $bodyclasses[] = 'side-post-only'; 00021 } else if (!$showsidepost && !$showsidepre) { 00022 $bodyclasses[] = 'content-only'; 00023 } 00024 00025 if (!empty($PAGE->theme->settings->footertext)) { 00026 $footnote = $PAGE->theme->settings->footertext; 00027 } else { 00028 $footnote = '<!-- There was no custom footnote set -->'; 00029 } 00030 00031 echo $OUTPUT->doctype() ?> 00032 <html <?php echo $OUTPUT->htmlattributes() ?>> 00033 <head> 00034 <title><?php echo $PAGE->title ?></title> 00035 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" /> 00036 <meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" /> 00037 <?php echo $OUTPUT->standard_head_html() ?> 00038 </head> 00039 00040 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>"> 00041 <?php echo $OUTPUT->standard_top_of_body_html() ?> 00042 00043 <div id="page"> 00044 00045 00046 <!-- START OF HEADER --> 00047 <div id="page-header"> 00048 <div id="page-header-wrapper" class="wrapper clearfix"> 00049 <?php if ($hascustommenu) { ?> 00050 <div id="custommenu"><?php echo $custommenu; ?></div> 00051 <?php } ?> 00052 <div class="headermenu"> 00053 <?php 00054 echo $OUTPUT->login_info(); 00055 echo $OUTPUT->lang_menu(); 00056 echo $PAGE->headingmenu; 00057 ?> 00058 </div> 00059 </div> 00060 </div> 00061 <!-- END OF HEADER --> 00062 00063 <!-- START OF CONTENT --> 00064 <div id="top"> 00065 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 00073 <div id="region-main"> 00074 <div id="newheader"> 00075 <div id="newheaderleft"></div> 00076 <h1 class="headermain"><?php echo $PAGE->heading ?></h1> 00077 <?php if ($hasnavbar) { ?> 00078 <div class="navbutton"> <?php echo $PAGE->button; ?></div> 00079 <?php } ?> 00080 00081 </div> 00082 00083 <?php if ($hasnavbar) { ?> 00084 <div class="navbar"> 00085 <div class="wrapper clearfix"> 00086 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div> 00087 00088 </div> 00089 </div> 00090 <?php } ?> 00091 00092 <div class="region-content"> 00093 00094 00095 00096 <?php echo $OUTPUT->main_content() ?> 00097 </div> 00098 </div> 00099 </div> 00100 00101 <?php if ($hassidepre) { ?> 00102 <div id="region-pre" class="block-region"> 00103 <div class="region-content"> 00104 <?php echo $OUTPUT->blocks_for_region('side-pre') ?> 00105 </div> 00106 </div> 00107 <?php } ?> 00108 00109 <?php if ($hassidepost) { ?> 00110 <div id="region-post" class="block-region"> 00111 <div class="region-content"> 00112 <?php echo $OUTPUT->blocks_for_region('side-post') ?> 00113 </div> 00114 </div> 00115 <?php } ?> 00116 00117 </div> 00118 </div> 00119 </div> 00120 </div> 00121 00122 </div> 00123 <!-- END OF CONTENT --> 00124 00125 00126 </div> 00127 <!-- START OF FOOTER --> 00128 00129 <div id="page-footer" class="wrapper2"> 00130 <p class="helplink"> 00131 <?php echo page_doc_link(get_string('moodledocslink')) ?> 00132 </p> 00133 00134 <?php echo $footnote ?> 00135 00136 <?php 00137 echo $OUTPUT->login_info(); 00138 echo $OUTPUT->home_link(); 00139 echo $OUTPUT->standard_footer_html(); 00140 ?> 00141 </div> 00142 00143 <!-- END OF FOOTER --> 00144 00145 <?php echo $OUTPUT->standard_end_of_body_html() ?> 00146 </body> 00147 </html>