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