Getting Started With Themes in Moodle
Getting Started With Themes in Moodle
Getting Started With Themes in Moodle
We Won'
This is NOT a technical workshop
No prior experience expected HTML and CSS not covered
Getting started
Why use themes? Build local, deploy global Tools you need Dont re-invent the wheel!
Building in Dreamweaver is
extremely difcult. I usually edit using a text editing tool.
on your machine and edit this directly. See changes instantly as you make them
A Text editor
Textpad (Windows) Smutron (OSX) & CSSEdit (OSX)
Theme Selector
The theme selector allows you to apply a selected theme at a site level.
PHP les
cong.php styles.php docstyles.php meta.php
CSS les
syles_layout.css styles_fonts.css styles_color.css
HTML les
header.html footer.html readme.html
Other les
favicon.ico screenshot.jpg
!!WARNING!!
If this is enabled you will need to make sure you have every image in Moodles pix folder replicated inside your theme. If any images are missing they will appear as broken on your theme.
Version Notice
This is a new tag that will only operate in versions 1.8 and above.
Demo Use: <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="<?php echo $CFG->httpswwwroot ?>/theme/funky/styles_ie6.css" /> <![endif]-->
Header
Footer
<?php echo $title ?> <?php echo $CFG->themewww .'/'. current_theme() ?> <?php echo $COURSE->summary ?> <?php print_navigation("$navigation"); ?> <?php echo $button; ?> <?php echo $menu; ?> <?php echo $loggedinas; ?> <?php echo $homelink; ?>
*footer.html only *footer.html only
<?php if ($home) { ?> <?php } else if ($heading) { ?> <?php } ?> <?php if ($navigation) { ?> <?php } else if ($heading) { ?> <?php } ?> <?php if (!empty($performanceinfo)) { echo $performanceinfo; } ?>
screenshot.jpg Display a screenshot of how the theme will look in the moodle admin Theme Selector If no screenshot is there, moodle will try and render the page as best it can as a preview.
!!WARNING!!
If this is enabled you will need to make sure you have every image in Moodles pix folder replicated inside your theme. If any images are missing they will appear as broken on your theme.
That is, in order to use an alternate icon set associated to a specic theme, you need to make a whole tree of icons in the pix subdirectory of the theme. Your pix folder will look like the example below, probably with some more themespecic pictures included:
input { background: #eebaba; } .article_seperator { background-color: #6c3434; } #header-description { position: absolute; top: 40px; text-align: left; width: 400; right: 120px; font-size: 1.3em; line-height: 135%; } .breadcrumb ul li .sep { color: #dddddd; } a#corner { background: url(pix/moodle_donate.png) top right no-repeat !important; }
Thankyou
Presenter: Julian Ridden Email: [email protected] Twitter: moodleman www: http://moodleman.net
http://www.moodleman.net