Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/leatherbound/layout/report.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 $hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
00007 $hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
00008 $custommenu = $OUTPUT->custom_menu();
00009 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
00010 
00011 $bodyclasses = array();
00012 if ($hassidepre && !$hassidepost) {
00013     $bodyclasses[] = 'side-pre-only';
00014 } else if ($hassidepost && !$hassidepre) {
00015     $bodyclasses[] = 'side-post-only';
00016 } else if (!$hassidepost && !$hassidepre) {
00017     $bodyclasses[] = 'content-only';
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     <?php echo $OUTPUT->standard_head_html() ?>
00029 </head>
00030 
00031 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00032 <?php echo $OUTPUT->standard_top_of_body_html() ?>
00033 
00034 <div id="page">
00035 <?php if ($hasheading || $hasnavbar) { ?>
00036     <div id="page-header">
00037         <div id="page-header-wrapper" class="wrapper clearfix">
00038             <?php if ($hasheading) { ?>
00039                 <h1 class="headermain inside"><?php echo $PAGE->heading ?></h1>
00040                 <div class="headermenu"><?php
00041                     echo $OUTPUT->login_info();
00042                         if (!empty($PAGE->layout_options['langmenu'])) {
00043                             echo $OUTPUT->lang_menu();
00044                         }
00045                     echo $PAGE->headingmenu ?>
00046                 </div>
00047             <?php } ?>
00048         </div>
00049     </div>
00050 
00051 <?php if ($hascustommenu) { ?>
00052 <div id="custommenuwrap"><div id="custommenu"><?php echo $custommenu; ?></div></div>
00053 <?php } ?>
00054 
00055         <?php if ($hasnavbar) { ?>
00056             <div class="navbar">
00057                 <div class="wrapper clearfix">
00058                     <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
00059                     <div class="navbutton"> <?php echo $PAGE->button; ?></div>
00060                 </div>
00061             </div>
00062         <?php } ?>
00063 
00064 <?php } ?>
00065 <!-- END OF HEADER -->
00066 
00067 <div id="page-content-wrapper" class="wrapper clearfix">
00068     <div id="page-content">
00069         <div id="report-main-content">
00070             <div class="region-content">
00071                 <?php echo $OUTPUT->main_content() ?>
00072             </div>
00073         </div>
00074         <?php if ($hassidepre) { ?>
00075         <div id="report-region-wrap">
00076             <div id="report-region-pre" class="block-region">
00077                 <div class="region-content">
00078                     <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
00079                 </div>
00080             </div>
00081         </div>
00082         <?php } ?>
00083     </div>
00084 </div>
00085 
00086 <!-- START OF FOOTER -->
00087     <?php if ($hasfooter) { ?>
00088     <div id="page-footer" class="wrapper">
00089         <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00090         <?php
00091         echo $OUTPUT->login_info();
00092         echo $OUTPUT->home_link();
00093         echo $OUTPUT->standard_footer_html();
00094         ?>
00095     </div>
00096     <?php } ?>
00097 </div>
00098 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00099 </body>
00100 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations