[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * The report layout for the base theme. 19 * 20 * @package theme_base 21 * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} 22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 23 */ 24 25 $hasheading = ($PAGE->heading); 26 $hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar()); 27 $hasfooter = (empty($PAGE->layout_options['nofooter'])); 28 $hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT)); 29 $haslogininfo = (empty($PAGE->layout_options['nologininfo'])); 30 31 $showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT)); 32 33 $custommenu = $OUTPUT->custom_menu(); 34 $hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu)); 35 36 $bodyclasses = array(); 37 if (!$showsidepre) { 38 $bodyclasses[] = 'content-only'; 39 } 40 if ($hascustommenu) { 41 $bodyclasses[] = 'has_custom_menu'; 42 } 43 $courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = ''; 44 if (empty($PAGE->layout_options['nocourseheaderfooter'])) { 45 $courseheader = $OUTPUT->course_header(); 46 $coursecontentheader = $OUTPUT->course_content_header(); 47 if (empty($PAGE->layout_options['nocoursefooter'])) { 48 $coursecontentfooter = $OUTPUT->course_content_footer(); 49 $coursefooter = $OUTPUT->course_footer(); 50 } 51 } 52 53 echo $OUTPUT->doctype() ?> 54 <html <?php echo $OUTPUT->htmlattributes() ?>> 55 <head> 56 <title><?php echo $PAGE->title ?></title> 57 <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" /> 58 <?php echo $OUTPUT->standard_head_html() ?> 59 </head> 60 <body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>"> 61 <?php echo $OUTPUT->standard_top_of_body_html() ?> 62 <div id="page"> 63 <?php if ($hasheading || $hasnavbar || !empty($courseheader)) { ?> 64 <div id="page-header"> 65 <?php if ($hasheading) { ?> 66 <h1 class="headermain"><?php echo $PAGE->heading ?></h1> 67 <div class="headermenu"><?php 68 if ($haslogininfo) { 69 echo $OUTPUT->login_info(); 70 } 71 if (!empty($PAGE->layout_options['langmenu'])) { 72 echo $OUTPUT->lang_menu(); 73 } 74 echo $PAGE->headingmenu 75 ?></div><?php } ?> 76 <?php if (!empty($courseheader)) { ?> 77 <div id="course-header"><?php echo $courseheader; ?></div> 78 <?php } ?> 79 <?php if ($hascustommenu) { ?> 80 <div id="custommenu"><?php echo $custommenu; ?></div> 81 <?php } ?> 82 <?php if ($hasnavbar) { ?> 83 <div class="navbar clearfix"> 84 <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div> 85 <div class="navbutton"> <?php echo $PAGE->button; ?></div> 86 </div> 87 <?php } ?> 88 </div> 89 <?php } ?> 90 <!-- END OF HEADER --> 91 92 <div id="page-content" class="clearfix"> 93 <div id="report-main-content"> 94 <div class="region-content"> 95 <?php echo $coursecontentheader; ?> 96 <?php echo $OUTPUT->main_content() ?> 97 <?php echo $coursecontentfooter; ?> 98 </div> 99 </div> 100 <?php if ($hassidepre) { ?> 101 <div id="report-region-wrap"> 102 <div id="report-region-pre" class="block-region"> 103 <div class="region-content"> 104 <?php echo $OUTPUT->blocks_for_region('side-pre') ?> 105 </div> 106 </div> 107 </div> 108 <?php } ?> 109 </div> 110 111 <!-- START OF FOOTER --> 112 <?php if (!empty($coursefooter)) { ?> 113 <div id="course-footer"><?php echo $coursefooter; ?></div> 114 <?php } ?> 115 <?php if ($hasfooter) { ?> 116 <div id="page-footer" class="clearfix"> 117 <p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p> 118 <?php 119 echo $OUTPUT->login_info(); 120 echo $OUTPUT->home_link(); 121 echo $OUTPUT->standard_footer_html(); 122 ?> 123 </div> 124 <?php } ?> 125 <div class="clearfix"></div> 126 </div> 127 <?php echo $OUTPUT->standard_end_of_body_html() ?> 128 </body> 129 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |