Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/anomaly/layout/general.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 $showsidepre = $hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT);
00009 $showsidepost = $hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT);
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 if ($hasnavbar) {
00025     $bodyclasses[] = 'hasnavbar';
00026 }
00027 
00028 echo $OUTPUT->doctype() ?>
00029 <html <?php echo $OUTPUT->htmlattributes() ?>>
00030 <head>
00031     <title><?php echo $PAGE->title ?></title>
00032     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00033     <?php echo $OUTPUT->standard_head_html() ?>
00034 </head>
00035 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00036 <?php echo $OUTPUT->standard_top_of_body_html() ?>
00037 
00038 <div id="page">
00039 <?php if ($hasheading || $hasnavbar) { ?>
00040     <div id="page-header">
00041         <div class="rounded-corner top-left"></div>
00042         <div class="rounded-corner top-right"></div>
00043         <?php if ($hasheading) { ?>
00044         <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
00045         <div class="headermenu"><?php
00046             echo $OUTPUT->login_info();
00047             if (!empty($PAGE->layout_options['langmenu'])) {
00048                 echo $OUTPUT->lang_menu();
00049             }
00050             echo $PAGE->headingmenu
00051         ?></div><?php } ?>
00052 
00053         <?php if ($hascustommenu) { ?>
00054         <div id="custommenu"><?php echo $custommenu; ?></div>
00055                 <?php } ?>
00056 
00057         <?php if ($hasnavbar) { ?>
00058             <div class="navbar clearfix">
00059                 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
00060                 <div class="navbutton"><?php echo $PAGE->button; ?></div>
00061             </div>
00062         <?php } ?>
00063     </div>
00064 <?php } ?>
00065 <!-- END OF HEADER -->
00066 
00067     <div id="page-content">
00068         <div id="region-main-box">
00069             <div id="region-post-box">
00070 
00071                 <div id="region-main-wrap">
00072                     <div id="region-main">
00073                         <div class="region-content">
00074                             <?php echo $OUTPUT->main_content() ?>
00075                         </div>
00076                     </div>
00077                 </div>
00078 
00079                 <?php if ($hassidepre) { ?>
00080                 <div id="region-pre" class="block-region">
00081                     <div class="region-content">
00082                         <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
00083                     </div>
00084                 </div>
00085                 <?php } ?>
00086 
00087                 <?php if ($hassidepost) { ?>
00088                 <div id="region-post" class="block-region">
00089                     <div class="region-content">
00090                         <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00091                     </div>
00092                 </div>
00093                 <?php } ?>
00094 
00095             </div>
00096         </div>
00097     </div>
00098 
00099 <!-- START OF FOOTER -->
00100     <?php if ($hasfooter) { ?>
00101     <div id="page-footer" class="clearfix">
00102         <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00103         <?php
00104         echo $OUTPUT->login_info();
00105         echo $OUTPUT->home_link();
00106         echo $OUTPUT->standard_footer_html();
00107         ?>
00108         <div class="rounded-corner bottom-left"></div>
00109         <div class="rounded-corner bottom-right"></div>
00110     </div>
00111     <?php } ?>
00112   <div class="clearfix"></div>
00113 </div>
00114 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00115 </body>
00116 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations