123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <?php
- /**
- * Fect File
- * @author terry
- */
- // set namespace alisa
- Yii::setAlias('@fectfurnilife', dirname(dirname(dirname(__DIR__))).'/addons/fecmall/furnilife_theme/');
- return [
- // 插件信息
- 'info' => [
- 'name' => 'theme_furnilife',
- 'title' => 'furnilife theme',
- 'description' => 'furnilife theme',
- 'author' => 'terry',
- ],
- // 插件管理部分
- 'administer' => [
- 'install' => [
- 'class' => 'fectfurnilife\administer\Install',
- // 其他引入的属性,类似yii2组件的方式写入即可
- 'test' => 'test_data',
- ],
- 'upgrade' => [
- 'class' => 'fectfurnilife\administer\Upgrade',
- ],
- 'uninstall' => [
- 'class' => 'fectfurnilife\administer\Uninstall',
- ],
- ],
- // 各个入口的配置
- 'app' => [
- // 1.appfront层
- 'appfront' => [
- // appfront入口的开关,如果false,则会失效
- 'enable' => true,
- 'config' => [
-
- // yii class rewrite map
- 'yiiClassMap' => [
-
- ],
- // 重写model和block
- 'fecRewriteMap' => [
- '\fecshop\app\appfront\modules\Cms\block\home\Index' => '\fectfurnilife\app\appfront\modules\Cms\block\home\Index',
- '\fecshop\app\appfront\modules\Customer\block\address\Edit' => '\fectfurnilife\app\appfront\modules\Customer\block\address\Edit',
- ],
- 'modules' => [
- 'catalog' => [
- /**
- * Yii2 controllerMap 重写机制。
- */
- 'params'=> [
- //##############################
- //# Product部分设置 ##
- //##############################
- // 产品页面图片的设置
- 'productImgSize' => [
- //'small_img_width' => 103, // 底部小图的宽度
- //'small_img_height' => 103, // 底部小图的高度
- //'middle_img_width' => 470, // 主图的宽度
- ],
- ],
- ],
-
- 'checkout' => [
- 'controllerMap' => [
- 'cartinfo' => 'fectfurnilife\app\appfront\modules\Checkout\controllers\CartInfoController',
- ],
- ],
-
- 'cms' => [
- 'controllerMap' => [
- 'home' => 'fectfurnilife\app\appfront\modules\Cms\controllers\HomeController',
- ],
- 'params' => [
- // 首页的Feature Products部分的sku列表
- 'home_featured_products' => [
- 'p10001-kahaki-xxl-t4', 'p10001-black0-xl', 'op0002-33', 'men0003', 'sk0002', 'sk0008'
- ],
- // 首页的New Products部分的sku列表
- 'home_new_products' => [
- 'sk10004-001', 'sk10003-001', 'sk10002-002', 'sk10002', 'sk1000-khak', 'po0001'
- ],
- // 首页的OnSale部分的sku列表
- 'home_onsale_products' => [
- 'p10001-kahaki-l', 'sk10003-001', 'p10001-black0-xl', 'men0003', 'sk10004-001', 'sk10002', 'sk1000-khak', 'po0001',
- ],
- // 首页楼层部分,一层的配置。
- 'home_floor_one' => [
- 'slider' => [
- 'title' => 'BEDROOM FURNITURE',
- 'items' => [
- [
- 'name' => 'Nightstands',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Beds',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'HeadBoards',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Chests & Dressers',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Bedroom Sets',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Mattretsser',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Armories',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Small Beds',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Larger Beds',
- 'url' => '/wedding-dresses',
- ],
- ],
- ],
- 'product_skus' => [
- 'p10001-kahaki-xxl-t4', 'p10001-black0-xl', 'op0002-33', 'men0003', 'sk0002', 'sk0008'
- ],
-
- 'banner-text' => '<p>Look of The Week</p>
- <p class="big-text">Wood Frame Bedroom</p>
- <p>Only from $209</p>',
- ],
-
-
- // 首页楼层部分,2层的配置。
- 'home_floor_two' => [
- 'slider' => [
- 'title' => 'OUTDOOR FURNITURE',
- 'items' => [
- [
- 'name' => 'Nightstands',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Beds',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'HeadBoards',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Chests & Dressers',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Bedroom Sets',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Mattretsser',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Armories',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Small Beds',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Larger Beds',
- 'url' => '/wedding-dresses',
- ],
- ],
- ],
- 'product_skus' => [
- 'sk10004-001', 'sk10003-001', 'sk10002-002', 'sk10002', 'sk1000-khak', 'po0001'
- ],
-
- 'banner-text' => '<p>Look of The Week</p>
- <p class="big-text">Minimal Chair Modern</p>
- <p>Only from $209</p>',
- ],
-
-
- // 首页楼层部分,2层的配置。
- 'home_floor_three' => [
- 'slider' => [
- 'title' => 'LIGHTING FURNITURE',
- 'items' => [
- [
- 'name' => 'Nightstands',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Beds',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'HeadBoards',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Chests & Dressers',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Bedroom Sets',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Mattretsser',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Armories',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Small Beds',
- 'url' => '/wedding-dresses',
- ],
- [
- 'name' => 'Larger Beds',
- 'url' => '/wedding-dresses',
- ],
- ],
- ],
- 'product_skus' => [
- 'sk10004-001', 'sk10003-001', 'sk10002-002', 'sk10002', 'sk1000-khak', 'po0001'
- ],
-
- 'banner-text' => '<p>Look of The Week</p>
- <p class="big-text">Lamps Light Color</p>
- <p>Only from $209</p>',
- ],
- ],
- ],
-
- ],
- 'services' => [
- 'page' => [
- 'childService' => [
- 'theme' => [
- 'viewFileConfig' => [
- // 'catalog/category/index' => '@fecshop/app/appfront/theme/base/front/catalog/category/index.php',
- ],
- ],
- 'widget' => [
- 'widgetConfig' => [
- // config
- 'category' => [
- 'review_star' => [
- 'view' => 'catalog/product/index/review_star.php'
- ],
- 'toolbar_page' => [
- 'view' => 'catalog/category/index/toolbar_page.php',
- ],
- ],
- 'product' => [
- 'review_star' => [
- 'view' => 'catalog/product/index/review_star.php'
- ],
- ],
- 'search' => [
- 'toolbar_page' => [
- 'view' => 'catalog/category/index/toolbar_page.php',
- ],
- ],
- 'cms' => [
- 'product_floor' => [
- 'view' => 'cms/home/index/floor.php',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
-
- ],
- ],
- ],
-
-
- ];
|