[ 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 * A secure layout for the Bootstrapbase theme. 19 * 20 * @package theme_bootstrapbase 21 * @copyright 2012 Bas Brands, www.basbrands.nl 22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 23 */ 24 25 // Set default (LTR) layout mark-up for a three column page. 26 $regionmainbox = 'span9'; 27 $regionmain = 'span8 pull-right'; 28 $sidepre = 'span4 desktop-first-column'; 29 $sidepost = 'span3 pull-right'; 30 // Reset layout mark-up for RTL languages. 31 if (right_to_left()) { 32 $regionmainbox = 'span9 pull-right'; 33 $regionmain = 'span8'; 34 $sidepre = 'span4 pull-right'; 35 $sidepost = 'span3 desktop-first-column'; 36 } 37 38 echo $OUTPUT->doctype() ?> 39 <html <?php echo $OUTPUT->htmlattributes(); ?>> 40 <head> 41 <title><?php echo $OUTPUT->page_title(); ?></title> 42 <link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>" /> 43 <?php echo $OUTPUT->standard_head_html() ?> 44 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 45 </head> 46 47 <body <?php echo $OUTPUT->body_attributes(); ?>> 48 49 <?php echo $OUTPUT->standard_top_of_body_html() ?> 50 51 <header role="banner" class="navbar navbar-fixed-top moodle-has-zindex"> 52 <nav role="navigation" class="navbar-inner"> 53 <div class="container-fluid"> 54 <span class="brand"><?php echo 55 format_string($SITE->shortname, true, array('context' => context_course::instance(SITEID))); 56 ?></span> 57 <?php echo $OUTPUT->navbar_button(); ?> 58 <div class="nav-collapse collapse"> 59 <ul class="nav pull-right"> 60 <li><?php echo $OUTPUT->page_heading_menu(); ?></li> 61 <li class="navbar-text"><?php echo $OUTPUT->login_info(false) ?></li> 62 </ul> 63 </div> 64 </div> 65 </nav> 66 </header> 67 68 <div id="page" class="container-fluid"> 69 70 <header id="page-header" class="clearfix"> 71 <?php echo $OUTPUT->page_heading(); ?> 72 </header> 73 74 <div id="page-content" class="row-fluid"> 75 <div id="region-main-box" class="<?php echo $regionmainbox; ?>"> 76 <div class="row-fluid"> 77 <section id="region-main" class="<?php echo $regionmain; ?>"> 78 <?php echo $OUTPUT->main_content(); ?> 79 </section> 80 <?php echo $OUTPUT->blocks('side-pre', $sidepre); ?> 81 </div> 82 </div> 83 <?php echo $OUTPUT->blocks('side-post', $sidepost); ?> 84 </div> 85 86 <?php echo $OUTPUT->standard_end_of_body_html() ?> 87 88 </div> 89 </body> 90 </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 |