Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/brick/layout/general.php
Go to the documentation of this file.
00001 <?php
00002 
00003 $hasheading = ($PAGE->heading);
00004 $hasnavbutton = ($PAGE->button);
00005 $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
00006 $hasfooter = (empty($PAGE->layout_options['nofooter']));
00007 $hassidepost = $PAGE->blocks->region_has_content('side-post', $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 
00014 $bodyclasses = array();
00015 if ($showsidepost) {
00016     $bodyclasses[] = 'side-post-only';
00017 } else if (!$showsidepost) {
00018     $bodyclasses[] = 'content-only';
00019 }
00020 
00021 echo $OUTPUT->doctype() ?>
00022 <html <?php echo $OUTPUT->htmlattributes() ?>>
00023 <head>
00024     <title><?php echo $PAGE->title ?></title>
00025     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00026     <?php echo $OUTPUT->standard_head_html() ?>
00027 </head>
00028 
00029 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00030 <?php echo $OUTPUT->standard_top_of_body_html() ?>
00031 
00032 <!-- START OF HEADER -->
00033 
00034 <div id="page-header">
00035         <div id="header">
00036 
00037                 <?php if (!empty($PAGE->theme->settings->logo)) { ?>
00038 
00039                         <div id="logo">
00040                         </div>
00041 
00042                 <?php } else { ?>
00043 
00044                         <div id="nologo">
00045                                 <?php echo $PAGE->heading ?>
00046                         </div>
00047 
00048                 <?php } ?>
00049 
00050                         <div id="loggedinas">
00051                         <?php if ($hasheading) {
00052                 echo $OUTPUT->lang_menu();
00053                 echo $OUTPUT->login_info();
00054                 echo $PAGE->headingmenu;
00055             } ?>
00056                         </div>
00057 
00058                 <div id="headerbottom">
00059 
00060                         <div id="menu">
00061                                 <?php if ($hascustommenu) { ?>
00062                                         <div id="custommenu"><?php echo $custommenu; ?></div>
00063                                 <?php } ?>
00064                         </div>
00065                         <?php if ($hasheading && !empty($PAGE->theme->settings->logo)) { ?>
00066                                 <div id="headingtitle">
00067                                 <h1><?php echo $PAGE->heading ?></h1>
00068                         </div>
00069                 <?php } ?>
00070 
00071                 </div>
00072 
00073         </div>
00074 </div>
00075 <!-- END OF HEADER -->
00076 
00077 
00078 
00079 
00080 <div id="mypagewrapper">
00081         <div id="page">
00082                 <div id="wrapper" class="clearfix">
00083 
00084 <!-- START OF CONTENT -->
00085 
00086                         <div id="page-content-wrapper" class="wrapper clearfix">
00087                         <div id="page-content">
00088                         <div id="region-main-box">
00089                                 <div id="region-post-box">
00090 
00091                                 <div id="region-main-wrap">
00092                                 <div id="region-main">
00093                                         <div class="region-content">
00094 
00095                                              <?php if ($hasnavbar) { ?>
00096                                                                         <div class="navbar">
00097                                                                                 <div class="wrapper">
00098                                                                                 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
00099                                                                                 </div>
00100                                                                         </div>
00101                                                                         <?php } ?>
00102 
00103                                         <?php echo $OUTPUT->main_content() ?>
00104 
00105                                                 </div>
00106                                         </div>
00107                                 </div>
00108 
00109                                         <?php if ($hassidepost) { ?>
00110 
00111                                 <div id="region-post" class="block-region">
00112                                         <div class="region-content">
00113 
00114                                                 <?php if ($hasnavbutton) { ?>
00115                                                                 <div class="navbutton"><?php echo $PAGE->button; ?></div>
00116                                                 <?php } ?>
00117 
00118                                         <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00119 
00120                                         </div>
00121                                         </div>
00122 
00123                                 <?php } ?>
00124 
00125                         </div>
00126                         </div>
00127                         </div>
00128                 </div>
00129 
00130 <!-- END OF CONTENT -->
00131 
00132 
00133                 </div>
00134         </div>
00135 </div>
00136 
00137 <!-- START OF FOOTER -->
00138 
00139 <?php if ($hasfooter) { ?>
00140         <div id="page-footer" class="wrapper">
00141                 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00142                 <?php
00143         echo $OUTPUT->login_info();
00144                 echo $OUTPUT->home_link();
00145         echo $OUTPUT->standard_footer_html();
00146                 ?>
00147         </div>
00148 <?php } ?>
00149 
00150 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00151 </body>
00152 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations