定制 wemakecustom/bolt-parent-theme 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wemakecustom/bolt-parent-theme

最新稳定版本:v1.0

Composer 安装命令:

composer require wemakecustom/bolt-parent-theme

包简介

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

README 文档

README

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

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.

Normally, your Twig path will look like this:

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

With this extension, it will look like this:

 - /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:

parent: PARENT_THEME

Author

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 7
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-18