[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1