2017 © Pedro Peláez
 

bolt-extension bolt-parent-theme

Allows the declaration of a theme’s parent, much like Wordpress.

image

wemakecustom/bolt-parent-theme

Allows the declaration of a theme’s parent, much like Wordpress.

  • Sunday, January 18, 2015
  • by lavoiesl
  • Repository
  • 5 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Bolt Parent Theme

Allows the declaration of a theme’s parent, much like Wordpress. Only support Twig templates for now., (*1)

By default, Bolt configures Twig to load files from your theme, but if not found, it will look in app/theme_defaults. This is done using Twig’s feature of having a twig.path., (*2)

Normally, your Twig path will look like this:, (*3)

 - /PATH/theme/THEME
 - /PATH/app/theme_defaults

With this extension, it will look like this:, (*4)

 - /PATH/theme/THEME
 - /PATH/theme/PARENT_THEME
 - /PATH/theme/PARENT_PARENT_THEME
 - /PATH/app/theme_defaults

Important details

  1. The parent theme’s config will also be merged without overwriting the child’s.
  2. The parent theme can have a parent of its own.
  3. As of now, there is no way of managing assets (CSS/JS/images). Perhaps in a future version.

Usage

In your theme, simply declare its parent by adding this to your config.yml:, (*5)

parent: PARENT_THEME

Author

The Versions

18/01 2015

dev-master

9999999-dev

Allows the declaration of a theme’s parent, much like Wordpress.

  Sources   Download

MIT

The Requires

 

18/01 2015

v1.0

1.0.0.0

Allows the declaration of a theme’s parent, much like Wordpress.

  Sources   Download

MIT

The Requires