Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/canvas/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 $bodyclasses = array();
00010 if ($hassidepre && !$hassidepost) {
00011     $bodyclasses[] = 'side-pre-only';
00012 } else if ($hassidepost && !$hassidepre) {
00013     $bodyclasses[] = 'side-post-only';
00014 } else if (!$hassidepost && !$hassidepre) {
00015     $bodyclasses[] = 'content-only';
00016 }
00017 
00018 echo $OUTPUT->doctype() ?>
00019 <html <?php echo $OUTPUT->htmlattributes() ?>>
00020 <head>
00021     <title><?php echo $PAGE->title ?></title>
00022     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00023     <meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
00024     <?php echo $OUTPUT->standard_head_html() ?>
00025 </head>
00026 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00027 <?php echo $OUTPUT->standard_top_of_body_html() ?>
00028 
00029 <div id="page">
00030 
00031 <!-- START OF HEADER -->
00032 
00033         <div id="wrapper" class="clearfix">
00034 
00035         <div id="page-header">
00036                         <div id="page-header-wrapper" class="clearfix">
00037                         <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
00038                     <div class="headermenu">
00039                         <?php
00040                             echo $OUTPUT->login_info();
00041                         echo $OUTPUT->lang_menu();
00042                                     echo $PAGE->headingmenu;
00043                                 ?>
00044                         </div>
00045                 </div>
00046             </div>
00047 
00048         <div class="clearer"></div> <!-- temporarily added on 06/25/10 -->
00049 
00050 <!-- END OF HEADER -->
00051 
00052 <!-- START OF CONTENT -->
00053 
00054                 <div id="page-content-wrapper" class="clearfix">
00055                 <div id="page-content">
00056                     <div id="region-main-box">
00057                     <div id="region-post-box">
00058 
00059                             <div id="region-main-wrap">
00060                             <div id="region-main">
00061                                     <div class="region-content">
00062                                     <?php echo $OUTPUT->main_content() ?>
00063                                         </div>
00064                                     </div>
00065                             </div>
00066 
00067                                 <?php if ($hassidepre) { ?>
00068                             <div id="region-pre">
00069                                     <div class="region-content">
00070                                     <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
00071                                     </div>
00072                             </div>
00073                                 <?php } ?>
00074 
00075                                 <?php if ($hassidepost) { ?>
00076                             <div id="region-post">
00077                                     <div class="region-content">
00078                                     <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00079                                     </div>
00080                                 </div>
00081                             <?php } ?>
00082 
00083                             </div>
00084                     </div>
00085                     </div>
00086                 </div>
00087 
00088 <!-- END OF CONTENT -->
00089 
00090 <!-- START OF FOOTER -->
00091 
00092             <div id="page-footer">
00093             <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00094 
00095                 <?php
00096                         echo $OUTPUT->login_info();
00097                     echo $OUTPUT->home_link();
00098                         echo $OUTPUT->standard_footer_html();
00099                 ?>
00100         </div>
00101 
00102 <!-- END OF FOOTER -->
00103 
00104         </div> <!-- END #wrapper -->
00105 
00106 </div><!-- END #page -->
00107 
00108 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00109 </body>
00110 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations