MDL-20204 removing my theme experiment - not working any more and there are other...
authorPetr Skoda <skodak@moodle.org>
Tue, 20 Apr 2010 12:43:19 +0000 (12:43 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 20 Apr 2010 12:43:19 +0000 (12:43 +0000)
theme/experiment/config.php [deleted file]
theme/experiment/javascript/navigation.js [deleted file]
theme/experiment/layout/embedded.php [deleted file]
theme/experiment/layout/frontpage.php [deleted file]
theme/experiment/layout/general.php [deleted file]
theme/experiment/pix/favicon.ico [deleted file]
theme/experiment/pix/screenshot.jpg [deleted file]
theme/experiment/readme.txt [deleted file]
theme/experiment/style/block_calendar_month.css [deleted file]
theme/experiment/style/core.css [deleted file]

diff --git a/theme/experiment/config.php b/theme/experiment/config.php
deleted file mode 100644 (file)
index 783a14a..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-<?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(
-        'file' => 'general.php',
-        'regions' => array(),
-    ),
-    // Standard layout with blocks, this is recommended for most pages with general information
-    'standard' => array(
-        'file' => 'general.php',
-        'regions' => array('side-pre', 'side-post'),
-        'defaultregion' => 'side-post',
-    ),
-    // Main course page
-    'course' => array(
-        'file' => 'general.php',
-        'regions' => array('side-pre', 'side-post'),
-        'defaultregion' => 'side-post',
-        'options' => array('langmenu'=>true),
-    ),
-    'coursecategory' => array(
-        '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(
-        'file' => 'general.php',
-        'regions' => array('side-pre', 'side-post'),
-        'defaultregion' => 'side-post',
-    ),
-    // The site home page.
-    'frontpage' => array(
-        'file' => 'frontpage.php',
-        'regions' => array('side-pre', 'side-post'),
-        'defaultregion' => 'side-post',
-    ),
-    // Server administration scripts.
-    'admin' => array(
-        'file' => 'general.php',
-        'regions' => array('side-pre'),
-        'defaultregion' => 'side-pre',
-    ),
-    // My dashboard page
-    'mydashboard' => array(
-        'file' => 'general.php',
-        'regions' => array('side-pre', 'side-post'),
-        'defaultregion' => 'side-post',
-    ),
-    // My public page
-    'mypublic' => array(
-        'file' => 'general.php',
-        'regions' => array('side-pre', 'side-post'),
-        'defaultregion' => 'side-post',
-    ),
-    'login' => array(
-        'file' => 'general.php',
-        'regions' => array(),
-        'options' => array('langmenu'=>true),
-    ),
-    // Pages that appear in pop-up windows - no navigation, no blocks, no header.
-    'popup' => array(
-        'file' => 'general.php',
-        'regions' => array(),
-        'options' => array('nofooter'=>true),
-    ),
-    // No blocks and minimal footer - used for legacy frame layouts only!
-    'frametop' => array(
-        '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(
-        '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(
-        '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');
diff --git a/theme/experiment/javascript/navigation.js b/theme/experiment/javascript/navigation.js
deleted file mode 100644 (file)
index 215abe3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/* experiment: javascript needed for navbar manipulations */
diff --git a/theme/experiment/layout/embedded.php b/theme/experiment/layout/embedded.php
deleted file mode 100644 (file)
index c305cfb..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php 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">
-
-<!-- END OF HEADER -->
-
-    <div id="content" class="clearfix">
-        <?php echo core_renderer::MAIN_CONTENT_TOKEN ?>
-    </div>
-
-<!-- START OF FOOTER -->
-</div>
-<?php echo $OUTPUT->standard_end_of_body_html() ?>
-</body>
-</html>
\ No newline at end of file
diff --git a/theme/experiment/layout/frontpage.php b/theme/experiment/layout/frontpage.php
deleted file mode 100644 (file)
index 717cc1a..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<?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">&nbsp;</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
diff --git a/theme/experiment/layout/general.php b/theme/experiment/layout/general.php
deleted file mode 100644 (file)
index 9f26092..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<?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">&nbsp;</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
diff --git a/theme/experiment/pix/favicon.ico b/theme/experiment/pix/favicon.ico
deleted file mode 100644 (file)
index 5a7a36a..0000000
Binary files a/theme/experiment/pix/favicon.ico and /dev/null differ
diff --git a/theme/experiment/pix/screenshot.jpg b/theme/experiment/pix/screenshot.jpg
deleted file mode 100755 (executable)
index c0fd7c8..0000000
Binary files a/theme/experiment/pix/screenshot.jpg and /dev/null differ
diff --git a/theme/experiment/readme.txt b/theme/experiment/readme.txt
deleted file mode 100644 (file)
index db2600f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-This is just an experiment, designed to test how easy it is to create new theme with YUI layout.
-It will be probably removed later before 2.0beta.
-
-
-skodak
\ No newline at end of file
diff --git a/theme/experiment/style/block_calendar_month.css b/theme/experiment/style/block_calendar_month.css
deleted file mode 100644 (file)
index d4e5a2f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-
-.block_calendar_month table.minicalendar {
- margin-top: 5px;
- background-color: #ffffff;
-}
-
-.block_calendar_month table.minicalendar .weekend {
- color: #aaaaaa;
-}
-
-.minicalendar .today {
-  background-color: #d5e1f4;
-}
diff --git a/theme/experiment/style/core.css b/theme/experiment/style/core.css
deleted file mode 100644 (file)
index b8408bc..0000000
+++ /dev/null
@@ -1,245 +0,0 @@
-
-html {
-  background-color: #c4d5ef;
-}
-
-.regions-outer {
- background-color: #ffffff;
-}
-
-h1 {
- font-size:182%;
-}
-
-h2 {
- font-size:146.5%;
-}
-
-h3 {
- font-size:116%;
-}
-
-a:link,
-a:visited {
-  color:#0000ff;
-}
-
-a.dimmed:link,
-a.dimmed:visited {
-  color:#aaaaaa;
-}
-
-a:hover {
-  color:#d16600;
-}
-
-.dimmed_text,
-.dimmed_text a {
-  color:#aaaaaa;
-}
-
-
-#content {
- padding:5px 0px 5px 0px;
-}
-
-.generalbox {
- border-color: #d5e1f4;
- background-color: #f9fbfe;
-}
-
-
-/*** Page header ***/
-#header-home .headermain,
-#header .headermain {
- padding: 5px;
- float:left;
-}
-#header-home .headermenu,
-#header .headermenu {
- float:right;
- padding: 5px;
-}
-#header-home .headermenu div,
-#header .headermenu div {
- text-align: right;
-}
-
-.navbar {
- clear: both;
- padding: 2px 5px 2px 5px;
- background-color: #7fa5dd;
- min-height:1.7em;
-}
-
-.navbar .breadcrumb {
- float:left;
-}
-
-.navbar .navbutton {
- float:right;
-}
-
-/*** Page footer ***/
-
-#footer {
- background-color: #7fa5dd;
-}
-#footer div{
- text-align: center;
-}
-
-#footer .homeinfo .sitelink img {
- margin: 5px;
-}
-
-#footer .logininfo {
- padding: 5px;
-}
-
-
-.logininfo {
- font-size:93%;
- background-color: #c4d5ef;
- font-style: italic;
-}
-
-/*** Blocks ***/
-
-.sideblock {
- margin-top:5px;
- margin-bottom:5px;
- background-color: #f9fbfe;
- border-width: 1px;
- border-style: solid;
- border-color: #d5e1f4;
-}
-.sideblock .header {
- padding: 2px;
- background-color: #d5e1f4;
-}
-
-.sideblock h2 {
- font-size:116%;
-}
-
-.sideblock .content {
-  padding: 4px;
-}
-
-/*** Frontpage ***/
-
-#site-index h2.headingblock {
- text-align: center;
- margin-bottom: 4px;
-}
-
-.coursebox {
-  margin-bottom: 15px;
-  border-width:1px;
-  border-style:solid;
- border-color: #d5e1f4;
- background-color: #f9fbfe;
-}
-
-.coursebox .summary {
-  float: right;
-  text-align:left;
-  width: 65%;
-  padding:5px;
-}
-
-.coursebox .info {
-  float: left;
-  text-align:left;
-  width: 30%;
-  padding:5px;
-}
-
-
-.sitetopic {
- margin: 0px 0px 1em 0px;
- padding: 5px;
-}
-
-.categorylist {
-  width: 100%;
-  margin-left: auto;
-  margin-right: auto;
-  text-align: left;
-}
-.categorylist .category.image {
-  width: 20px;
-}
-.categorylist .category.number {
-  text-align: right;
-}
-
-.categorylist .category.indentation {
-  width: 1px;
-}
-
-.categorybox {
- margin: 0 0 1em 0;
- padding: 5px;
-}
-
-#coursesearch {
- text-align:right;
-}
-#coursesearch2 {
- text-align:right;
-}
-
-
-/*** Course layouts ***/
-
-.course-content .weeks .right,
-.course-content .weeks .left,
-.course-content .topics .right,
-.course-content .topics .left {
-  width: 1.6em;
-  padding: 5px 0;
-}
-
-.course-content .weeks .left,
-.course-content .topics .left {
-  float: left;
-}
-
-.course-content .weeks .right,
-.course-content .topics .right {
-  float: right;
-}
-
-.course-content li.activity {
- padding:2px 0px 2px 0px;
-}
-
-.course-content li.section {
-  border-width: 4px;
-  border-style: solid;
-  border-color: #d5e1f4;
-  background-color: #d5e1f4;
-  margin-top: 10px;
-}
-
-.section_add_menus .horizontal {
- margin-top:1em;
-}
-
-.course-content .weeks .content,
-.course-content .topics .content {
-  padding: 5px;
-  margin: 0 1.7em 0 1.7em;
-}
-
-.course-view .weeks .content {
- background-color: #ffffff;
-}
-
-
-.course-view .weeks .current,
-.course-view .topics .current {
-  background: #ffD991;
-}