--- /dev/null
+<?php
+
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+
+
+/**
+ * Configuration for Moodle's standard theme.
+ *
+ * DO NOT COPY THIS INTO NEW THEMES! Instead use some other theme as a base
+ * for your experiments.
+ *
+ * Options related to theme customisations can be found at
+ * http://phpdocs.moodle.org/HEAD/moodlecore/theme_config.html
+ *
+ * For an overview of how Moodle themes work, Please see
+ * http://docs.moodle.org/en/Developement:How_Moodle_outputs_HTML
+ *
+ * @package moodlecore
+ * @copyright 2009 Tim Hunt
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+
+$THEME->parents = array('base');
+
+$THEME->sheets = array(
+ 'core',
+ 'block_calendar_month',
+);
+
+$THEME->editor_sheets = array();
+
+
+$THEME->layouts = array(
+ // Most backwards compatible layout without the blocks - this is the layout used by default
+ 'base' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array(),
+ ),
+ // Standard layout with blocks, this is recommended for most pages with general information
+ 'standard' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array('side-pre', 'side-post'),
+ 'defaultregion' => 'side-post',
+ ),
+ // Main course page
+ 'course' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array('side-pre', 'side-post'),
+ 'defaultregion' => 'side-post',
+ 'options' => array('langmenu'=>true),
+ ),
+ 'coursecategory' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array('side-pre', 'side-post'),
+ 'defaultregion' => 'side-post',
+ ),
+ // part of course, typical for modules - default page layout if $cm specified in require_login()
+ 'incourse' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array('side-pre', 'side-post'),
+ 'defaultregion' => 'side-post',
+ ),
+ // The site home page.
+ 'frontpage' => array(
+ 'theme' => 'experiment',
+ 'file' => 'frontpage.php',
+ 'regions' => array('side-pre', 'side-post'),
+ 'defaultregion' => 'side-post',
+ ),
+ // Server administration scripts.
+ 'admin' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array('side-pre'),
+ 'defaultregion' => 'side-pre',
+ ),
+ // My dashboard page
+ 'mydashboard' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array('side-pre', 'side-post'),
+ 'defaultregion' => 'side-post',
+ ),
+ // My public page
+ 'mypublic' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array('side-pre', 'side-post'),
+ 'defaultregion' => 'side-post',
+ ),
+ 'login' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array(),
+ 'options' => array('langmenu'=>true),
+ ),
+ // Pages that appear in pop-up windows - no navigation, no blocks, no header.
+ 'popup' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array(),
+ 'options' => array('nofooter'=>true),
+ ),
+ // No blocks and minimal footer - used for legacy frame layouts only!
+ 'frametop' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array(),
+ 'options' => array('nofooter'=>true),
+ ),
+ // Embeded pages, like iframe/object embeded in moodleform - it needs as much space as possible
+ 'embedded' => array(
+ 'theme' => 'experiment',
+ 'file' => 'embedded.php',
+ 'regions' => array(),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ ),
+ // Used during upgrade and install, and for the 'This site is undergoing maintenance' message.
+ // This must not have any blocks, and it is good idea if it does not have links to
+ // other places - for example there should not be a home link in the footer...
+ 'maintenance' => array(
+ 'theme' => 'experiment',
+ 'file' => 'general.php',
+ 'regions' => array(),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true),
+ ),
+);
+
+/** List of javascript files that need to included on each page */
+$THEME->javascripts = array('navigation');
--- /dev/null
+<?php
+
+$regionsinfo = 'pagelayout';
+if ($PAGE->blocks->region_has_content('side-pre', $OUTPUT)) {
+ $regionsinfo .= '-pre';
+}
+if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) {
+ $regionsinfo .= '-post';
+}
+
+echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+ <title><?php echo $PAGE->title ?></title>
+ <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
+ <meta name="description" content="<?php echo strip_tags(format_text($SITE->summary, FORMAT_HTML)) ?>" />
+ <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+<body id="<?php echo $PAGE->pagetype ?>" class="<?php echo $PAGE->bodyclasses ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+
+<div id="page" class="<?php echo $regionsinfo ?>">
+
+ <div id="header-home" class="clearfix">
+ <div class="headermain"><h1><?php echo $PAGE->heading ?></h1></div>
+ <div class="headermenu"><?php
+ echo $OUTPUT->login_info();
+ echo $OUTPUT->lang_menu();
+ echo $PAGE->headingmenu;
+ ?></div>
+ <div class="navbar clearfix"> </div>
+ </div>
+<!-- END OF HEADER -->
+
+ <div class="regions-outer clearfix">
+ <div id="regions">
+ <div class="regions-inner">
+ <div class="contentwrap">
+ <div id="content">
+ <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+ </div>
+ </div>
+ <?php if ($PAGE->blocks->region_has_content('side-pre', $OUTPUT)) { ?>
+ <div id="region-side-pre" class="block-region">
+ <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
+ </div>
+ <?php } ?>
+ <?php if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) { ?>
+ <div id="region-side-post" class="block-region">
+ <?php echo $OUTPUT->blocks_for_region('side-post') ?>
+ </div>
+ <?php } ?>
+ </div>
+ </div>
+ </div>
+
+<!-- START OF FOOTER -->
+ <div id="footer" class="clearfix">
+ <div class="homeinfo">
+ <?php echo $OUTPUT->home_link() ?>
+ </div>
+ <?php echo $OUTPUT->login_info() ?>
+ <div class="debuginfo">
+ <?php echo $OUTPUT->standard_footer_html() ?>
+ </div>
+
+ </div>
+</div>
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file
--- /dev/null
+<?php
+
+$regionsinfo = 'pagelayout';
+if ($PAGE->blocks->region_has_content('side-pre', $OUTPUT)) {
+ $regionsinfo .= '-pre';
+}
+if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) {
+ $regionsinfo .= '-post';
+}
+
+echo $OUTPUT->doctype() ?>
+<html <?php echo $OUTPUT->htmlattributes() ?>>
+<head>
+ <title><?php echo $PAGE->title ?></title>
+ <link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
+ <?php echo $OUTPUT->standard_head_html() ?>
+</head>
+<body id="<?php echo $PAGE->pagetype ?>" class="<?php echo $PAGE->bodyclasses ?>">
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+
+<div id="page" class="<?php echo $regionsinfo ?>">
+
+ <div id="header" class="clearfix">
+ <?php if ($PAGE->heading) { ?>
+ <div class="headermain"><h1><?php echo $PAGE->heading ?></h1></div>
+ <?php } ?>
+ <div class="headermenu"><?php
+ echo $OUTPUT->login_info();
+ if (!empty($PAGE->layout_options['langmenu'])) {
+ echo $OUTPUT->lang_menu();
+ }
+ echo $PAGE->headingmenu;
+ ?></div>
+
+ <?php if (empty($PAGE->layout_options['nonavbar']) and $PAGE->has_navbar()) { // This is the navigation bar with breadcrumbs ?>
+ <div class="navbar clearfix">
+ <div class="breadcrumb"><?php echo $OUTPUT->navbar(); ?></div>
+ <div class="navbutton"><?php echo $PAGE->button; ?></div>
+ </div>
+ <?php } else { ?>
+ <div class="navbar clearfix"> </div>
+ <?php } ?>
+ </div>
+<!-- END OF HEADER -->
+
+ <div class="regions-outer clearfix">
+ <div id="regions">
+ <div class="regions-inner">
+ <div class="contentwrap">
+ <div id="content">
+ <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
+ </div>
+ </div>
+ <?php if ($PAGE->blocks->region_has_content('side-pre', $OUTPUT)) { ?>
+ <div id="region-side-pre" class="block-region">
+ <?php echo $OUTPUT->blocks_for_region('side-pre') ?>
+ </div>
+ <?php } ?>
+ <?php if ($PAGE->blocks->region_has_content('side-post', $OUTPUT)) { ?>
+ <div id="region-side-post" class="block-region">
+ <?php echo $OUTPUT->blocks_for_region('side-post') ?>
+ </div>
+ <?php } ?>
+ </div>
+ </div>
+ </div>
+
+<!-- START OF FOOTER -->
+ <?php if (empty($PAGE->layout_options['nofooter'])) { ?>
+ <div id="footer" class="clearfix">
+ <div class="helplink">
+ <?php echo page_doc_link(get_string('moodledocslink')) ?>
+ </div>
+ <div class="homeinfo">
+ <?php echo $OUTPUT->home_link() ?>
+ </div>
+ <?php echo $OUTPUT->login_info() ?>
+ <div class="debuginfo">
+ <?php echo $OUTPUT->standard_footer_html() ?>
+ </div>
+
+ </div>
+ <?php } ?>
+</div>
+<?php echo $OUTPUT->standard_end_of_body_html() ?>
+</body>
+</html>
\ No newline at end of file