Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/boxxie/layout/frontpage.php
Go to the documentation of this file.
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 if ($hascustommenu) { ?>
00053         <div id="custommenu"><?php echo $custommenu; ?></div>
00054         <?php } ?>
00055       <?php } ?>
00056     </div>
00057 
00058 <?php } ?>
00059 
00060     <div id="page-content">
00061         <div id="region-main-box">
00062             <div id="region-post-box">
00063 
00064                 <div id="region-main-wrap">
00065                     <div id="region-main">
00066                         <div class="region-content">
00067                             <?php echo $OUTPUT->main_content() ?>
00068                         </div>
00069                     </div>
00070                 </div>
00071 
00072                 <?php if ($hassidepre) { ?>
00073                 <div id="region-pre">
00074                     <div class="region-content">
00075                         <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
00076                     </div>
00077                 </div>
00078                 <?php } ?>
00079 
00080                 <?php if ($hassidepost) { ?>
00081                 <div id="region-post">
00082                     <div class="region-content">
00083                         <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00084                     </div>
00085                 </div>
00086                 <?php } ?>
00087 
00088             </div>
00089         </div>
00090     </div>
00091 
00092     <div class="clearfix"></div>
00093 <?php if ($hasfooter) { ?>
00094 
00095     <div id="page-footer" class="clearfix">
00096       <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00097       <?php echo $OUTPUT->login_info(); ?>
00098     </div>
00099 
00100 
00101 <?php }
00102 
00103 if ($hasheading || $hasnavbar) { ?>
00104 
00105         <div class="myclear"></div>
00106   </div> <!-- END #page -->
00107 
00108 </div> <!-- END #page-wrapper -->
00109 
00110 <?php } ?>
00111 
00112 <div id="page-footer-bottom">
00113 
00114 <?php if ($hasfooter) {
00115   echo $OUTPUT->home_link();
00116   echo $OUTPUT->standard_footer_html();
00117 } ?>
00118 
00119 </div>
00120 
00121 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00122 </body>
00123 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations