ezsystems/ezpublish-kernel — pull request #478 by lolautruche (2013-07-31 16:33:03+00:00)
Title: [WIP] EZP-20340 - Theme feature

**DO NOT MERGE**

*Themes* in eZ Publish 5 are what was known as *design* in eZ Publish 4.x and would allow the following:

* Possibility to define a main theme and a collection fallback themes for a given siteaccess.
* When loading a template, the system will check in theme provider bundles and in global directory (`ezpublish/Resources/`)if it can be loaded from each of them. Main theme will be checked first, fallback themes then.
* When loading an asset (e.g. css/js files) with `asset()` helper, the system will have the same behavior than for templates.

For implementation, we will use [LiipThemeBundle](https://github.com/liip/LiipThemeBundle), which already does most of the job for the template part. For the asset part, LiipThemeBundle needs to be extended, either by contribution or by implementation directly in EzPublishCoreBundle.

## TODO:

* [ ] Implement correct template loading order
* [ ] Add cache layer for templates path to avoid stat calls
* [ ] Add semantic configuration
* [ ] Handle priority for theme provider bundles
* [ ] Implement for assets