mirror of
https://github.com/moodle/moodle.git
synced 2025-03-10 10:58:38 +01:00
The code to print blocks in now in theme layout.php files. (Or in moodle_core_renderer::handle_legacy_theme) Code for printing blocks everywhere else has been stripped out. (Total diffstat 1225 insertions, 2019 deletions) The way the HTML for a block instance is generated has been cleaned up a lot. Now, the block_instance generates a block_contents object which gives a structured representation of the block, and then $OUTPUT->block builds all the HTML from that. How theme config.php files specify the layout template and block regions by page general type has been changed to be even more flexible. Further refinement for how the theme and block code gets initialised. Ability for scrits to add 'pretend blocks' to the page. That is, things that look like blocks, but are not normal block_instances. (Like the add a new block UI.) Things that are still broken: * some pages in lesson, quiz and resource. I'm working on it. * lots of developer debug notices pointing out things that need to be updated.
<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>