Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/magazine/layout/general.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                                         <?php if ($hasheading && !empty($PAGE->theme->settings->logo)) {
00044                                         echo $PAGE->heading;
00045                                         } ?>
00046                                 </div>
00047                                 <div id="headright">
00048                                 <?php if ($hasheading) {
00049                         echo $OUTPUT->lang_menu();
00050                         echo $OUTPUT->login_info();
00051                         echo $PAGE->headingmenu;
00052                 } ?>
00053                                 </div>
00054 
00055                         </div>
00056                 </div>
00057         </div>
00058 <!-- end of header -->
00059 
00060 <!-- start of logo and menu section -->
00061         <div id="textcontainer-wrap">
00062                 <div id="textcontainer">
00063                 <?php if (!empty($PAGE->theme->settings->logo)) { ?>
00064                         <div class="thetitle">
00065                                 <div class="innertitle">
00066                                 </div>
00067                         </div>
00068                 <?php } else { ?>
00069                         <div id="nologo" <?php if(!$hascustommenu) {echo "class='nomenu'";} ?>>
00070                                 <a href="<?php echo $CFG->wwwroot; ?>" title="Home"><?php echo $PAGE->heading ?></a>
00071                         </div>
00072                         <?php } ?>
00073 
00074                 <div class="rightinfo">
00075                         <div id="menucontainer-wrap">
00076                                 <div id="menucontainer">
00077                                 <?php if ($hascustommenu) { ?>
00078                                         <div id="custommenu"><?php echo $custommenu; ?></div>
00079                                 <?php } ?>
00080 
00081                                         </div>
00082                                 </div>
00083                         </div>
00084 
00085                 </div>
00086         </div>
00087 
00088 <!-- end of logo and menu section -->
00089 
00090 
00091 <!-- start of main content wraps -->
00092         <div id="ie6-container-wrap">
00093                 <div id="outercontainer">
00094                         <div id="container">
00095                                 <div id="innercontainer">
00096 
00097                                         <div id="jcontrols_button">
00098                                                 <div class="jcontrolsleft">
00099                                                 <?php if ($hasnavbar) { ?>
00100                                                 <div class="navbar clearfix">
00101                                                 <div class="breadcrumb"> <?php echo $OUTPUT->navbar();  ?></div>
00102 
00103                                                 </div>
00104                                         <?php } ?>
00105                                                 </div>
00106 
00107                                                 <div class="jcontrolsright">
00108                                                 <?php if ($hasnavbar) {
00109                                                         echo $PAGE->button;
00110                                                 } ?>
00111                                                 </div>
00112                                         </div>
00113 
00114         <!-- start OF moodle CONTENT -->
00115                                 <div id="page-content">
00116                                 <div id="region-main-box">
00117                                 <div id="region-post-box">
00118 
00119                                                 <div id="region-main-wrap">
00120                                                 <div id="region-main">
00121                                                         <div class="region-content">
00122 
00123                                                 <?php echo $OUTPUT->main_content() ?>
00124                                                         </div>
00125                                                 </div>
00126                                                 </div>
00127 
00128                         <?php if ($hassidepre) { ?>
00129                         <div id="region-pre" class="block-region">
00130                         <div class="region-content">
00131 
00132 
00133                                 <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
00134                         </div>
00135                         </div>
00136                         <?php } ?>
00137 
00138                         <?php if ($hassidepost) { ?>
00139                         <div id="region-post" class="block-region">
00140                         <div class="region-content">
00141 
00142                                 <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00143                         </div>
00144                         </div>
00145                         <?php } ?>
00146 
00147                                 </div>
00148                                 </div>
00149                                  </div>
00150     <!-- END OF CONTENT -->
00151 
00152                          <div id="jcontrols_bottom">
00153                         </div>
00154 
00155         <!-- Containers end div above clears both -->
00156                                 </div>
00157                         </div>
00158                 </div>
00159         </div>
00160 
00161 <!-- START OF FOOTER -->
00162         <div id="page-footer">
00163                 <div id="footer-container">
00164                         <div id="footer">
00165 
00166                          <?php if ($hasfooter) {
00167                                 echo "<div class='johndocsleft'>";
00168                         echo $OUTPUT->login_info();
00169                         echo $OUTPUT->home_link();
00170                         echo $OUTPUT->standard_footer_html();
00171                         echo "</div>";
00172                         } ?>
00173 
00174                         <?php if ($hasfooter) { ?>
00175                         <div class="johndocs">
00176                                 <?php echo page_doc_link(get_string('moodledocslink')) ?>
00177                         </div>
00178                         <?php } ?>
00179 
00180                         </div>
00181                 </div>
00182         </div>
00183 
00184 
00185 </div>
00186 
00187 
00188 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00189 </body>
00190 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations