Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/fusion/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->footertext)) {
00030     $footnote = $PAGE->theme->settings->footertext;
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="clearfix">
00060                         <div class="headermenu clearfix">
00061                                         <?php
00062                                         echo $OUTPUT->lang_menu();
00063                                         echo $OUTPUT->login_info();
00064                                     echo $PAGE->headingmenu;
00065                                     ?>
00066                                 </div>
00067                             <?php if ($hascustommenu) { ?>
00068                                                 <div id="custommenu"><?php echo $custommenu; ?></div>
00069                                         <?php } else { ?>
00070                                                 <div id="custommenu" style="line-height:1em;">&nbsp;</div> <!-- temporary until I find a better fix -->
00071                                         <?php } ?>
00072 
00073                         </div>
00074 
00075                 </div>
00076             </div>
00077 
00078 <!-- END OF HEADER -->
00079 
00080 <!-- START OF CONTENT -->
00081 
00082                 <div id="page-content-wrapper" class="wrapper clearfix">
00083                     <div id="page-content">
00084                     <div id="region-main-box">
00085                             <div id="region-post-box">
00086 
00087                             <div id="region-main-wrap">
00088                                     <div id="region-main">
00089                                     <div class="region-content">
00090 
00091                                                                         <div id="region-header">
00092                                                                     <h1 class="headermain"><?php echo $PAGE->heading ?></h1>
00093                                                                     <p class="tagline"><?php echo $tagline ?></p>
00094                                                                 </div>
00095 
00096                                             <?php echo $OUTPUT->main_content() ?>
00097 
00098                                         </div>
00099                                 </div>
00100                                 </div>
00101 
00102                         <?php if ($hassidepost) { ?>
00103                             <div id="region-post" class="block-region">
00104                                 <div id="region-post-wrap-1">
00105                                         <div id="region-post-wrap-2">
00106                                             <div class="region-content">
00107                                                     <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00108                                                 </div>
00109                                                 </div>
00110                                         </div>
00111                                 </div>
00112                             <?php } ?>
00113 
00114                         </div>
00115                     </div>
00116                 </div>
00117         </div>
00118 
00119 <!-- END OF CONTENT -->
00120 
00121         </div> <!-- END #wrapper -->
00122 
00123                 </div>
00124         </div>
00125 
00126 <!-- START OF FOOTER -->
00127     <div id="page-footer" class="wrapper clearfix">
00128     <?php echo $footnote ?>
00129             <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00130         <?php
00131                     echo $OUTPUT->login_info();
00132                 echo $OUTPUT->home_link();
00133                 echo $OUTPUT->standard_footer_html();
00134             ?>
00135         </div>
00136 
00137 <!-- END OF FOOTER -->
00138 
00139 
00140 </div> <!-- END #page -->
00141 
00142 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00143 </body>
00144 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations