Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/magazine/layout/frontpage.php
Go to the documentation of this file.
00001 <?php
00002 $hasheading = ($PAGE->heading);
00003 $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
00004 $hasfooter = (empty($PAGE->layout_options['nofooter']));
00005 $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
00006 $hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
00007 $showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT);
00008 $showsidepost = $hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT);
00009 
00010 $custommenu = $OUTPUT->custom_menu();
00011 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
00012 
00013 $bodyclasses = array();
00014 if ($showsidepre && !$showsidepost) {
00015     $bodyclasses[] = 'side-pre-only';
00016 } else if ($showsidepost && !$showsidepre) {
00017     $bodyclasses[] = 'side-post-only';
00018 } else if (!$showsidepost && !$showsidepre) {
00019     $bodyclasses[] = 'content-only';
00020 }
00021 if ($hascustommenu) {
00022     $bodyclasses[] = 'has_custom_menu';
00023 }
00024 
00025 echo $OUTPUT->doctype() ?>
00026 <html <?php echo $OUTPUT->htmlattributes() ?>>
00027 <head>
00028     <title><?php echo $PAGE->title ?></title>
00029     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00030     <?php echo $OUTPUT->standard_head_html() ?>
00031 </head>
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 <!-- start of header -->
00038         <div id="page-header">
00039                 <div id="header-container">
00040                         <div id="headerinner">
00041 
00042                                 <div id="headleft">
00043                                 </div>
00044                                 <div id="headright">
00045                                 <?php if ($hasheading) {
00046                         echo $OUTPUT->lang_menu();
00047                         echo $OUTPUT->login_info();
00048                         echo $PAGE->headingmenu;
00049                 } ?>
00050                                 </div>
00051 
00052                         </div>
00053                 </div>
00054         </div>
00055 <!-- end of header -->
00056 
00057 <!-- start of logo and menu section -->
00058         <div id="textcontainer-wrap">
00059                 <div id="textcontainer">
00060                 <?php if (!empty($PAGE->theme->settings->logo)) { ?>
00061                         <div class="thetitle">
00062                                 <div class="innertitle">
00063                                 </div>
00064                         </div>
00065                 <?php } else { ?>
00066 
00067 
00068                         <div id="nologo" <?php if(!$hascustommenu) {echo "class='nomenu'";} ?>>
00069                                 <a href="<?php echo $CFG->wwwroot; ?>" title="Home"><?php echo $PAGE->heading ?></a>
00070                         </div>
00071                         <?php } ?>
00072 
00073                 <div class="rightinfo">
00074                         <div id="menucontainer-wrap">
00075                                 <div id="menucontainer">
00076                                 <?php if ($hascustommenu) { ?>
00077                                         <div id="custommenu"><?php echo $custommenu; ?></div>
00078                                 <?php } ?>
00079 
00080                                         </div>
00081                                 </div>
00082                         </div>
00083 
00084                 </div>
00085         </div>
00086 
00087 <!-- end of logo and menu section -->
00088 
00089 
00090 <!-- start of main content wraps -->
00091         <div id="ie6-container-wrap">
00092                 <div id="outercontainer">
00093                         <div id="container">
00094                                 <div id="innercontainer">
00095 
00096                                         <div id="jcontrols_button">
00097                                                 <div class="jcontrolsleft">
00098                                                 <?php if ($hasnavbar) { ?>
00099                                                 <div class="navbar clearfix">
00100                                                 <div class="breadcrumb"> <?php echo $OUTPUT->navbar();  ?></div>
00101 
00102                                                 </div>
00103                                         <?php } ?>
00104                                                 </div>
00105 
00106                                                 <div class="jcontrolsright">
00107                                                 <?php if ($hasnavbar) {
00108                                                         echo $PAGE->button;
00109                                                 } ?>
00110                                                 </div>
00111                                         </div>
00112 
00113         <!-- start OF moodle CONTENT -->
00114                                 <div id="page-content">
00115                                 <div id="region-main-box">
00116                                 <div id="region-post-box">
00117 
00118                                                 <div id="region-main-wrap">
00119                                                 <div id="region-main">
00120                                                         <div class="region-content">
00121 
00122                                                 <?php echo $OUTPUT->main_content() ?>
00123                                                         </div>
00124                                                 </div>
00125                                                 </div>
00126 
00127                         <?php if ($hassidepre) { ?>
00128                         <div id="region-pre" class="block-region">
00129                         <div class="region-content">
00130 
00131 
00132                                 <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
00133                         </div>
00134                         </div>
00135                         <?php } ?>
00136 
00137                         <?php if ($hassidepost) { ?>
00138                         <div id="region-post" class="block-region">
00139                         <div class="region-content">
00140 
00141                                 <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00142                         </div>
00143                         </div>
00144                         <?php } ?>
00145 
00146                                 </div>
00147                                 </div>
00148                                  </div>
00149     <!-- END OF CONTENT -->
00150 
00151                          <div id="jcontrols_bottom">
00152                         </div>
00153 
00154         <!-- Containers end div above clears both -->
00155                                 </div>
00156                         </div>
00157                 </div>
00158         </div>
00159 
00160 <!-- START OF FOOTER -->
00161         <div id="page-footer">
00162                 <div id="footer-container">
00163                         <div id="footer">
00164 
00165                          <?php if ($hasfooter) {
00166                                 echo "<div class='johndocsleft'>";
00167                         echo $OUTPUT->login_info();
00168                         echo $OUTPUT->home_link();
00169                         echo $OUTPUT->standard_footer_html();
00170                         echo "</div>";
00171                         } ?>
00172 
00173                         <?php if ($hasfooter) { ?>
00174                         <div class="johndocs">
00175                                 <?php echo page_doc_link(get_string('moodledocslink')) ?>
00176                         </div>
00177                         <?php } ?>
00178 
00179                         </div>
00180                 </div>
00181         </div>
00182 
00183 
00184 </div>
00185 
00186 
00187 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00188 </body>
00189 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations