b14t / default-theme
默认主题,作为蝴蝶效应的模板。
1.0.0
2018-05-17 08:30 UTC
Requires
- php: >=7.1
- bestit/butterfly-effect: ^1.0
Requires (Dev)
- bestit/php_codesniffer: ^0.1.0
- phpunit/phpunit: ~5.0
- symfony/property-access: ^4.1@beta
This package is not auto-updated.
Last update: 2024-09-15 04:42:13 UTC
README
默认主题,作为蝴蝶效应的模板。
配置
主题配置
{
"extra": {
"butterfly-effect": {
"theme": {
"asset-folder": "In which folder are your public files? optional, filled with 'public' by default.",
"css": [
"Array of your optional css files. You can use absolute URLs oder a relative path to your asset folder starting with ./."
],
"js": [
"Array of your optional css files. You can use absolute URLs oder a relative path to your asset folder starting with ./."
]
}
}
}
}
Laravel 服务提供者
创建服务提供者并扩展
namespace ButterflyEffect\DefaultTheme\ThemeProvider.
如果您更改了我们的 composer 文件的默认路径,请将提供者属性 $composerFile 改为所需路径。
/** * @var string Where to find the composer file for this theme. */ protected $composerFile = __DIR__ . '/../../composer.json';
在您的蝴蝶效应中激活主题
请定义环境变量 BUTTERFLY_EFFECT_THEME_DEFAULT,并使用您主题的名称,以便它被使用。