Skip to content
Browse files

MDL-31351_master theme_splash: updated version

  • Loading branch information...
1 parent c4a12af commit 0170739a7d4d5aa7143a35f13c943b9d0cae0ebf @lazydaisy lazydaisy committed Feb 24, 2012
View
52 theme/splash/config.php
@@ -1,5 +1,4 @@
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
@@ -19,47 +18,32 @@
* Config for the splash theme
*
* @package theme_splash
- * @copyright 2010 Caroline Kennedy of Synergy Learning
+ * @copyright 2010 Caroline Kennedy - Synergy Learning
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$THEME->name = 'splash';
-////////////////////////////////////////////////////
-// Name of the theme.
-////////////////////////////////////////////////////
-
-
$THEME->parents = array(
'canvas',
'base',
);
-/////////////////////////////////////////////////////
-// List exsisting theme(s) to use as parents.
-////////////////////////////////////////////////////
-
-
$THEME->sheets = array(
- 'sl',
+ 'pagelayout',
+ 'core',
+ 'menus',
+ 'red',
'green',
'blue',
'orange',
- 'ie',
+ 'settings',
);
-////////////////////////////////////////////////////
-// Name of the stylesheet(s) you are including in
-// this new theme's /styles/ directory.
-////////////////////////////////////////////////////
+$THEME->editor_sheets = array('editor');
$THEME->enable_dock = true;
-////////////////////////////////////////////////////
-// Do you want to use the new navigation dock?
-////////////////////////////////////////////////////
-
-
$THEME->layouts = array(
// Most pages - if we encounter an unknown or a missing page type, this one is used.
'base' => array(
@@ -126,7 +110,6 @@
),
// Embeded pages, like iframe embeded in moodleform
'embedded' => array(
- 'theme' => 'canvas',
'file' => 'embedded.php',
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>true),
@@ -145,26 +128,17 @@
'regions' => array(),
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
),
+ // The pagelayout used when a redirection is occuring.
+ 'redirect' => array(
+ 'file' => 'embedded.php',
+ 'regions' => array(),
+ 'options' => array('nofooter'=>true, 'nonavbar'=>true, 'nocustommenu'=>true),
+ ),
'report' => array(
'file' => 'report.php',
'regions' => array('side-pre'),
'defaultregion' => 'side-pre'
),
);
-
-///////////////////////////////////////////////////////////////
-// These are all of the possible layouts in Moodle.
-///////////////////////////////////////////////////////////////
-
-
$THEME->csspostprocess = 'splash_process_css';
-
-
-
-///////////////////////////////////////////////////////////////
-// Splash Theme Specific settings for Administrators to customise
-// css.
-///////////////////////////////////////////////////////////////
-
-$THEME->editor_sheets = array('editor');
View
6 theme/splash/lang/en/theme_splash.php
@@ -1,5 +1,4 @@
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
@@ -18,13 +17,12 @@
/**
* Strings for component 'theme_splash', language 'en'
*
- * @package theme_standard
+ * @package theme_splash
* @copyright 2010 Caroline Kennedy of Synergy Learning
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-
-$string['choosereadme'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Splash</h2><img src="splash/pix/screenshot.jpg" /><h3>Theme Discussion Forum:</h3><p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p><h3>Theme Credits</h3><p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p><h3>Theme Documentation:</h3><p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p><h3>Report a bug:</h3><p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p></div><div class="theme_description"><h2>About</h2><p>Splash is a fluid-width, three-column theme for Moodle 2.0.<h2>Tweaks</h2><p>This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p><h2>Credits</h2> <p>This theme was coded and is maintained by Caroline Kennedy of Synergy Learning. She can be contacted by email at caroline.kennedy@synergy-learningw.com. </p><h2>License</h2><p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.</div></div>';
+$string['choosereadme'] = '<div class="clearfix"><div class="theme_screenshot"><h2>Splash</h2><img src="splash/pix/screenshot.jpg" /><h3>Theme Discussion Forum:</h3><p><a href="http://moodle.org/mod/forum/view.php?id=46">http://moodle.org/mod/forum/view.php?id=46</a></p><h3>Theme Credits</h3><p><a href="http://docs.moodle.org/en/Theme_credits">http://docs.moodle.org/en/Theme_credits</a></p><h3>Theme Documentation:</h3><p><a href="http://docs.moodle.org/en/Themes">http://docs.moodle.org/en/Themes</a></p><h3>Report a bug:</h3><p><a href="http://tracker.moodle.org">http://tracker.moodle.org</a></p></div><div class="theme_description"><h2>About</h2><p>Splash is a fluid-width, three-column theme for Moodle 2.0.<h2>Tweaks</h2><p>This theme is built upon both Base and Canvas, two parent themes included in the Moodle core. If you want to modify this theme, we recommend that you first duplicate it then rename it before making your changes. This will prevent your customized theme from being overwritten by future Moodle upgrades, and you\'ll still have the original files if you make a mess. More information on modifying themes can be found in the <a href="http://docs.moodle.org/en/Theme">MoodleDocs</a>.</p><h2>Credits</h2> <p>This theme was coded and is maintained by Caroline Kennedy of Synergy Learning. She can be contacted by email at caroline.kennedy@synergy-learningw.com. </p><h2>License</h2><p>This, and all other themes included in the Moodle core, are licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.</div></div>';
$string['configtitle'] = 'Splash Theme settings';
$string['customcss'] = 'Custom CSS';
$string['customcssdesc'] = 'Any CSS you enter here will be added to every page allowing your to easily customise this theme.';
View
201 theme/splash/layout/general.php
@@ -1,4 +1,27 @@
<?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/>.
+
+/**
+ * General layout for the mymobile theme
+ *
+ * @package theme
+ * @subpackage splash
+ * @copyright 2012 Caroline Kennedy - Synergy Learning
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
$hasheading = ($PAGE->heading);
$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
@@ -41,74 +64,101 @@
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
- <?php echo $OUTPUT->standard_top_of_body_html() ?>
- <div id="page">
- <?php if ($hasheading || $hasnavbar) { ?>
- <div id="page-header">
- <div id="page-header-wrapper" class="wrapper clearfix">
- <?php if ($hasheading) { ?>
- <div id="headermenu">
- <?php if (isloggedin()) {
- echo html_writer::start_tag('div', array('id'=>'userdetails'));
- echo html_writer::tag('h1', get_string('usergreeting', 'theme_splash', $USER->firstname));
- echo html_writer::start_tag('p', array('class'=>'prolog'));
- echo html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)), get_string('myprofile')).' | ';
- echo html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())), get_string('logout'));
- echo html_writer::end_tag('p');
- echo html_writer::end_tag('div');
- echo html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>55)), array('class'=>'userimg'));
- } else {
- echo html_writer::start_tag('div', array('id'=>'userdetails_loggedout'));
- $loginlink = html_writer::link(new moodle_url('/login/'), get_string('loginhere', 'theme_splash'));
- echo html_writer::tag('h1', get_string('welcome', 'theme_splash', $loginlink));
- echo html_writer::end_tag('div');;
- } ?>
- <div class="clearer"></div>
- <div id="colourswitcher">
- <ul>
- <li><img src="<?php echo $OUTPUT->pix_url('colour', 'theme'); ?>" alt="colour" /></li>
- <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'red')); ?>" class="styleswitch colour-red"><img src="<?php echo $OUTPUT->pix_url('red-theme2', 'theme'); ?>" alt="red" /></a></li>
- <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'green')); ?>" class="styleswitch colour-green"><img src="<?php echo $OUTPUT->pix_url('green-theme2', 'theme'); ?>" alt="green" /></a></li>
- <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'blue')); ?>" class="styleswitch colour-blue"><img src="<?php echo $OUTPUT->pix_url('blue-theme2', 'theme'); ?>" alt="blue" /></a></li>
- <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'orange')); ?>" class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-theme2', 'theme'); ?>" alt="orange" /></a></li>
- </ul>
- </div>
- <?php echo $OUTPUT->lang_menu();?>
- </div>
- <div id="logobox">
- <?php if ($haslogo) {
- echo html_writer::link(new moodle_url('/'), "<img src='".$PAGE->theme->settings->logo."' alt='logo' />");
- } else {
- echo html_writer::link(new moodle_url('/'), $PAGE->heading, array('class'=>'nologoimage'));
- } ?>
- <?php if (!$hidetagline) { ?>
- <h4><?php echo $tagline ?></h4>
- <?php } ?>
- </div>
- <div class="clearer"></div>
- <?php if ($haslogo) { ?>
- <h4 class="headermain inside">&nbsp;</h4>
- <?php } else { ?>
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+<div id="page">
+<?php if ($hasheading || $hasnavbar) { ?>
+ <div id="page-header">
+ <div id="page-header-wrapper" class="wrapper clearfix">
+ <?php
+ if ($hasheading) { ?>
+ <div id="headermenu">
+ <?php
+ if (isloggedin()) {
+ echo html_writer::start_tag('div', array('id'=>'userdetails'));
+ echo html_writer::tag('h1', get_string('usergreeting', 'theme_splash', $USER->firstname));
+ echo html_writer::start_tag('p', array('class'=>'prolog'));
+ echo html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)),
+ get_string('myprofile')).' | ';
+ echo html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())),
+ get_string('logout'));
+ echo html_writer::end_tag('p');
+ echo html_writer::end_tag('div');
+ echo html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>55)), array('class'=>'userimg'));
+ } else {
+ echo html_writer::start_tag('div', array('id'=>'userdetails_loggedout'));
+ $loginlink = html_writer::link(new moodle_url('/login/'), get_string('loginhere', 'theme_splash'));
+ echo html_writer::tag('h1', get_string('welcome', 'theme_splash', $loginlink));
+ echo html_writer::end_tag('div');
+ } ?>
+ <div class="clearer"></div>
+ <div id="colourswitcher">
+ <ul>
+ <li><img src="<?php echo $OUTPUT->pix_url('colour', 'theme'); ?>" alt="colour" /></li>
+ <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'red')); ?>" class="styleswitch
+ colour-red"><img src="<?php echo $OUTPUT->pix_url('red-theme2', 'theme'); ?>" alt="red" /></a></li>
+ <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'green')); ?>"
+ class="styleswitch colour-green"><img src="<?php echo $OUTPUT->pix_url('green-theme2', 'theme'); ?>"
+ alt="green" /></a></li>
+ <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'blue')); ?>"
+ class="styleswitch colour-blue"><img src="<?php echo $OUTPUT->pix_url('blue-theme2', 'theme'); ?>"
+ alt="blue" /></a></li>
+ <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'orange')); ?>"
+ class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-theme2', 'theme');
+ ?>"
+ alt="orange" /></a></li>
+ </ul>
+ </div>
+ <?php echo $OUTPUT->lang_menu();?>
+ </div>
+ <div id="logobox">
+ <?php
+ if ($haslogo) {
+ echo html_writer::link(new moodle_url('/'), "<img src='".$PAGE->theme->settings->logo."' alt='logo' />");
+ } else {
+ echo html_writer::link(new moodle_url('/'), $PAGE->heading, array('class'=>'nologoimage'));
+ } ?>
+ <?php
+ if (!$hidetagline) { ?>
+ <h4><?php echo $tagline ?></h4>
+ <?php
+ } ?>
+ </div>
+ <div class="clearer"></div>
+ <?php
+ if ($haslogo) { ?>
+ <h4 class="headermain inside">&nbsp;</h4>
+ <?php
+ } else { ?>
<h4 class="headermain inside"><?php echo $PAGE->heading ?></h4>
- <?php } ?>
- <?php } // End of if ($hasheading)?>
- <!-- DROP DOWN MENU -->
- <div class="clearer"></div>
- <div id="dropdownmenu">
- <?php if ($hascustommenu) { ?>
- <div id="custommenu"><?php echo $custommenu; ?></div>
- <?php } ?>
- <div class="navbar">
- <div class="wrapper clearfix">
- <div class="breadcrumb"><?php if ($hasnavbar) echo $OUTPUT->navbar(); ?></div>
- <div class="navbutton"> <?php echo $PAGE->button; ?></div>
- </div>
- </div>
- </div>
- <!-- END DROP DOWN MENU -->
- </div>
+ <?php
+ } ?>
+ <?php
+ } // End of if ($hasheading)?>
+ <!-- CUSTOMMENU -->
+ <div class="clearer"></div>
+ <?php
+ if ($hascustommenu) { ?>
+ <div id="moodlemenu">
+ <div id="custommenu"><?php echo $custommenu; ?></div>
</div>
- <?php } // if ($hasheading || $hasnavbar) ?>
+ <?php
+ } ?>
+ <!-- END CUSTOMMENU -->
+ <div class="navbar">
+ <div class="wrapper clearfix">
+ <div class="breadcrumb">
+ <?php
+ if ($hasnavbar) {
+ echo $OUTPUT->navbar();
+ } ?>
+ </div>
+ <div class="navbutton"> <?php echo $PAGE->button; ?></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <?php
+} // if ($hasheading || $hasnavbar) ?>
<!-- END OF HEADER -->
<!-- START OF CONTENT -->
<div id="page-content">
@@ -128,15 +178,17 @@
<?php echo $OUTPUT->blocks_for_region('side-pre') ?>
</div>
</div>
- <?php } ?>
+ <?php
+} ?>
<?php if ($hassidepost) { ?>
<div id="region-post" class="block-region">
<div class="region-content">
<?php echo $OUTPUT->blocks_for_region('side-post') ?>
</div>
</div>
- <?php } ?>
+ <?php
+} ?>
</div>
</div>
</div>
@@ -147,10 +199,12 @@
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
<div id="page-footer">
- <div id="footer-wrapper">
- <?php if ($hasfootnote) { ?>
+ <div id="footer-wrapper">
+ <?php
+ if ($hasfootnote) { ?>
<div id="footnote"><?php echo $PAGE->theme->settings->footnote; ?></div>
- <?php } ?>
+ <?php
+ } ?>
<p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
<?php
echo $OUTPUT->login_info();
@@ -159,7 +213,8 @@
?>
</div>
</div>
- <?php } ?>
+ <?php
+} ?>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
</body>
-</html>
+</html>
View
205 theme/splash/layout/report.php
@@ -1,9 +1,33 @@
<?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/>.
+
+/**
+ * General layout for the mymobile theme
+ *
+ * @package theme
+ * @subpackage splash
+ * @copyright 2012 Caroline Kennedy - Synergy Learning
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
$hasheading = ($PAGE->heading);
$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
$hasfooter = (empty($PAGE->layout_options['nofooter']));
$hassidepre = $PAGE->blocks->region_has_content('side-pre', $OUTPUT);
+$hassidepost = $PAGE->blocks->region_has_content('side-post', $OUTPUT);
$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));
@@ -13,7 +37,11 @@
$bodyclasses = array();
$bodyclasses[] = 'splash-'.splash_get_colour();
-if (!$hassidepre) {
+if ($hassidepre && !$hassidepost) {
+ $bodyclasses[] = 'side-pre-only';
+} else if ($hassidepost && !$hassidepre) {
+ $bodyclasses[] = 'side-post-only';
+} else if (!$hassidepost && !$hassidepre) {
$bodyclasses[] = 'content-only';
}
@@ -36,74 +64,101 @@
<?php echo $OUTPUT->standard_head_html() ?>
</head>
<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join(' ', $bodyclasses)) ?>">
- <?php echo $OUTPUT->standard_top_of_body_html() ?>
- <div id="page">
- <?php if ($hasheading || $hasnavbar) { ?>
- <div id="page-header">
- <div id="page-header-wrapper" class="wrapper clearfix">
- <?php if ($hasheading) { ?>
- <div id="headermenu">
- <?php if (isloggedin()) {
- echo html_writer::start_tag('div', array('id'=>'userdetails'));
- echo html_writer::tag('h1', get_string('usergreeting', 'theme_splash', $USER->firstname));
- echo html_writer::start_tag('p', array('class'=>'prolog'));
- echo html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)), get_string('myprofile')).' | ';
- echo html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())), get_string('logout'));
- echo html_writer::end_tag('p');
- echo html_writer::end_tag('div');
- echo html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>55)), array('class'=>'userimg'));
- } else {
- echo html_writer::start_tag('div', array('id'=>'userdetails_loggedout'));
- $loginlink = html_writer::link(new moodle_url('/login/'), get_string('loginhere', 'theme_splash'));
- echo html_writer::tag('h1', get_string('welcome', 'theme_splash', $loginlink));
- echo html_writer::end_tag('div');;
- } ?>
- <div class="clearer"></div>
- <div id="colourswitcher">
- <ul>
- <li><img src="<?php echo $OUTPUT->pix_url('colour', 'theme'); ?>" alt="colour" /></li>
- <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'red')); ?>" class="styleswitch colour-red"><img src="<?php echo $OUTPUT->pix_url('red-theme2', 'theme'); ?>" alt="red" /></a></li>
- <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'green')); ?>" class="styleswitch colour-green"><img src="<?php echo $OUTPUT->pix_url('green-theme2', 'theme'); ?>" alt="green" /></a></li>
- <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'blue')); ?>" class="styleswitch colour-blue"><img src="<?php echo $OUTPUT->pix_url('blue-theme2', 'theme'); ?>" alt="blue" /></a></li>
- <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'orange')); ?>" class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-theme2', 'theme'); ?>" alt="orange" /></a></li>
- </ul>
- </div>
- <?php echo $OUTPUT->lang_menu();?>
- </div>
- <div id="logobox">
- <?php if ($haslogo) {
- echo html_writer::link(new moodle_url('/'), "<img src='".$PAGE->theme->settings->logo."' alt='logo' />");
- } else {
- echo html_writer::link(new moodle_url('/'), $PAGE->heading, array('class'=>'nologoimage'));
- } ?>
- <?php if (!$hidetagline) { ?>
- <h4><?php echo $tagline ?></h4>
- <?php } ?>
- </div>
- <div class="clearer"></div>
- <?php if ($haslogo) { ?>
- <h4 class="headermain inside">&nbsp;</h4>
- <?php } else { ?>
+<?php echo $OUTPUT->standard_top_of_body_html() ?>
+<div id="page">
+<?php if ($hasheading || $hasnavbar) { ?>
+ <div id="page-header">
+ <div id="page-header-wrapper" class="wrapper clearfix">
+ <?php
+ if ($hasheading) { ?>
+ <div id="headermenu">
+ <?php
+ if (isloggedin()) {
+ echo html_writer::start_tag('div', array('id'=>'userdetails'));
+ echo html_writer::tag('h1', get_string('usergreeting', 'theme_splash', $USER->firstname));
+ echo html_writer::start_tag('p', array('class'=>'prolog'));
+ echo html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)),
+ get_string('myprofile')).' | ';
+ echo html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())),
+ get_string('logout'));
+ echo html_writer::end_tag('p');
+ echo html_writer::end_tag('div');
+ echo html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>55)), array('class'=>'userimg'));
+ } else {
+ echo html_writer::start_tag('div', array('id'=>'userdetails_loggedout'));
+ $loginlink = html_writer::link(new moodle_url('/login/'), get_string('loginhere', 'theme_splash'));
+ echo html_writer::tag('h1', get_string('welcome', 'theme_splash', $loginlink));
+ echo html_writer::end_tag('div');
+ } ?>
+ <div class="clearer"></div>
+ <div id="colourswitcher">
+ <ul>
+ <li><img src="<?php echo $OUTPUT->pix_url('colour', 'theme'); ?>" alt="colour" /></li>
+ <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'red')); ?>" class="styleswitch
+ colour-red"><img src="<?php echo $OUTPUT->pix_url('red-theme2', 'theme'); ?>" alt="red" /></a></li>
+ <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'green')); ?>"
+ class="styleswitch colour-green"><img src="<?php echo $OUTPUT->pix_url('green-theme2', 'theme'); ?>"
+ alt="green" /></a></li>
+ <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'blue')); ?>"
+ class="styleswitch colour-blue"><img src="<?php echo $OUTPUT->pix_url('blue-theme2', 'theme'); ?>"
+ alt="blue" /></a></li>
+ <li><a href="<?php echo new moodle_url($PAGE->url, array('splashcolour'=>'orange')); ?>"
+ class="styleswitch colour-orange"><img src="<?php echo $OUTPUT->pix_url('orange-theme2', 'theme');
+ ?>"
+ alt="orange" /></a></li>
+ </ul>
+ </div>
+ <?php echo $OUTPUT->lang_menu();?>
+ </div>
+ <div id="logobox">
+ <?php
+ if ($haslogo) {
+ echo html_writer::link(new moodle_url('/'), "<img src='".$PAGE->theme->settings->logo."' alt='logo' />");
+ } else {
+ echo html_writer::link(new moodle_url('/'), $PAGE->heading, array('class'=>'nologoimage'));
+ } ?>
+ <?php
+ if (!$hidetagline) { ?>
+ <h4><?php echo $tagline ?></h4>
+ <?php
+ } ?>
+ </div>
+ <div class="clearer"></div>
+ <?php
+ if ($haslogo) { ?>
+ <h4 class="headermain inside">&nbsp;</h4>
+ <?php
+ } else { ?>
<h4 class="headermain inside"><?php echo $PAGE->heading ?></h4>
- <?php } ?>
- <?php } // End of if ($hasheading)?>
- <!-- DROP DOWN MENU -->
- <div class="clearer"></div>
- <div id="dropdownmenu">
- <?php if ($hascustommenu) { ?>
- <div id="custommenu"><?php echo $custommenu; ?></div>
- <?php } ?>
- <div class="navbar">
- <div class="wrapper clearfix">
- <div class="breadcrumb"><?php if ($hasnavbar) echo $OUTPUT->navbar(); ?></div>
- <div class="navbutton"> <?php echo $PAGE->button; ?></div>
- </div>
- </div>
- </div>
- <!-- END DROP DOWN MENU -->
- </div>
+ <?php
+ } ?>
+ <?php
+ } // End of if ($hasheading)?>
+ <!-- CUSTOMMENU -->
+ <div class="clearer"></div>
+ <?php
+ if ($hascustommenu) { ?>
+ <div id="moodlemenu">
+ <div id="custommenu"><?php echo $custommenu; ?></div>
</div>
- <?php } // if ($hasheading || $hasnavbar) ?>
+ <?php
+ } ?>
+ <!-- END CUSTOMMENU -->
+ <div class="navbar">
+ <div class="wrapper clearfix">
+ <div class="breadcrumb">
+ <?php
+ if ($hasnavbar) {
+ echo $OUTPUT->navbar();
+ } ?>
+ </div>
+ <div class="navbutton"> <?php echo $PAGE->button; ?></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <?php
+} // if ($hasheading || $hasnavbar) ?>
<!-- END OF HEADER -->
<!-- START OF CONTENT -->
@@ -121,7 +176,8 @@
</div>
</div>
</div>
- <?php } ?>
+ <?php
+} ?>
</div>
<!-- END OF CONTENT -->
@@ -131,10 +187,12 @@
<!-- START OF FOOTER -->
<?php if ($hasfooter) { ?>
<div id="page-footer">
- <div id="footer-wrapper">
- <?php if ($hasfootnote) { ?>
+ <div id="footer-wrapper">
+ <?php
+ if ($hasfootnote) { ?>
<div id="footnote"><?php echo $PAGE->theme->settings->footnote; ?></div>
- <?php } ?>
+ <?php
+ } ?>
<p class="helplink"><?php echo page_doc_link(get_string('moodledocslink')) ?></p>
<?php
echo $OUTPUT->login_info();
@@ -143,7 +201,8 @@
?>
</div>
</div>
- <?php } ?>
+ <?php
+} ?>
<?php echo $OUTPUT->standard_end_of_body_html() ?>
</body>
-</html>
+</html>
View
25 theme/splash/lib.php
@@ -1,5 +1,4 @@
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
@@ -16,35 +15,35 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
- * Library functions for the Splash theme
+ * Library functions for theme_splash
*
* @package theme_splash
- * @copyright 2010 Caroline Kennedy of Synergy Learning
+ * @copyright 2011 Synergy Learning
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
- * Splash theme post process function for CSS
+ * theme_splash post process function for CSS
* @param string $css Incoming CSS to process
* @param stdClass $theme The theme object
* @return string The processed CSS
*/
function splash_process_css($css, $theme) {
-
+
if (!empty($theme->settings->regionwidth)) {
$regionwidth = $theme->settings->regionwidth;
} else {
$regionwidth = null;
}
$css = splash_set_regionwidth($css, $regionwidth);
-
+
if (!empty($theme->settings->customcss)) {
$customcss = $theme->settings->customcss;
} else {
$customcss = null;
}
$css = splash_set_customcss($css, $customcss);
-
+
return $css;
}
@@ -91,14 +90,12 @@ function splash_set_customcss($css, $customcss) {
/**
* Adds the JavaScript for the colour switcher to the page.
*
- * The colour switcher is a YUI moodle module that is located in
- * theme/splash/yui/splash/splash.js
- *
- * @param moodle_page $page
+ * @param moodle_page $page
*/
function splash_initialise_colourswitcher(moodle_page $page) {
user_preference_allow_ajax_update('theme_splash_chosen_colour', PARAM_ALPHA);
- $page->requires->yui_module('moodle-theme_splash-colourswitcher', 'M.theme_splash.initColourSwitcher', array(array('div'=>'#colourswitcher')));
+ $page->requires->yui_module('moodle-theme_splash-colourswitcher',
+ 'M.theme_splash.initColourSwitcher', array(array('div'=>'#colourswitcher')));
}
/**
@@ -120,8 +117,8 @@ function splash_get_colour($default='red') {
*/
function splash_check_colourswitch() {
$changecolour = optional_param('splashcolour', null, PARAM_ALPHA);
- if (in_array($changecolour, array('red','green','blue','orange'))) {
+ if (in_array($changecolour, array('red', 'green', 'blue', 'orange'))) {
return set_user_preference('theme_splash_chosen_colour', $changecolour);
}
return false;
-}
+}
View
83 theme/splash/settings.php
@@ -1,6 +1,4 @@
<?php
-
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
@@ -23,53 +21,52 @@
* @copyright 2010 Caroline Kennedy of Synergy Learning
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-
+
defined('MOODLE_INTERNAL') || die;
if ($ADMIN->fulltree) {
-// Logo file setting
-$name = 'theme_splash/logo';
-$title = get_string('logo','theme_splash');
-$description = get_string('logodesc', 'theme_splash');
-$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
-$settings->add($setting);
+ // Logo file setting
+ $name = 'theme_splash/logo';
+ $title = get_string('logo', 'theme_splash');
+ $description = get_string('logodesc', 'theme_splash');
+ $setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
+ $settings->add($setting);
+
+ // Tagline setting
+ $name = 'theme_splash/tagline';
+ $title = get_string('tagline', 'theme_splash');
+ $description = get_string('taglinedesc', 'theme_splash');
+ $setting = new admin_setting_configtextarea($name, $title, $description, get_string('defaulttagline', 'theme_splash'));
+ $settings->add($setting);
-// Tagline setting
-$name = 'theme_splash/tagline';
-$title = get_string('tagline','theme_splash');
-$description = get_string('taglinedesc', 'theme_splash');
-$setting = new admin_setting_configtextarea($name, $title, $description, get_string('defaulttagline', 'theme_splash'));
-$settings->add($setting);
+ $name = 'theme_splash/hide_tagline';
+ $title = get_string('hide_tagline', 'theme_splash');
+ $description = get_string('hide_taglinedesc', 'theme_splash');
+ $setting = new admin_setting_configcheckbox($name, $title, $description, 0);
+ $settings->add($setting);
-$name = 'theme_splash/hide_tagline';
-$title = get_string('hide_tagline','theme_splash');
-$description = get_string('hide_taglinedesc', 'theme_splash');
-$setting = new admin_setting_configcheckbox($name, $title, $description, 0);
-$settings->add($setting);
+ // Block region width
+ //$name = 'theme_splash/regionwidth';
+ //$title = get_string('regionwidth', 'theme_splash');
+ //$description = get_string('regionwidthdesc', 'theme_splash');
+ //$default = 240;
+ //$choices = array(200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
+ //$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
+ //$temp->add($setting);
- /*
-// Block region width
-$name = 'theme_splash/regionwidth';
-$title = get_string('regionwidth','theme_splash');
-$description = get_string('regionwidthdesc', 'theme_splash');
-$default = 240;
-$choices = array(200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');
-$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
-$temp->add($setting); */
-
-// Foot note setting
-$name = 'theme_splash/footnote';
-$title = get_string('footnote','theme_splash');
-$description = get_string('footnotedesc', 'theme_splash');
-$setting = new admin_setting_confightmleditor($name, $title, $description, '');
-$settings->add($setting);
+ // Foot note setting
+ $name = 'theme_splash/footnote';
+ $title = get_string('footnote', 'theme_splash');
+ $description = get_string('footnotedesc', 'theme_splash');
+ $setting = new admin_setting_confightmleditor($name, $title, $description, '');
+ $settings->add($setting);
-// Custom CSS file
-$name = 'theme_splash/customcss';
-$title = get_string('customcss','theme_splash');
-$description = get_string('customcssdesc', 'theme_splash');
-$setting = new admin_setting_configtextarea($name, $title, $description, '');
-$settings->add($setting);
+ // Custom CSS file
+ $name = 'theme_splash/customcss';
+ $title = get_string('customcss', 'theme_splash');
+ $description = get_string('customcssdesc', 'theme_splash');
+ $setting = new admin_setting_configtextarea($name, $title, $description, '');
+ $settings->add($setting);
-}
+}
View
144 theme/splash/style/blue.css
@@ -2,118 +2,86 @@
**
** Theme name: Splash
** Creation Date: 30/06/09
-** Author: Synergy Learning
+** Author: Caroline Kennedy - Synergy Learning
** Author URI: http://synergylearning.com
**
*********************************************************/
-/* Global
-------------------------*/
-
-body.splash-blue { /* Define margins and background colour/image */
+body.splash-blue {
background: url([[pix:theme|bgblue]]) top left repeat-x #fff;
- margin: 0 auto;
- padding: 0;
- width: 100%;
-}
-
-.splash-blue a:link { /* Defining all link styles*/
- color: #3d6276;
}
-
-.splash-blue a:visited { /* Setting all visited link styles */
+.splash-blue a:link,
+.splash-blue a:visited,
+.splash-blue a:active {
color: #3d6276;
}
-
-.splash-blue a:hover { /* Setting all rollover link styles */
+.splash-blue a:hover {
color: #294b5d;
}
-
-.splash-blue a:active { /* Setting all active link styles */
- color: #3d6276;
+.splash-blue #region-main h1,
+.splash-blue #region-main h3,
+.splash-blue #region-main h6 {
+ color:#3d6276;
}
-
-
-/* Header
------------------------*/
-.splash-blue #page-header { /* Set height for header */
- float: none;
- padding: 0;
- margin:0;
- color: #fff;
- height: 308px;
+.splash-blue #page-header {
background: url([[pix:theme|pageheaderbgblue]]) top center no-repeat;
-
}
-
-.splash-blue #logobox{ /* holder background for logo*/
- height: 185px;
- width: 252px;
- margin: auto;
- text-align: center;
+.splash-blue #logobox{
background: url([[pix:theme|lbgv2blue]]) no-repeat;
- float: left;
}
-
-
.splash-blue #colourswitcher p{
- color:#3d6276
+ color:#3d6276;
}
-
-
-/* Custom Menu
------------------------*/
-.splash-blue #custommenu .yui3-menu-content ul.first-of-type li{
- border-right: 1px solid #bfced7;
+.splash-blue .navbar .breadcrumb a {
+ color:#3d6276;
}
-
-.splash-blue #custommenu div.yui3-menu.custom_menu_submenu .yui3-menu-content{
- background:#3d6276;
- border:1px solid #fff;
- color: #fff;
+.splash-blue .navbar .arrow {
+ color:#3d6276;
+}
+.splash-blue .course-content ul.topics li.section .left {
+ color:#3d6276;
+}
+.splash-blue .mform fieldset legend {
+ color:#3d6276;
+}
+.splash-blue .tabtree .tabrow0 a:hover{
+ color:#294b5d;
+}
+.splash-blue .tabtree .tabrow0 .here a {
+ color:#3d6276;
+}
+.splash-blue .tabtree .tabrow0 .here a:hover{
+ background:#fff;color: #294b5d;
+}
+.splash-blue .tabtree .here ul .here a.nolink:hover {
+ color:#3d6276;
}
-
-/* Content
------------------------*/
-
.splash-blue .coursebox{
- padding-left:5px;
border-bottom: 1px dashed #cbd3d6;
}
-
-.splash-blue ul.topics li#section-0, ul.weeks li#section-0 {
- background: #386377;
- border: 1px solid #ccc;
+.splash-blue #categoryquestions tr th{
+ background:#3d6276;
}
-
-/* Sideblocks
------------------------*/
-
-.splash-blue #region-pre .block .header,
-.splash-blue #region-post .block .header { /*-- right block header --*/
- background: url([[pix:theme|sbheaderbg2blue]]) center no-repeat;
- padding: 12px 5px 5px;
- color: #fff;
+.splash-blue .path-mod-quiz .qnbutton {
+ background:#3d6276; color:#fff;
}
-
-/* Mini Calendar
-------------------------*/
-
-.splash-blue .block .minicalendar td.weekend { /* setting weekend date colour */
+.splash-blue .path-mod-quiz .qnbutton.open {
+ background:#3d6276;
+}
+.splash-blue .block-region .block .header {
+ background: url([[pix:theme|sbheaderbg2blue]]) top center no-repeat
+}
+.splash-blue .block .minicalendar td.weekend {
color:#3d6276;
}
-
-
-/* Forum
-------------------------*/
-
-.splash-blue .forumpost .topic .subject,
-.path-blog.splash-blue .forumpost .subject a,
-.path-blog.splash-blue .forumpost .subject a:link,
-.path-blog.splash-blue .forumpost .subject a:visited { /* forum subject section inside topic header */
- font-weight: bold;
- font-size: 1.1em;
- padding-left: 5px;
- background: #3d6276;
- color: #fff;
+.splash-blue .pagelayout-redirect {
+ border-top: 1px solid #294b5d;
+}
+.splash-blue #dock {
+ background-color:#3d6276;
+ border-right:1px solid #3d6276;
+}
+.splash-blue #dock .dockedtitle {
+ border-top:1px solid #627680;
+ border-bottom:1px solid #294b5d;
}
View
4 theme/splash/style/editor.css
@@ -1,3 +1,3 @@
-body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea { /* Set fonttype for site */
+body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-}
+}
View
144 theme/splash/style/green.css
@@ -2,110 +2,84 @@
**
** Theme name: Splash
** Creation Date: 30/06/09
-** Author: Synergy Learning
+** Author: Caroline Kennedy - Synergy Learning
** Author URI: http://synergylearning.com
**
*********************************************************/
-/* Global
-------------------------*/
-body.splash-green { /* Define margins and background colour/image */
- background: url([[pix:theme|bggreen]]) top left repeat-x #f4f4f4;
- margin: 0 auto;
- padding: 0;
- width: 100%;
+body.splash-green { background:url([[pix:theme|bggreen]]) top left repeat-x;
}
-
-.splash-green a:link { /* Defining all link styles*/
- color: #446e4c;
+.splash-green a:link,
+.splash-green a:visited,
+.splash-green a:active{color:#446e4c;
}
-
-.splash-green a:visited { /* Setting all visited link styles */
- color: #446e4c;
+.splash-green a:hover{
+ color:#335a3a;
}
-
-.splash-green a:hover { /* Setting all rollover link styles */
- color: #335a3a;
-}
-
-.splash-green a:active { /* Setting all active link styles */
- color: #446e4c;
+.splash-green #region-main h1,
+.splash-green #region-main h3,
+.splash-green #region-main h6{
+ color:#446e4c;
}
-
-/* Header
------------------------*/
-.splash-green #page-header { /* Set height for header */
- float: none;
- padding: 0;
- margin:0;
- color: #fff;
- height: 308px;
- background: url([[pix:theme|pageheaderbggreen]]) top center no-repeat;
+.splash-green #page-header{
+ background:url([[pix:theme|pageheaderbggreen]]) top center no-repeat;
}
-
-.splash-green #logobox{ /* holder background for logo*/
- height: 185px;
- width: 252px;
- margin: auto;
- text-align: center;
- background: url([[pix:theme|lbgv2green]]) no-repeat;
- float: left;
+.splash-green #logobox{
+ background:url([[pix:theme|lbgv2green]]) no-repeat;
}
-
.splash-green #colourswitcher p{
color:#446e4c;
}
-
-
-/* Custom Menu
------------------------*/
-.splash-green #custommenu .yui3-menu-content ul.first-of-type li{
- border-right: 1px solid #d5e1d7;
+.splash-green .navbar .breadcrumb a {
+ color:#446e4c;
}
-
-.splash-green #custommenu div.yui3-menu.custom_menu_submenu .yui3-menu-content{
- background:#446e4c;
- border:1px solid #fff;
- color: #fff;
+.splash-green .navbar .arrow{
+ color:#446e4c;
}
-
-/* Content
------------------------*/
-.splash-green ul.topics li#section-0, ul.weeks li#section-0 {
- background: #386c4c;
- border: 1px solid #ccc;
-
+.splash-green .course-content ul.topics li.section .left{
+ color:#446e4c;
+}
+.splash-green .mform fieldset legend{
+ color:#446e4c;
+}
+.splash-green .tabtree .tabrow0 a:hover{
+ color:#335a3a;
+}
+.splash-green .tabtree .tabrow0 .here a {
+ color:#446e4c;
+}
+.splash-green .tabtree .tabrow0 .here a:hover{
+ background:#fff;color:#335a3a;
+}
+.splash-green .tabtree .here ul .here a.nolink:hover {
+ color:#446e4c;
}
-
.splash-green .coursebox{
- padding-left:5px;
border-bottom: 1px dashed #dae0dc;
}
-
-/* Sideblocks
------------------------*/
-.splash-green #region-pre .block .header, /*-- right block header --*/
-.splash-green #region-post .block .header { /*-- right block header --*/
- background: url([[pix:theme|sbheaderbg2green]]) center no-repeat;
- padding: 12px 5px 5px;
- color: #fff;
+.splash-green #categoryquestions tr th{
+ background:#446e4c;color:#fff;
}
-
-/* Mini Calendar
-------------------------*/
-.splash-green .block .minicalendar td.weekend { /* setting weekend date colour */
+.splash-green .path-mod-quiz .qnbutton{
+ background:#446e4c;color:#fff;
+}
+.splash-green .path-mod-quiz .qnbutton.open{
+ background:#446e4c;
+}
+.splash-green .block-region .block .header{
+ background:url([[pix:theme|sbheaderbg2green]]) top center no-repeat;
+}
+.splash-green .block .minicalendar td.weekend{
color:#446e4c;
}
-
-/* Forum
-------------------------*/
-.splash-green .forumpost .topic .subject,
-.path-blog.splash-green .forumpost .subject a,
-.path-blog.splash-green .forumpost .subject a:link,
-.path-blog.splash-green .forumpost .subject a:visited { /* forum subject section inside topic header */
- font-weight: bold;
- font-size: 1.1em;
- padding-left: 5px;
- background: #446e4c;
- color: #fff;
-}
+.pagelayout-redirect {
+ border-top: 1px solid #335a3a;
+}
+.splash-green #dock {
+ background-color:#446e4c;
+ border-right:1px solid #335a3a;
+}
+.splash-green #dock .dockedtitle {
+ border-top:1px solid #5C6E5F;
+ border-bottom:1px solid #335a3a;
+}
View
66 theme/splash/style/ie.css
@@ -1,66 +0,0 @@
-/********************************************************
-**
-** Theme name: Splash
-** Creation Date: 30/06/09
-** Author: Synergy Learning
-** Author URI: http://synergylearning.com
-**
-*********************************************************/
-
-
-/** IE styling */
-
-.ie6 .block .block_tree {
- width: 160px;
- overflow-x: scroll;
-}
-
-.ie6 .block_tree .tree_item {
- width: 100%;
-}
-
-.ie6 #dock, .ie7 #dock, .ie8 #dock {
- position: absolute;
-}
-
-.ie6 #dock hr {
- display: none;
- margin: 0px;
- height: 0px;
- padding: 0px;
-}
-
-.ie6 #dock li p {
- background-color: inherit;
-}
-
-.ie6 #dock .bd.oversized_content .content, .ie7 #dock .bd.oversized_content .content, .ie8 #dock .bd.oversized_content .content {
- padding-bottom: 0px;
-}
-
-.ie6 .block_js_expansion.mouseover .content, .ie7 .block_js_expansion.mouseover .content, .ie8 .block_js_expansion.mouseover .content {
- padding-bottom: 2px;
-}
-
-.ie6 #dock .bd.oversized_content,
-.ie7 #dock .bd.oversized_content,
-.ie8 #dock .bd.oversized_content {
- width: 100%;
-}
-
-.ie6 .red-theme, .ie6 .blue-theme, .ie6 .green-theme, .ie6 .orange-theme, .ie7 .red-theme, .ie7 .green-theme, .ie7 .blue-theme, .ie7 .orange-theme{
- margin-top:3px;
-}
-
-.ie7 .headermain, ie8 .headermain{
- padding-left:15px;
-}
-
-.ie7 #custommenu, ie8 #custommenu{
- padding-top: 15px;
-}
-
-ie7 .loginpanel, ie8 .loginpanel{
- padding-top: 20px;
-}
-
View
160 theme/splash/style/orange.css
@@ -2,129 +2,85 @@
**
** Theme name: Splash
** Creation Date: 30/06/09
-** Author: Synergy Learning
+** Author: Caroline Kennedy - Synergy Learning
** Author URI: http://synergylearning.com
**
*********************************************************/
-/* Global
-------------------------*/
-
-body.splash-orange { /* Define margins and background colour/image */
- background: url([[pix:theme|bgorange]]) top left repeat-x #f4f4f4;
- margin: 0 auto;
- padding: 0;
- width: 100%;
-}
-
-.splash-orange a:link { /* Defining all link styles*/
- color: #7c7165;
+body.splash-orange {
+ background:url([[pix:theme|bgorange]]) top left repeat-x
}
-
-.splash-orange a:visited { /* Setting all visited link styles */
- color: #7c7165;
+.splash-orange a:link,
+.splash-orange a:visited,
+.splash-orange a:active{
+ color:#7c7165;
}
-
-.splash-orange a:hover { /* Setting all rollover link styles */
- color: #5f564c;
+.splash-orange a:hover{
+ color:#5f564c;
}
-
-.splash-orange a:active { /* Setting all active link styles */
- color: #7c7165;
+.splash-orange #region-main h1,
+.splash-orange #region-main h3,
+.splash-orange #region-main h6{
+ color:#cb8f47;
}
-
-/* Header
------------------------*/
-
-.splash-orange #page-header { /* Set height for header */
- float: none;
- padding: 0;
- margin:0;
- color: #fff;
- height: 308px;
- background: url([[pix:theme|pageheaderbgorange]]) top center no-repeat;
+.splash-orange #page-header{
+ background:url([[pix:theme|pageheaderbgorange]]) top center no-repeat;
}
-
-.splash-orange #logobox{ /* holder background for logo*/
- height: 185px;
- width: 252px;
- margin: auto;
- text-align: center;
- background: url([[pix:theme|lbgv2orange]]) no-repeat;
- float: left;
+.splash-orange #logobox{
+ background:url([[pix:theme|lbgv2orange]]) no-repeat;
}
-
.splash-orange #colourswitcher p{
- color: #cb8f47;
+ color:#cb8f47;
}
-
-/* Custom Menu
------------------------*/
- .splash-orange #custommenu .yui3-menu-content ul.first-of-type li{
- border-right: 1px solid #dbcfc0;
+.splash-orange .navbar .breadcrumb a {
+ color:#cb8f47;
}
-
-.splash-orange #custommenu div.yui3-menu.custom_menu_submenu .yui3-menu-content{
- background:#cb8f47;
- border:1px solid #fff;
- color: #fff;
+.splash-orange .navbar .arrow{color:#cb8f47;
}
-
-/* Content
------------------------*/
-.splash-orange ul.topics li#section-0, ul.weeks li#section-0 {
- background: #df9a55;
- border: 1px solid #ccc;
+.splash-orange .course-content ul.topics li.section .left{
+ color:#cb8f47;
}
-
-.splash-orange .coursebox{
- padding-left:5px;
- border-bottom: 1px dashed #f0e7de;
+.splash-orange .mform fieldset legend{
+ color:#cb8f47;
}
-
-/* Sideblocks
------------------------*/
-
-.splash-orange #region-pre .block .header, /*-- right block header --*/
-.splash-orange #region-post .block .header { /*-- right block header --*/
- background: url([[pix:theme|sbheaderbg2orange]]) center no-repeat;
- padding: 12px 5px 5px;
- color: #fff;
+.splash-orange .tabtree .tabrow0 a:hover{
+ color:#5f564c;
}
-
-/* Mini Calendar
-------------------------*/
-
-.splash-orange .block .minicalendar td.weekend { /* setting weekend date colour */
+.splash-orange .tabtree .tabrow0 .here a {
color:#cb8f47;
}
-
-/* Forum
-------------------------*/
-
-.splash-orange .forumpost .topic .subject { /* forum subject section inside topic header */
- font-weight: bold;
- font-size: 1.1em;
- padding-left: 5px;
- background: #cb8f47;
- color: #fff;
+.splash-orange .tabtree .tabrow0 .here a:hover{
+ background:#fff;color: #5f564c;
}
-
-/* Blog
-------------------------*/
-
-.splash-orange .blog_entry .subject a:link { /* Defining all link styles*/
- color: #000;
+.splash-orange .tabtree .here ul .here a.nolink:hover{
+ color:#cb8f47;
}
-
-.splash-orange .blog_entry .subject a:visited { /* Setting all visited link styles */
- color: #000;
+.splash-orange .coursebox{
+ border-bottom:1px dashed #f0e7de;
}
-
-.splash-orange .blog_entry .subject a:hover { /* Setting all rollover link styles */
- color: #000;
+.splash-orange #categoryquestions tr th{
+ background:#cb8f47;
}
-
-.splash-orange .blog_entry .subject a:active { /* Setting all active link styles */
- color: #000;
+.splash-orange .path-mod-quiz .qnbutton{
+ background:#cb8f47;
+}
+.splash-orange .path-mod-quiz .qnbutton.open{
+ background:#cb8f47;
+}
+.splash-orange .block-region .block .header{
+ background:url([[pix:theme|sbheaderbg2orange]]) top center no-repeat;
+}
+.splash-orange .block .minicalendar td.weekend{
+ color:#cb8f47;
+}
+.splash-orange.pagelayout-redirect {
+ border-top: 1px solid #5f564c;
+}
+.splash-orange #dock {
+ background-color:#cb8f47;
+ border-right:1px solid #7c7165;
+}
+.splash-orange #dock .dockedtitle {
+ border-top:1px solid #b6916a;
+ border-bottom:1px solid #5f564c;
}
View
632 theme/splash/style/sl.css
@@ -1,632 +0,0 @@
-/********************************************************
-**
-** Theme name: Splash
-** Creation Date: 30/06/09
-** Author: Synergy Learning
-** Author URI: http://synergylearning.com
-**
-*********************************************************/
-
-/* Global
-------------------------*/
-html { /* Reset html page to 0 padding/margins */
- padding: 0;
- margin: 0;
- background: #fff;
-}
-
-body { /* Define margins and background colour/image */
- background: url([[pix:theme|bg]]) top left repeat-x #fff;
- margin: 0 auto;
- padding: 0;
- width: 100%;
-}
-
-body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea { /* Set fonttype for site */
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
-}
-
-a:link { /* Defining all link styles*/
- color: #853650;
-}
-
-a:visited { /* Setting all visited link styles */
- color: #853650;
-}
-
-a:hover { /* Setting all rollover link styles */
- color: #6d1523;
-}
-
-a:active { /* Setting all active link styles */
- color: #853650;
-}
-
-a img { /* Image borders*/
- border: none;
-}
-
-a:active {
- outline: none;
-}
-
-.skiplinks { /* hide skip link access keys*/
- display: none;
-}
-
-.skip-block { /* hide skip link access keys in blocks*/
- display: none;
-}
-
-.loginbox.twocolumns .loginpanel {
- border-right: 1px solid #ddd;
-}
-
-.loginpanel, .signuppanel {
- background: url([[pix:theme|loginpanel]]) center top no-repeat;
- height: 480px;
- margin-top: -5px;
-}
-
-.loginbox .loginpanel .subcontent {
- margin: 0 auto;
- clear: right;
- width: 300px;
-}
-/* fix issues conflicting with the floating columns */
-.clearer {
- clear:left;
-}
-
-/* Header
------------------------*/
-
-#page-header { /* Set height for header */
- float: none;
- padding: 0;
- margin:0;
- color: #fff;
- height: 308px;
- background: url([[pix:theme|pageheaderbgred]]) top center no-repeat;
-
-}
-
-#page-header h1 { /* Style h1 tags for header */
- padding-top: 40px;
- font-size: 1.25em;
- text-align: left;
- margin: 0px;
-}
-
-#page-header h1.inside {
- font-size: 1.25em;
- margin: 0px;
-}
-
-#page-header h4 { /* Style h4 tags for header */
- font-size: 1.0em;
- text-align: left;
- margin-top: 40px;
- color: #333;
-}
-
-#headermenu { /* user info positioning and styles */
- float: right;
- margin: 20px 0 0 0;
- font-size: 0.9em;
- text-align: right;
- width: 210px;
- height: 80px;
- padding: 5px;
- position: relative;
-}
-
-#headermenu h1{ /* styling h1 for user welcome message*/
- margin:0;
- padding: 0;
- color: fff;
-}
-
-.spacing {
- padding-top: 20px;
-}
-
-#userdetails { /* positioning of user login/outdetails */
- float: left;
- margin-right: 10px;
- width: auto;
- height: 60px;
-}
-
-#userdetails a:link { /* styling user detail links when logged in*/
- color: #f2f2f2;
-}
-
-#userdetails a:visited { /* styling user detail links when logged in */
- color: #f2f2f2;
-}
-
-#userdetails a:hover { /* styling user detail links when logged in*/
- color: #f2f2f2;
-}
-
-#userdetails_loggedout { /* positioning of user login/outdetails */
- float: left;
- margin-right: 10px;
- height: 60px;
-}
-
-#userdetails_loggedout h1{ /* positioning of user h1 tag*/
- padding-top:40px
-}
-
-#userdetails_loggedout a:link { /* styling user detail links when logged out*/
- color: #f2f2f2;
-}
-
-#userdetails_loggedout a:visited { /* styling user detail links when logged out */
- color: #f2f2f2;
-}
-
-#userdetails_loggedout a:hover { /* styling user detail links when logged out*/
- color: #f2f2f2;
-
-}
-
-.prolog {
- margin-top: 25px;
- margin-bottom: 0px;
-}
-
-.prolog a:link { /* styling user detail links */
- color: #f2f2f2;
-}
-
-.prolog a:visited { /* styling user detail links */
- color: #f2f2f2;
-}
-
-.prolog a:hover { /* styling user detail links */
- color: #f2f2f2;
-}
-
-.prolog a:active { /* styling user detail links */
- color: #f2f2f2;
-}
-
-#userimg { /* styling user profile picture*/
- float: right;
- margin-left: 4px;
-}
-
-#headermenu .langmenu {
- position:relative;
- top:35px;
- width:210px;
-}
-
-#colourswitcher { /* colour switcher styles */
- float: right;
- height: 30px;
- width: 210px;
- color: #000;
- background: url([[pix:theme|selectbg]]) top left repeat-x;
- text-align: left;
- padding: 2px 0px 0px 0px;
- position: absolute;
- top: 66px;
- right: 4px;
-}
-
-#colourswitcher ul {
- padding: 0;
- margin: 0;
-}
-
-#colourswitcher ul li {
- margin:0;
- padding: 0;
- display: inline;
- list-style: none;
-}
-
-#colourswitcher p {
- color: #7c3041;
-}
-
-#logobox { /* holder background for logo*/
- height: 185px;
- width: 252px;
- margin: auto;
- text-align: center;
- background: url([[pix:theme|lbgv2]]) no-repeat;
- float: left;
-}
-
-#logobox a.nologoimage {
- display: block;
- font-size: 30px;
- font-weight: 800;
- margin-top: 40px;
-}
-
-#logobox img {
- max-width: 230px;
-}
-
-#logobox h1{
- padding-top: 40px;
- font-size: 2.0em;
- color: #333;
- text-align: center;
-}
-
-#logobox h4{
- padding-top:20px;
- margin:0;
- text-align: center;
- font-size: 0.9em;
- color: #666;
-}
-
-/* Custom Menu
------------------------*/
-
-#dropdownmenu { /* holder for custom menu */
- height:45px;
- margin: 0;
- padding-top: 0px;
-}
-
-#custommenu { /* setting font colour and removing borders */
- padding-left: 6px;
- height: 33px;
- font-size: 1.2em;
- margin-top: 0;
- padding-top: 0;
-}
-
-#custommenu .yui3-menu-label,
-#custommenu .yui3-menuitem-content {
- text-decoration:none;
-}
-
-#custommenu .yui3-menu-label-active,
-#custommenu .yui3-menu-label-menuvisible,
-#custommenu .yui3-menuitem-active .yui3-menuitem-content {
- text-decoration:underline;
- background-color: transparent;
-}
-
-#custommenu .yui3-menu-content,
-#custommenu .yui3-menu-horizontal .yui3-menu-label,
-#custommenu .yui3-menu-horizontal .yui3-menuitem-content {border-width: 0;}
-
-#custommenu .yui3-menu-content ul.first-of-type li {
- border-right: 1px solid #e6d0d4;
-}
-
-#custommenu .yui3-menu.custom_menu_submenu .yui3-menu-content {
- background:#6d1523;
- border:1px solid #fff;
- color: #fff;
-}
-
-#custommenu .yui3-menu.custom_menu_submenu .yui3-menu-content a {
- color: #fff;
-}
-
-#custommenu .yui3-menu-horizontal.javascript-disabled .yui3-menu-content,
-#custommenu .yui3-menu-horizontal.javascript-disabled .yui3-menu-content .ul {
- border-width:0;
-}
-
-#custommenu .yui3-menu-label-active,
-#custommenu .yui3-menu-label-menuvisible,
-#custommenu .yui3-menuitem-active .yui3-menuitem-content {
- background-color: #605f5f;
- color: #FFF;
-}
-
-/* Breadcrumb Navbar
------------------------*/
-
-.navbar { /* moodles breadcrumb holder*/
- border-width: 0 0 1px 0;
- margin: 0;
- padding: 5px 15px;
- font-size: 0.9em;
- color: #333;
-}
-
-.navbar .navbutton { /* Defining settings for navbutton within navbar */
- margin-top: 0;
-}
-
-.breadcrumb .sep { /* change colour and size of breadcrumb arrows */
- font-size: 0.8em;
- color: #999;
-}
-
-/* Content
------------------------*/
-#page { /* Defining fluid or fixed theme.. for fluid theme change width to 100%*/
- width: 960px;
- margin: auto;
-}
-
-#page-content { /* setting white background holder for all content under header*/
- background: #fff;
- margin-top:10px;
-}
-
-#page-content h1{
- font-size: 1.3em;
-}
-
-.box.generalbox {
- border: none;
- background: #fafafa;
- padding: 5px;
-}
-
-.coursebox {
- padding-left:5px;
- border-bottom: 1px dashed #e1d2d5;
-}
-
-td.left.side, td.side {
- border:none;
- background: none;
-}
-
-.path-course-view.section .left.side {
- background: none;
-}
-/* topics and weekly
------------------------*/
-
-ul.topics li.section, ul.weeks li.section {
- border: 1px dotted #cfdae3;
- background: #ffffff url([[pix:theme|ui-bg_inset-hard_100_ffffff_1x100]]) 50% 50% repeat-x;
- font-weight: normal;
- color: #212121;
-}
-
-ul.topics li.section {
- border-style:solid;
-}
-
-ul.topics li#section-0, ul.weeks li#section-0 {
- border: 1px solid #bbc7ce;
- background: #d3dbe0;
- color: #222222;
-}
-ul.weeks li.section.current, ul.topics li.section.current {
- border: 1px solid #999999;
- font-weight: normal;
- color: #212121;
-}
-div.summary {
- padding:5px 0px 5px 0px;
-}
-
-/* Sideblocks
------------------------*/
-
-.block { /* general settings for sideblocks */
- margin-bottom: 20px;
- border: none;
-}
-
-.block hr { /* hiding the hr in sideblocks */
- display: none;
-}
-
-.commands {
- padding-bottom: 10px;
- clear: both;
-}
-
-.searchform {
- padding-top: 10px;
-}
-
-.block-region {
- background: #fff;
-}
-
-.block-region .block .header { /*-- right block header --*/
- background: url([[pix:theme|sbheaderbg2]]) center no-repeat;
- height: 25px;
- color: #fff;
- padding: 12px 5px 5px 5px;
-}
-
-.block-region .block .header h2{ /*-- right block text --*/
- color: #333;
- padding: 0 0 0 10px;
-}
-
-.block-region .block .content { /*-- right block content --*/
- background: #f2f2f2;
- padding: 4px 5px 5px;
-}
-
-.block .title h2 { /* Settings for h2 tags in sideblock headers */
- color: #35251B;
- font-weight: normal;
- font-size: 1.2em;
- margin: 0;
-}
-
-.tree_item { /* tree item seperator for sideblocks */
- border-bottom: #e2e2e2 1px solid;
-}
-
-/* Mini Calendar
-------------------------*/
-
-.block .minicalendar { /* setting background colour for mini cal*/
- background: #fff;
-}
-
-.block .minicalendar td.weekend { /* setting weekend date colour */
- color:#7c3041;
-}
-
-/* Forum
-------------------------*/
-
-.forumpost .topic { /* forum topic header*/
- background: #fff;
- border-bottom-color: #da5013;
-}
-
-.forumpost .topic .subject { /* forum subject section inside topic header */
- font-weight: bold;
- font-size: 1.1em;
- padding-left: 5px;
- color: #333;
- background: #d3dbe0;
-}
-
-.forumpost .topic .author { /* author area within topic header */
- font-size: 0.9em;
-}
-
-.forumpost .topic.starter { /* content start point */
- border-bottom:1px dashed #e2e2e2;
-}
-
-.forumpost .content { /* content area within forum */
- background: #fff;
- border-width: 0 0 1px 0;
- border-style: dashed;
- border-color: #e2e2e2;
-}
-
-.path-mod-forum .forumheaderlist {
- width: 100%;
- border:none;
-}
-
-.path-mod-forum .forumheaderlist td {
- border: none;
-}
-
-tr.header td.starter {
- border: 1px solid #bbc7ce;
- background: #d3dbe0;
-}
-
-.forumheaderlist .header.topic {
- border-top: 1px solid #bbc7ce;
- border-left: 1px solid #bbc7ce;
- border-right: 1px solid #bbc7ce;
- border-bottom: 1px solid #bbc7ce;
- background: #d3dbe0;
-}
-
-.forumheaderlist .header.author {
- border-top: 1px solid #bbc7ce;
- border-right: 1px solid #bbc7ce;
- border-left: 1px solid #bbc7ce;
- border-bottom: 1px solid #bbc7ce;
- background: #d3dbe0;
-}
-
-.forumheaderlist .header.replies {
- border-top: 1px solid #bbc7ce;
- border-right: 1px solid #bbc7ce;
- border-bottom: 1px solid #bbc7ce;
- background: #d3dbe0;
-}
-
-.forumheaderlist .header.lastpost {
- border-top: 1px solid #bbc7ce;
- border-right: 1px solid #bbc7ce;
- border-bottom: 1px solid #bbc7ce;
- background: #d3dbe0;
-}
-
-/* Course
----------------------------*/
-
-h2.headingblock {
- border-width: 0 0 1px 0;
- padding: 5px 5px 2px;
- font-weight: normal;
- font-size: 1.2em;
- background: none;
- color: #251c17;
-}
-
-.course-content .section.main {
- background: #fff;
- border: 1px solid #ddd;
-}
-
-.course-content .section.current {
- background: #666;
- color: #fff;
-}
-
-ul.topics li#section-0, ul.weeks li#section-0 {
- background: #8b383e;
- border: 1px solid #ccc;
-}
-
-.course-content .section.main .content {
- background: #fff;
-}
-
-/* dock left
----------------------------*/
-#dock.dock.dock_left_vertical { /* background style for dockpanel */
- background: #000;
- border: none;
-}
-
-.dockedtitle, .dockedtitle .activeitem { /* styles for docked item background */
- background: #fff;
- color: #333;
- border-right: 1px dashed #656565;
- border-left: 1px dashed #656565;
-}
-
-/* Footer
----------------------------*/
-#page-footer { /* settings for footer container */
- position:relative;
- background: url([[pix:theme|footerbg]]) top left repeat-x #f4f4f4;
- width: 100%;
- margin-top: -2px;
-}
-
-.helplink {
- padding-top: 5px;
-}
-
-#footer-wrapper {
- margin: auto;
- width: 960px;
-}
-
-#footnote {
- margin: 20px 0px;
- padding: 0px 5px;
- text-align: right;
-}
-
-.pagelayout-redirect {background-position:0 0;border-top:1px solid #853650;}
-.pagelayout-redirect #content {margin-top:150px;}
-
-.pagelayout-report #page #page-header {
- width:960px;
- margin:0 auto;
-}
-
-/* Splash Theme Specific settings for Administrators to customise css.
----------------------------*/
-[[setting:customcss]]
View
6 theme/splash/version.php
@@ -19,12 +19,12 @@
*
* @package theme
* @subpackage splash
- * @copyright 2010 Caroline Kennedy of Synergy Learning
+ * @copyright 2012 Caroline Kennedy - Synergy Learning
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2011082400; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2011081700; // Requires this Moodle version
+$plugin->version = 2012013000; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2012020200.05; // Requires this Moodle version