[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/theme/bootstrapbase/layout/ -> columns2.php (source)

   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 two column 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  $left = (!right_to_left());  // To know if to add 'pull-right' and 'desktop-first-column' classes in the layout for LTR.
  26  echo $OUTPUT->doctype() ?>
  27  <html <?php echo $OUTPUT->htmlattributes(); ?>>
  28  <head>
  29      <title><?php echo $OUTPUT->page_title(); ?></title>
  30      <link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>" />
  31      <?php echo $OUTPUT->standard_head_html() ?>
  32      <meta name="viewport" content="width=device-width, initial-scale=1.0">
  33  </head>
  34  
  35  <body <?php echo $OUTPUT->body_attributes('two-column'); ?>>
  36  
  37  <?php echo $OUTPUT->standard_top_of_body_html() ?>
  38  
  39  <header role="banner" class="navbar navbar-fixed-top moodle-has-zindex">
  40      <nav role="navigation" class="navbar-inner">
  41          <div class="container-fluid">
  42              <a class="brand" href="<?php echo $CFG->wwwroot;?>"><?php echo
  43                  format_string($SITE->shortname, true, array('context' => context_course::instance(SITEID)));
  44                  ?></a>
  45              <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  46                  <span class="icon-bar"></span>
  47                  <span class="icon-bar"></span>
  48                  <span class="icon-bar"></span>
  49              </a>
  50              <?php echo $OUTPUT->user_menu(); ?>
  51              <div class="nav-collapse collapse">
  52                  <?php echo $OUTPUT->custom_menu(); ?>
  53                  <ul class="nav pull-right">
  54                      <li><?php echo $OUTPUT->page_heading_menu(); ?></li>
  55                  </ul>
  56              </div>
  57          </div>
  58      </nav>
  59  </header>
  60  
  61  <div id="page" class="container-fluid">
  62  
  63      <header id="page-header" class="clearfix">
  64          <div id="page-navbar" class="clearfix">
  65              <nav class="breadcrumb-nav"><?php echo $OUTPUT->navbar(); ?></nav>
  66              <div class="breadcrumb-button"><?php echo $OUTPUT->page_heading_button(); ?></div>
  67          </div>
  68          <?php echo $OUTPUT->page_heading(); ?>
  69          <div id="course-header">
  70              <?php echo $OUTPUT->course_header(); ?>
  71          </div>
  72      </header>
  73  
  74      <div id="page-content" class="row-fluid">
  75          <section id="region-main" class="span9<?php if ($left) { echo ' pull-right'; } ?>">
  76              <?php
  77              echo $OUTPUT->course_content_header();
  78              echo $OUTPUT->main_content();
  79              echo $OUTPUT->course_content_footer();
  80              ?>
  81          </section>
  82          <?php
  83          $classextra = '';
  84          if ($left) {
  85              $classextra = ' desktop-first-column';
  86          }
  87          echo $OUTPUT->blocks('side-pre', 'span3'.$classextra);
  88          ?>
  89      </div>
  90  
  91      <footer id="page-footer">
  92          <div id="course-footer"><?php echo $OUTPUT->course_footer(); ?></div>
  93          <p class="helplink"><?php echo $OUTPUT->page_doc_link(); ?></p>
  94          <?php
  95          echo $OUTPUT->login_info();
  96          echo $OUTPUT->home_link();
  97          echo $OUTPUT->standard_footer_html();
  98          ?>
  99      </footer>
 100  
 101      <?php echo $OUTPUT->standard_end_of_body_html() ?>
 102  
 103  </div>
 104  </body>
 105  </html>


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1