Skip to content

Commit

Permalink
theme init
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Feb 26, 2018
1 parent e004cba commit e25c20f
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 1 deletion.
46 changes: 45 additions & 1 deletion README.md
Expand Up @@ -11,4 +11,48 @@ composer require --prefer-dist fecshop/theme_rosegal
"fecshop/theme_rosegal": "~1.0.1"
```

hehe
安装
----

1.添加配置文件


`@vendor/fecshop/theme_rosegal/config/fecshop_theme_rosegal.php` 文件复制到
`@common/config/fecshop_third_extensions/fecshop_theme_rosegal.php`


2.store添加模板配置

@appfront/config/fecshop_local_services/Store.php 文件中的 `thirdThemeDir` 添加模板路径

```
'@fecshop/theme/rosegal/appfront/theme/rosegal',
```

添加完成的样子为:

```
'thirdThemeDir' => [
'@fecshop/theme/rosegal/appfront/theme/rosegal',
],
```

如果appfront下面所有的store都想使用该模板,那么,您需要在每一个store配置中的
'thirdThemeDir'添加模板路径配置

当然,您可以每个`store`使用不同的模板,
如果您本地模板路径下有文件,那么您需要将store的配置参数`localThemeDir`对应的
值,修改成一个新的文件路径(因为本地的模板路径下的模板文件优先级高,
会覆盖第三方模板的模板文件,因此,您可以设置一个新的本地模板路径)


3.添加完成后,就可以访问了









Empty file.
Empty file.
66 changes: 66 additions & 0 deletions config/fecshop_theme_rosegal.php
@@ -0,0 +1,66 @@
<?php
/**
* FecShop file.
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/

return [
/**
* 下面是第三方扩展库包的配置方式
*/
// 这个是扩展extensions的总开关,true代表打开
'enable' => true,
// 各个入口的配置
'app' => [
// 1.公用层
'appfront' => [
// 在公用层的开关,设置成false后,公用层的配置将失效
'enable' => true,
// 公用层的具体配置下载下面
'config' => [
'services' => [
'page' => [
'childService' => [
'asset' => [
'jsOptions' => [
[
'options' => [
'position' => 'POS_END',
],
'js' =>[
'js/rosegal.js',
],
],
],
'cssOptions' => [
[
'css' =>[
'css/rosegal.css',
],
],
],
],

],
],
],
'modules' => [

],
]
],

],

];









0 comments on commit e25c20f

Please sign in to comment.