Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/nonzero/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 
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 if ($hascustommenu) {
00025     $bodyclasses[] = 'has_custom_menu';
00026 }
00027 
00028 
00029 echo $OUTPUT->doctype() ?>
00030 <html <?php echo $OUTPUT->htmlattributes() ?>>
00031 <head>
00032     <title><?php echo $PAGE->title ?></title>
00033     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00034     <meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
00035     <?php echo $OUTPUT->standard_head_html() ?>
00036 </head>
00037 
00038 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00039 <?php echo $OUTPUT->standard_top_of_body_html() ?>
00040 
00041 <div id="page">
00042 
00043 <!-- START OF HEADER -->
00044     <div id="page-header">
00045                 <div id="page-header-wrapper" class="wrapper clearfix">
00046                 <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
00047             <div class="headermenu">
00048                         <?php
00049                             echo $OUTPUT->login_info();
00050                         echo $OUTPUT->lang_menu();
00051                             echo $PAGE->headingmenu;
00052                         ?>
00053                 </div>
00054                 <?php if ($hascustommenu) { ?>
00055 <div id="custommenuwrap"><div id="custommenu"><?php echo $custommenu; ?></div></div>
00056 <?php } ?>
00057             </div>
00058 
00059     </div>
00060 
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                             <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 </div>
00101 <!-- END OF CONTENT -->
00102 
00103 <!-- START OF FOOTER -->
00104 
00105     <div id="page-footer" class="wrapper">
00106         <p class="helplink">
00107         <?php echo page_doc_link(get_string('moodledocslink')) ?>
00108         </p>
00109 
00110         <?php
00111         echo $OUTPUT->login_info();
00112         echo $OUTPUT->home_link();
00113         echo $OUTPUT->standard_footer_html();
00114         ?>
00115     </div>
00116 
00117 <!-- END OF FOOTER -->
00118 
00119 </div>
00120 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00121 </body>
00122 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations