Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/nimble/layout/frontpage.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 $hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
00007 $showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT));
00008 
00009 $custommenu = $OUTPUT->custom_menu();
00010 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
00011 
00012 $bodyclasses = array();
00013 if ($showsidepost) {
00014     $bodyclasses[] = 'side-post-only';
00015 } else if (!$showsidepost) {
00016     $bodyclasses[] = 'content-only';
00017 }
00018 if ($hascustommenu) {
00019     $bodyclasses[] = 'has_custom_menu';
00020 }
00021 
00022 
00023 if (!empty($PAGE->theme->settings->tagline)) {
00024     $tagline = $PAGE->theme->settings->tagline;
00025 } else {
00026     $tagline = "Another Moodle Theme";
00027 }
00028 
00029 if (!empty($PAGE->theme->settings->footerline)) {
00030     $footnote = $PAGE->theme->settings->footerline;
00031 } else {
00032     $footnote = '<!-- There was no custom footnote set -->';
00033 }
00034 
00035 echo $OUTPUT->doctype() ?>
00036 <html <?php echo $OUTPUT->htmlattributes() ?>>
00037 <head>
00038     <title><?php echo $PAGE->title ?></title>
00039     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00040     <meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
00041     <?php echo $OUTPUT->standard_head_html() ?>
00042 </head>
00043 
00044 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00045 <?php echo $OUTPUT->standard_top_of_body_html() ?>
00046 
00047 <div id="page">
00048 
00049   <div id="page-wrap1">
00050     <div id="page-wrap2">
00051 
00052         <div id="wrapper" class="clearfix">
00053 
00054 <!-- START OF HEADER -->
00055 
00056             <div id="page-header">
00057                         <div id="page-header-wrapper" class="wrapper clearfix">
00058 
00059                     <div id="headermenus" class="shrinkwrapper clearfix">
00060 
00061                             <?php if ($hascustommenu) { ?>
00062                                                 <div id="custommenu"><?php echo $custommenu; ?></div>
00063                                         <?php } else { ?>
00064                                                 <div id="custommenu" style="line-height:1em;">&nbsp;</div> <!-- temporary until I find a better fix -->
00065                                         <?php } ?>
00066 
00067                         <div class="headermenu">
00068                                         <?php
00069                                         echo $OUTPUT->login_info();
00070                                     echo $PAGE->headingmenu;
00071                                         echo $OUTPUT->lang_menu();
00072                                     ?>
00073                                 </div>
00074 
00075                         </div>
00076 
00077                 </div>
00078             </div>
00079 
00080 <!-- END OF HEADER -->
00081 
00082 <!-- START OF CONTENT -->
00083 
00084                 <div id="page-content-wrapper" class="shrinkwrapper clearfix">
00085                     <div id="page-content">
00086                     <div id="region-main-box">
00087                             <div id="region-post-box">
00088 
00089                             <div id="region-main-wrap">
00090                                     <div id="region-main">
00091                                     <div class="region-content">
00092 
00093                                                                         <div id="region-header" class="clearfix">
00094                                                                     <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
00095                                                                     <p class="tagline"><?php echo $tagline ?></p>
00096                                                                 </div>
00097 
00098                                             <?php echo $OUTPUT->main_content() ?>
00099 
00100                                         </div>
00101                                 </div>
00102                                 </div>
00103 
00104                         <?php if ($hassidepost) { ?>
00105                             <div id="region-post" class="block-region">
00106                                 <div id="region-post-wrap-1">
00107                                         <div id="region-post-wrap-2">
00108                                             <div class="region-content">
00109                                                     <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00110                                                 </div>
00111                                                 </div>
00112                                         </div>
00113                                 </div>
00114                             <?php } ?>
00115 
00116                         </div>
00117                     </div>
00118                 </div>
00119         </div>
00120 
00121 <!-- END OF CONTENT -->
00122 
00123         </div> <!-- END #wrapper -->
00124 
00125                 </div>
00126         </div>
00127 
00128 <!-- START OF FOOTER -->
00129     <div id="page-footer" class="wrapper clearfix">
00130     <?php echo $footnote ?>
00131             <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00132         <?php
00133                     echo $OUTPUT->login_info();
00134                 echo $OUTPUT->home_link();
00135                 echo $OUTPUT->standard_footer_html();
00136             ?>
00137         </div>
00138 
00139 <!-- END OF FOOTER -->
00140 
00141 
00142 </div> <!-- END #page -->
00143 
00144 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00145 </body>
00146 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations