Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/brick/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 
00013 $bodyclasses = array();
00014 if ($showsidepost) {
00015     $bodyclasses[] = 'side-post-only';
00016 } else if (!$showsidepost) {
00017     $bodyclasses[] = 'content-only';
00018 }
00019 
00020 echo $OUTPUT->doctype() ?>
00021 <html <?php echo $OUTPUT->htmlattributes() ?>>
00022 <head>
00023     <title><?php echo $PAGE->title ?></title>
00024     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00025     <?php echo $OUTPUT->standard_head_html() ?>
00026 </head>
00027 
00028 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00029 <?php echo $OUTPUT->standard_top_of_body_html() ?>
00030 
00031 <!-- START OF HEADER -->
00032 
00033 <div id="page-header">
00034         <div id="header">
00035 
00036                 <?php if (!empty($PAGE->theme->settings->logo)) { ?>
00037                         <div id="logo">
00038                         </div>
00039                 <?php } else { ?>
00040                         <div id="nologo">
00041                                 <a href="<?php echo $CFG->wwwroot; ?>" title="Home"><?php echo $PAGE->heading ?></a>
00042                         </div>
00043                 <?php } ?>
00044 
00045                 <div id="loggedinas">
00046                         <?php if ($hasheading) {
00047                         echo $OUTPUT->lang_menu();
00048                 echo $OUTPUT->login_info();
00049                         echo $PAGE->headingmenu;
00050             } ?>
00051                 </div>
00052 
00053                 <div id="headerbottom">
00054 
00055                         <div id="menu">
00056                                 <?php if ($hascustommenu) { ?>
00057                                         <div id="custommenu"><?php echo $custommenu; ?></div>
00058                                 <?php } ?>
00059                         </div>
00060 
00061                 </div>
00062 
00063         </div>
00064 </div>
00065 
00066 <!-- END OF HEADER -->
00067 
00068 
00069 
00070 
00071 <div id="mypagewrapper">
00072         <div id="page">
00073                 <div id="wrapper" class="clearfix">
00074 
00075 <!-- START OF CONTENT -->
00076 
00077                         <div id="page-content-wrapper" class="wrapper clearfix">
00078                         <div id="page-content">
00079                         <div id="region-main-box">
00080                                 <div id="region-post-box">
00081 
00082                                 <div id="region-main-wrap">
00083                                 <div id="region-main">
00084                                         <div class="region-content">
00085 
00086                                         <?php echo $OUTPUT->main_content() ?>
00087                                                 </div>
00088                                         </div>
00089                                 </div>
00090 
00091                                         <?php if ($hassidepost) { ?>
00092                                 <div id="region-post" class="block-region">
00093                                         <div class="region-content">
00094 
00095                                         <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00096 
00097                                         </div>
00098                                         </div>
00099                                 <?php } ?>
00100 
00101                         </div>
00102                         </div>
00103                         </div>
00104                 </div>
00105 
00106 <!-- END OF CONTENT -->
00107 
00108 
00109                 </div>
00110         </div>
00111 </div>
00112 
00113 <!-- START OF FOOTER -->
00114 
00115 <?php if ($hasfooter) { ?>
00116         <div id="page-footer" class="wrapper">
00117                 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00118                 <?php
00119         echo $OUTPUT->login_info();
00120                 echo $OUTPUT->home_link();
00121         echo $OUTPUT->standard_footer_html();
00122                 ?>
00123         </div>
00124 <?php } ?>
00125 
00126 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00127 </body>
00128 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations