mirror of
https://github.com/moodle/moodle.git
synced 2025-03-10 10:58:38 +01:00
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F $THEME is now initialised at the same time as $OUTPUT. Old functions like theme_setup are deprecated in favour of methods on $PAGE. There is a new theme_config class in outputlib.php that deals with loading the theme config.php file. CSS used to be served by themes styles.php files calling a function in weblib.php. Now it works by each theme's styles.php file doing $themename = basename(dirname(__FILE__)); require_once(dirname(__FILE__) . '/../../theme/styles.php'); which is less code to be copied into each theme. (Old-style styles.php files still work thanks to some code in deprecatedlib.php.) Admin UI for choosing a theme cleaned up. A couple of theme-specific hard-coded hacks like $THEME->cssconstants and $THEME->CSSEdit have been replaced by a more generic $THEME->customcssoutputfunction hook. See examples at the end of outputlib.php Also: * Fix setting the theme in the URL, which seems to have been broken since 1.9. * Fix up errors on a few pages caused by the new initialisation order. * MDL-19097 moodle_page::set_course should not set $COURSE unless it is $PAGE. * httpsrequired() from moodlelib.php moved to $PAGE->https_required(). * Move has_started() method to the renderer base class. * Further fixes to display of early errors. * Remove print_header/footer_old from weblib. I did not mean to commit them before.
<div style="text-align:center;"> <h2 style="margin-bottom:2px;">Anomaly Theme Pack</h2> <h3 style="margin:0">by <a href="http://newschoollearning.com" title="NewSchool Learning: Standards Based Moodle Designs">Patrick Malley</a></h3><h4 style="margin:3px">Version: 20090119</h4> </div> <div> </div> <h3 style="margin-bottom:5px; margin-top:5px;">Changing Your Color Preference</h3> <p>To assist you in making color changes, I have separated all color attributes into separate CSS documents named styles_[color].css where [color] is actually the name of the different color variants.</p> <p>The default color for this theme is green. To select a different color variant: </p> <ol> <li>Remane styles_select.css to styles_green.css.</li> <li>Rename the styles_[color].css variant that you would like to use to styles_select.css.</li> <li>That's it. Where you expecting something trickier?</li> </ol> <h3 style="margin-bottom:5px; margin-top:5px;">Editing your Site Tagline</h3> <p>This theme uses PHP code in header.html that automatically pulls the site description that you have entered in Admin > Front page > Front page settings and places it directly below your site name at the top of the front page.</p> <p>Here's the code in header.html that is responsible for this (highlighted in red; found on line 58):</p> <code style="display:block; padding:10px; margin:10px; background:#f6f6f6; border:1px solid #eee;"> <h1 class="headermain"><?php echo $heading ?><span style="color:#ff0000"><br /><span><?php echo $COURSE->summary //Retrieves Site Description from Front Page -> Front Page Settings ?></span></span></h1> </code> <p>If you don't want to show a tagline, simply delete the code highlighted in red above from header.html and save.</p> <p>If you want to show a tagline, BUT would prefer your tagline to be something other than your site description, you can manually enter your Tagline into header.html in the same sort of way.</p> <p>For example, if I wanted to display my tagline - Standards Based Moodle Designs - I would edit the above code as follows:</p> <code style="display:block; padding:10px; margin:10px; background:#f6f6f6; border:1px solid #eee;"> <h1 class="headermain"><?php echo $heading ?><br /><span><span style="color:#ff0000;">Standards Based Moodle Designs</span></span></h1> </code> <h3 style="margin-bottom:5px; margin-top:5px;">Licensing</h3> <p>This theme is licensed under <a href="http://docs.moodle.org/en/License">Moodle's GNU General Public License</a>. Feel free to use it, share it and edit it as you see fit. All that I ask is that you give me credit for the work, and do not ever take credit for making it yourself.</p> <p>Please enjoy the theme.</p>