[ Index ] |
PHP Cross Reference of moodle-2.8 |
[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 * Moodle's Clean theme, an example of how to make a Bootstrap theme 19 * 20 * DO NOT MODIFY THIS THEME! 21 * COPY IT FIRST, THEN RENAME THE COPY AND MODIFY IT INSTEAD. 22 * 23 * For full information about creating Moodle themes, see: 24 * http://docs.moodle.org/dev/Themes_2.0 25 * 26 * @package theme_clean 27 * @copyright 2013 Moodle, moodle.org 28 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 29 */ 30 31 // Get the HTML for the settings bits. 32 $html = theme_clean_get_html_for_settings($OUTPUT, $PAGE); 33 34 if (right_to_left()) { 35 $regionbsid = 'region-bs-main-and-post'; 36 } else { 37 $regionbsid = 'region-bs-main-and-pre'; 38 } 39 40 echo $OUTPUT->doctype() ?> 41 <html <?php echo $OUTPUT->htmlattributes(); ?>> 42 <head> 43 <title><?php echo $OUTPUT->page_title(); ?></title> 44 <link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>" /> 45 <?php echo $OUTPUT->standard_head_html() ?> 46 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 47 </head> 48 49 <body <?php echo $OUTPUT->body_attributes(); ?>> 50 51 <?php echo $OUTPUT->standard_top_of_body_html() ?> 52 53 <header role="banner" class="navbar navbar-fixed-top<?php echo $html->navbarclass ?> moodle-has-zindex"> 54 <nav role="navigation" class="navbar-inner"> 55 <div class="container-fluid"> 56 <a class="brand" href="<?php echo $CFG->wwwroot;?>"><?php echo 57 format_string($SITE->shortname, true, array('context' => context_course::instance(SITEID))); 58 ?></a> 59 <a class="btn btn-navbar" data-toggle="workaround-collapse" data-target=".nav-collapse"> 60 <span class="icon-bar"></span> 61 <span class="icon-bar"></span> 62 <span class="icon-bar"></span> 63 </a> 64 <?php echo $OUTPUT->user_menu(); ?> 65 <div class="nav-collapse collapse"> 66 <?php echo $OUTPUT->custom_menu(); ?> 67 <ul class="nav pull-right"> 68 <li><?php echo $OUTPUT->page_heading_menu(); ?></li> 69 </ul> 70 </div> 71 </div> 72 </nav> 73 </header> 74 75 <div id="page" class="container-fluid"> 76 77 <header id="page-header" class="clearfix"> 78 <?php echo $html->heading; ?> 79 <div id="page-navbar" class="clearfix"> 80 <nav class="breadcrumb-nav"><?php echo $OUTPUT->navbar(); ?></nav> 81 <div class="breadcrumb-button"><?php echo $OUTPUT->page_heading_button(); ?></div> 82 </div> 83 <div id="course-header"> 84 <?php echo $OUTPUT->course_header(); ?> 85 </div> 86 </header> 87 88 <div id="page-content" class="row-fluid"> 89 <div id="<?php echo $regionbsid ?>" class="span9"> 90 <div class="row-fluid"> 91 <section id="region-main" class="span8 pull-right"> 92 <?php 93 echo $OUTPUT->course_content_header(); 94 echo $OUTPUT->main_content(); 95 echo $OUTPUT->course_content_footer(); 96 ?> 97 </section> 98 <?php echo $OUTPUT->blocks('side-pre', 'span4 desktop-first-column'); ?> 99 </div> 100 </div> 101 <?php echo $OUTPUT->blocks('side-post', 'span3'); ?> 102 </div> 103 104 <footer id="page-footer"> 105 <div id="course-footer"><?php echo $OUTPUT->course_footer(); ?></div> 106 <p class="helplink"><?php echo $OUTPUT->page_doc_link(); ?></p> 107 <?php 108 echo $html->footnote; 109 echo $OUTPUT->login_info(); 110 echo $OUTPUT->home_link(); 111 echo $OUTPUT->standard_footer_html(); 112 ?> 113 </footer> 114 115 <?php echo $OUTPUT->standard_end_of_body_html() ?> 116 117 </div> 118 </body> 119 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |