PacktLib: Moodle 1.9 Theme Design: Beginner's Guide

Moodle 1.9 Theme Design

Credits

About the Author

About the Reviewer

Preface

An Introduction to Moodle

What are Virtual Learning Environments?

What types of VLEs are there?

What are the advantages of using a VLE?

What is Moodle?

Why should I use Moodle?

What will you be doing?

What skills will you need?

Tools for the job

Summary

Moodle Themes

Important preliminary points

What is a Moodle theme?

Browsing and selecting a Moodle theme

Time for action—browsing and selecting a Moodle theme

Theme types

Time for action—browsing the 'Standard' theme folder

Searching for and downloading Moodle themes

Time for action—searching for Moodle themes

Installing a new Moodle theme

Time for action—downloading a new Moodle theme

Time for action—extracting and installing your Moodle theme

Moodle's theme settings

Time for action—forcing users to use your theme choices

Theme settings list

Summary

Customizing the Header and Footer

Important preliminary points

Customizing the header

Time for action—making a copy of the standard theme

Time for action—copying your logo to your mytheme directory

Time for action—adding the logo code to your header.html file

Time for action—adding the logo code to your header.html file again!

Making your own Moodle logo visible

Time for action—changing the title text

Customizing the footer

Time for action—deleting the Moodle logo

Time for action—deleting the login info text

Time for action—adding your own footer text

Browser compatibility—checking whether your changes have worked

Time for action—installing Mozilla Firefox

Time for action—checking whether your changes have worked

Summary

Adjusting the Colors and Fonts

Important preliminary points

Installing Firebug and the Web Developer Toolbar

Time for action—installing the Firebug extension for Firefox

Cascading Style Sheets and Moodle

Time for action—creating a new Cascading Style Sheet

Changing the default font

Time for action—changing the default font by using Firebug

Time for action—making our changes permanent

Setting the font color and size

Time for action—changing the font color

Time for action—setting the font size

Setting the link colors

Time for action—changing the link colors

Changing the background

Time for action—changing the background color

Accessibility and Moodle

Summary

Changing the Layout

Full screen versus reduced width theme

Time for action—choosing a reduced (fixed) width theme

Setting a theme's width

Time for action—changing your theme to a fixed width design

Time for action—adding a border and some padding to your theme

Fixed versus liquid designs

Changing the block's column widths

Time for action—changing the width of the block columns

Setting the minimum and maximum width of the blocks

Time for action—changing our theme back to a liquid layout

Time for action—setting the minimum and maximum block widths

Summary

Planning your Moodle Theme

Important preliminary points

Know your audience

Time for action—downloading and installing a theme for children

Time for action—downloading and installing themes for those above 12 years old

Time for action—downloading a Moodle theme for higher education

Gathering our assets

The pix folder

Designing your design

Time for action—looking at other Moodle sites

Creating a mockup using software

Creating a design using graphics software

Time for action—creating the header, footer, and menu in Photoshop

Time for action—creating the logo, menu text, and login info text

Time for action—creating a block graphic by using Photoshop

Summary

First Steps: Creating your First Complete Moodle Theme

Creating a new theme

Time for action—copying the standard theme

Time for action—setting a parent theme

Copying the header and footer files

Time for action—copying the header.html and footer.html files

Theme folder housework

Time for action—creating our stylesheet

Time for action—deleting CSS files that we don't need

Let's make some changes

Time for action—checking our setup

Time for action—one more change

Another theme setup

Time for action—preparing our new theme

Summary

Creating your Moodle Theme from your Mockup: Slice and Dice

Creating the header

Time for action—setting the header size and background color

Time for action—setting the margins and adding a logo

Creating the menu

Time for action—creating the menu.php file

Time for action—creating the menu block

Creating the footer

Time for action—creating the footer bar

Setting the font and link styles

Time for action—setting the body font

Time for action—changing the link styles

Time for action—changing the menu font style

Changing the icons

Time for action—changing the icon set

Changing icons one at a time

Time for action—changing icons one at a time

Summary

Under the Hood: Style your Navigation, Login Screen, and Blocks

Changing the login splash page

Time for action—opening the login page

Time for action—changing the border around the central box

Changing the width of the sideblocks

Time for action—copying and pasting the width code from index.php to config.php

Changing the appearance of the blocks

Time for action—creating the block header background

Time for action—changing the block header background

Time for action—reducing the rounded content corners

Time for action—creating the sideblock content background graphic

Time for action—changing the block content background

Styling the breadcrumb trail

Time for action—copying a style from another theme

Testing your changes

Summary

Under the Hood: Theming Core Functionality and Modules

Theming the central area of our Moodle site

Time for action—adding a new course category and course to Moodle

Theming the course category section

Time for action—changing the background color

Time for action—changing the header fonts

Theming the course view

Time for action—changing the font color

Time for action—changing the background color

Time for action—copying the show/hide icons

Changing the appearance of the core modules

Time for action—changing the forum summary box

Time for action—customizing the forum

Time for action—customizing the forum posts

Time for action—creating a glossary

Time for action—customizing the glossary resource

Summary

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Further Enhancements

Glossary of Useful Terms and Acronyms

Pop quiz—Answers

Pop quiz—Answers

Pop quiz—Answers

Pop quiz—Answers

Pop quiz—Answers