Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/theme/arialist/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 if (!empty($PAGE->theme->settings->tagline)) {
00023     $tagline = '<p>'.$PAGE->theme->settings->tagline.'</p>';
00024 } else {
00025     $tagline = '<!-- There was no custom tagline set -->';
00026 }
00027 if (!empty($PAGE->theme->settings->logo)) {
00028     $logourl = $PAGE->theme->settings->logo;
00029 }
00030 
00031 echo $OUTPUT->doctype() ?>
00032 <html <?php echo $OUTPUT->htmlattributes() ?>>
00033 <head>
00034     <title><?php echo $PAGE->title ?></title>
00035     <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
00036     <meta name="description" content="<?php p(strip_tags(format_text($SITE->summary, FORMAT_HTML))) ?>" />
00037     <?php echo $OUTPUT->standard_head_html() ?>
00038 </head>
00039 
00040 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
00041 <?php echo $OUTPUT->standard_top_of_body_html() ?>
00042 
00043 <?php if ($hascustommenu) { ?>
00044 <div id="custommenu"><?php echo $custommenu; ?></div>
00045 <?php } ?>
00046 
00047 <div id="page">
00048 
00049     <div id="wrapper" class="clearfix">
00050 
00051 <!-- START OF HEADER -->
00052 
00053         <div id="page-header">
00054             <div id="page-header-wrapper" class="wrapper clearfix">
00055 
00056                 <div id="header-left">
00057                     <?php if (!empty($PAGE->theme->settings->logo)) { ?>
00058                         <a href="<?php echo $CFG->wwwroot; ?>" title="Home"><img id="logo" src="<?php echo $logourl; ?>" alt="Logo" /></a>
00059                     <?php } else { ?>
00060                         <h1 class="headermain"><a href="<?php echo $CFG->wwwroot; ?>" title="Home"><?php echo $PAGE->heading ?></a></h1>
00061                         <div class="tagline"><?php echo $tagline; ?></div>
00062                     <?php } ?>
00063                 </div>
00064                 <div class="headermenu">
00065                     <?php
00066                         echo $OUTPUT->login_info();
00067                         echo $OUTPUT->lang_menu();
00068                         echo $PAGE->headingmenu;
00069                     ?>
00070                 </div>
00071             </div>
00072         </div>
00073 
00074 <!-- END OF HEADER -->
00075 
00076 <!-- START OF CONTENT -->
00077 
00078         <div id="page-content-wrapper" class="wrapper clearfix">
00079             <div id="page-content">
00080                 <div id="region-main-box">
00081                     <div id="region-post-box">
00082 
00083                         <div id="region-main-wrap">
00084                             <div id="region-main">
00085                                 <div class="region-content">
00086                                     <?php echo $OUTPUT->main_content() ?>
00087                                 </div>
00088                             </div>
00089                         </div>
00090 
00091                         <?php if ($hassidepost) { ?>
00092                         <div id="region-post" class="block-region">
00093                             <div class="region-content">
00094                                 <?php echo $OUTPUT->blocks_for_region('side-post') ?>
00095                             </div>
00096                         </div>
00097                         <?php } ?>
00098 
00099                     </div>
00100                 </div>
00101             </div>
00102         </div>
00103 
00104 <!-- END OF CONTENT -->
00105 
00106     </div> <!-- END #wrapper -->
00107 
00108 <!-- START OF FOOTER -->
00109     <div id="page-footer" class="wrapper clearfix">
00110            <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
00111         <?php
00112                echo $OUTPUT->login_info();
00113                echo $OUTPUT->home_link();
00114             echo $OUTPUT->standard_footer_html();
00115            ?>
00116        </div>
00117 
00118 <!-- END OF FOOTER -->
00119 
00120 </div> <!-- END #page -->
00121 
00122 <?php echo $OUTPUT->standard_end_of_body_html() ?>
00123 </body>
00124 </html>
 All Data Structures Namespaces Files Functions Variables Enumerations