javiereguiluz/easybook — pull request #61 by magabriel (2012-07-24 22:19:59+00:00)
Title: Added mobile theme

This adds a mobile theme to easybook based on JQuery Mobile.

## How does it work?
- Just publish your book with the new theme (provided you already added an edition to your book's config.yml)

```
book publish easybook-doc-es mobile
```

## New functionalities
- Easy to use user interface, adapted to be used on cell phones and tablets.
- The book will have a header and footer with navigation buttons.
- An existing Table of Contents will be used to construct a navigational menu (if the book doesn't define a TOC, a hidden one will be added anyway). The menu is retractable by clicking the corresponding header/footer button.
- Existing images with captions will be turned clickable. A tooltip baloon will be shown with the caption when the image is clicked.
- A definition list can be used to define an interactive glossary, where all the terms found in the text will be clickable to reveal the definition description in a tooltip balloon.

## Changes included:
- Added the ability to define theme-level plugins. Needed to be able to provide exclusive functionality to mobile editions without having to add the same plugins for every book. Three new plugins are provided as part of the Mobile theme.
- Idem for a theme to provide its own javascript resources and images. Needed to include JQuery related source files and interactivity.
- Idem for a book to provide its own javascripts. Needed so the interactive functionality could be customized in a per-book basis.
- Included new labels in the translation files. Only correct in the english and spanish files, as I am not proficient in all 9 languages ;) I am sure someone will contribute the right translations.
- Included the new edition "mobile" with the new theme "mobile" in both english and spanish documentation config.yml.
- Included phpunit tests for the new functionalities.

## What's missing?
- The documentation files are yet to be modified to reflect those changes. I prefer to wait for this pull request to be merged to do the modifications.