Building a Moodle theme with bootstrap

36
UILDING WITH BOOTSTRAP BAS BRANDS @BASBRANDS MOODLE DEVELOPER 2013

description

This presentation is on the Moodle Bootstrap theme based on the Twitter Bootstrap Framework.

Transcript of Building a Moodle theme with bootstrap

Page 1: Building a Moodle theme with bootstrap

UILDING WITH BOOTSTRAPBAS BRANDS @BASBRANDS

MOODLE DEVELOPER

2013

Page 2: Building a Moodle theme with bootstrap

ABOUT ME

Bas Brands

The Netherlands

Moodle Developer since 2009.

Page 3: Building a Moodle theme with bootstrap

INTRODUCTION

This presentation is on the Moodle Bootstrap theme based on the Twitter Bootstrap Framework.

It will show you how the Moodle Bootstrap theme was developed how it works and is evolving.

The future of Bootstrap for Moodle is exciting and will help developers create user interfaces without needing designer skills.

Page 4: Building a Moodle theme with bootstrap

TERMS USEDTerm Explanation

Twitter Bootstrap The Bootstrap framework available on bootstrap.github.com

Bootstrap Same as Twitter Bootstrap

The Bootstrap theme

The theme created for Moodle base on Bootstrap

Theme Clean The Moodle 2.5 theme that builds on The Bootstrap theme

LESS CSS Object Oriented CSS that needs to be compiled before usage

node.js Server side Javascript used as an application framework

Recess A tool that builds on NODE.js to generate CSS from less files

Page 5: Building a Moodle theme with bootstrap

HISTORY OF THE BOOTSTRAP THEME

The Idea was born during the UK / Ireland Moot

Developers involved in the Moodle 2.4 theme

Bas Brands: Freelance Developer.

David Scotson: Developer at Glasgow university.

Stuart Lamour: Developer at Sussex university.

Paul Hibbitts: Early adopter

Page 6: Building a Moodle theme with bootstrap

ADOPTED INTO MOODLE CORE

The bootstrap theme is available in Moodle version 2.5.

It is called bootstrapbase and can not be selected when you configure your Moodle theme.

Theme “Clean” builds on Bootstrapbase and is available in the theme selector.

If you wish to modify bootstrap you should work from theme “Clean”

Page 7: Building a Moodle theme with bootstrap

WHAT IS BOOTSTRAP?

http://www.webresourcesdepot.com/free-jquery-ui-themes-collection/

Bootstrap is a framework used for building the user interfaces for web based applications.

The introduction on the bootstrap website says:

By nerds, for nerds.

Page 8: Building a Moodle theme with bootstrap

ABOUT BOOTSTRAP

Created by Jacob Thornton and Mark Otto

Page 9: Building a Moodle theme with bootstrap

BOOTSTRAP PROVIDES

Page 10: Building a Moodle theme with bootstrap

WHAT IS A MOODLE THEME?

Moodle themes style and position HTML

They contain. PHP, JavaScript, CSS, HTML

Moodle themes are powerful and complex

Page 11: Building a Moodle theme with bootstrap

THE MOODLE BOOTSTRAP THEME

Page 12: Building a Moodle theme with bootstrap

THE MOODLE BOOTSTRAP THEME

Page 13: Building a Moodle theme with bootstrap

THEMES BUILD ON MOODLE BOOTSTRAP

Theme Red

Page 14: Building a Moodle theme with bootstrap

THEMES BUILD ON MOODLE BOOTSTRAP

Page 15: Building a Moodle theme with bootstrap

THEMES BUILD ON MOODLE BOOTSTRAP

Theme Growdly.com

Page 16: Building a Moodle theme with bootstrap

THEMES BUILD ON MOODLE BOOTSTRAP

Theme Aalborg University

Page 17: Building a Moodle theme with bootstrap

THEMES BUILD ON MOODLE BOOTSTRAP

Theme Aalborg University Denmark

Page 18: Building a Moodle theme with bootstrap

SAMPLE BOOTSTRAP CODE

Page 19: Building a Moodle theme with bootstrap

LESS

Page 20: Building a Moodle theme with bootstrap

LESS FOR MOODLE

Page 21: Building a Moodle theme with bootstrap

COMPILED LESS CODE

Page 22: Building a Moodle theme with bootstrap

LESS STRUCTURE

Page 23: Building a Moodle theme with bootstrap

LESS STRUCTURE

Page 24: Building a Moodle theme with bootstrap

BEYOND BOOTSTRAP: BOOTSWATCHES

Bootswatches are themes for Twitter Bootstrap

They usually contain 2 files

Bootswatch.less

Variables.less

http://blog.alfonsorv.com/bootswatch-free-themes-for-twitter-bootstrap/

Page 25: Building a Moodle theme with bootstrap

SAMPLE BOOTSWATCH THEME

Page 26: Building a Moodle theme with bootstrap

SAMPLE BOOTSWATCH THEME

Page 27: Building a Moodle theme with bootstrap

FUTURE DEVELOPMENT: EDITOR STYLING

Page 28: Building a Moodle theme with bootstrap

FUTURE DEVELOPMENTACCORDION TOPICS

Page 29: Building a Moodle theme with bootstrap

FUTURE DEVELOPMENT COURSE PROGRESS

Page 30: Building a Moodle theme with bootstrap

FUTURE DEVELOPMENT COURSE GALLERIES

Page 31: Building a Moodle theme with bootstrap

FUTURE DEVELOPMENTTYPE AHEAD COURSE SEARCH

https://github.com/hitteshahuja/Search-Courses---Autocomplete-

Page 32: Building a Moodle theme with bootstrap

FUTURE DEVELOPMENTCLIPPY!

Page 33: Building a Moodle theme with bootstrap

MORE FUTURE PLANS

Grid Course Format

Embedding HTML5 Video

Carousel for images

Course overview Grid with Course images

Page 34: Building a Moodle theme with bootstrap

FURTHER READING

Page 35: Building a Moodle theme with bootstrap

FURTHER READING

Blogpost on this presentation

Preview the Bootstrap theme

Download the Moodle Bootstrap 2.4 theme The 2.5 version is in Moodle core.

Bootsnipp.com http://bootsnipp.com/resources

Bootstrap Theme on Moodle docs

Gavin Henricks review on theme Clean.

Page 36: Building a Moodle theme with bootstrap

END OF PRESENTATION

Thanks to:

David Scotson,

Stuart Lamour,

Mary Evans,

Paul Hibbitts,

Martin Dougiams

The iMoot organizers