Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/leatherbound/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 $custommenu = $OUTPUT->custom_menu();
00013 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
00014 
00015 $bodyclasses = array();
00016 if ($showsidepre && !$showsidepost) {
00017     $bodyclasses[] = 'side-pre-only';
00018 } else if ($showsidepost && !$showsidepre) {
00019     $bodyclasses[] = 'side-post-only';
00020 } else if (!$showsidepost && !$showsidepre) {
00021     $bodyclasses[] = 'content-only';
00022 }
00023 if ($hascustommenu) {
00024     $bodyclasses[] = 'has_custom_menu';
00025 }
00026 
00027 echo $OUTPUT->doctype() ?>
00028 <html <?php echo $OUTPUT->htmlattributes() ?>>
00029 <head>
00030     <title><?php echo $PAGE->title ?></title>
00031     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00032     <meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
00033     <?php echo $OUTPUT->standard_head_html() ?>
00034 </head>
00035 
00036 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00037 <?php echo $OUTPUT->standard_top_of_body_html() ?>
00038 
00039 <div id="page">
00040 
00041 <!-- START OF HEADER -->
00042     <div id="page-header">
00043                 <div id="page-header-wrapper" class="wrapper clearfix">
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             </div>
00053     </div>
00054 
00055 <!-- END OF HEADER -->
00056 
00057 <?php if ($hascustommenu) { ?>
00058 <div id="custommenuwrap"><div id="custommenu"><?php echo $custommenu; ?></div></div>
00059 <?php } ?>
00060 
00061 <!-- START OF CONTENT -->
00062 
00063 <div id="page-content-wrapper" class="wrapper clearfix">
00064 
00065 
00066 
00067 
00068     <div id="page-content">
00069         <div id="region-main-box">
00070             <div id="region-post-box">
00071 
00072                 <div id="region-main-wrap">
00073                     <div id="region-main">
00074                         <div class="region-content">
00075                             <?php echo $OUTPUT->main_content() ?>
00076                         </div>
00077                     </div>
00078                 </div>
00079 
00080                 <?php if ($hassidepre) { ?>
00081                 <div id="region-pre" class="block-region">
00082                     <div class="region-content">
00083                         <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
00084                     </div>
00085                 </div>
00086                 <?php } ?>
00087 
00088                 <?php if ($hassidepost) { ?>
00089                 <div id="region-post" class="block-region">
00090                     <div class="region-content">
00091                         <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00092                     </div>
00093                 </div>
00094                 <?php } ?>
00095 
00096             </div>
00097         </div>
00098     </div>
00099 </div>
00100 
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