123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?php
- /**
- * FecShop file.
- *
- * @link http://www.fecshop.com/
- *
- * @copyright Copyright (c) 2016 FecShop Software LLC
- * @license http://www.fecshop.com/license/
- */
- return [
- 'page' => [
- 'childService' => [
- //'widget' => [
- //],
- 'asset' => [
- 'class' => 'fecshop\services\page\Asset',
- // 在js后面加一个v参数,修改js后,更改v参数,否则,浏览器会使用缓存。
- // /assets/dbdba3fa/js/js.js?v=2
- 'jsVersion' => 2,
- 'cssVersion' => 2,
- /**
- * @var string the root directory string the published asset files.
- * 设置: js和css的发布路径
- * 譬如设置为:'@appimage/assets',也可以将 @appimage 换成绝对路径
- */
- 'basePath' => '@webroot/assets',
- /**
- * @var string the base URL through which the published asset files can be accessed.
- * 设置: js和css的URL路径
- * 可以将 @web 换成域名 , 譬如 `http:://www/fecshop.com/assets`
- * 这样就可以将js和css文件使用独立的域名了【把域名对应的地址对应到$basePath】。
- */
- 'baseUrl' => '@web/assets',
- // 是否每次访问都强制复制css js img等文件到发布地址,true代表每次访问都发布
- // 一般开发环境用true,线上用false。当线上更新jscss文件,可以清空assets发布路径下的文件的方式来更新
- 'forceCopy' => true,
- // js and css config example:
- /**
- * 'jsOptions' => [
- * # js config 1
- * [
- * 'options' => [
- * 'position' => 'POS_END',
- * // 'condition'=> 'lt IE 9',
- * ],
- * 'js' =>[
- * 'js/my.js',
- * ],
- * ],
- * # js config 2
- * //[
- * // 'options' => [
- * // 'condition'=> 'lt IE 9',
- * // ],
- * // 'js' =>[
- * // 'js/ie9js.js'
- * // ],
- * //],
- * ],
- * # css config
- * 'cssOptions' => [
- * # css config 1.
- * [
- * 'css' =>[
- * 'css/my.css',
- * ],
- * ],
- *
- * # css config 2.
- * //[
- * // 'options' => [
- * // 'condition'=> 'lt IE 9',
- * // ],
- * // 'css' =>[
- * // 'css/ltie9.css',
- * // ],
- * //],
- * ],
- **/
- ],
- 'menu' => [
- 'displayHome' => [
- 'enable' => true, // 是否在菜单中显示home
- 'display'=> 'Home', // 显示对应的字符。
- ],
- /*
- * 在菜单前面部分(产品分类菜单的前面部分)的自定义菜单。参考behindCustomMenu里面的格式
- */
- 'frontCustomMenu' => [
- ],
- /*
- * 在菜单后面部分(产品分类菜单的前面部分)的自定义菜单
- */
- 'behindCustomMenu' => [
- [
- 'name' => 'custom menu', // 菜单名字
- 'urlPath' => '/my-custom-menu.html', // 菜单对应的url
- 'childMenu' => [ // 子菜单
- [
- 'name' => 'my custom menu 2',
- 'urlPath' => '/my-custom-menu-2.html',
- ],
- [
- 'name' => 'my custom menu 3',
- 'urlPath' => '/my-custom-menu-2.html',
- 'childMenu' => [
- [
- 'name' => 'my custom menu 3',
- 'urlPath' => '/my-custom-menu-2.html',
- ],
- [
- 'name' => 'my custom menu 3',
- 'urlPath' => '/my-custom-menu-2.html',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
- 'widget' => [
- 'widgetConfig' => [
- 'head' => [
- // 动态数据提供部分
- 'class' => 'fecshop\app\appfront\widgets\Head',
- // 根据多模板的优先级,依次去模板找查找该文件,直到找到这个文件。
- 'view' => 'widgets/head.php',
- // 缓存
- 'cache' => [
- 'enable' => false, // 是否开启
- 'timeout' => 4500, // 缓存过期时间
- ],
- ],
- 'header' => [
- 'class' => 'fecshop\app\appfront\widgets\Headers',
- // 根据多模板的优先级,依次去模板找查找该文件,直到找到这个文件。
- 'view' => 'widgets/header.php',
- 'cache' => [
- 'enable' => false,
- 'timeout' => 4500,
- ],
- ],
- 'topsearch' => [
- 'view' => 'widgets/topsearch.php',
- ],
- 'menu' => [
- 'class' => 'fecshop\app\appfront\widgets\Menu',
- // 根据多模板的优先级,依次去模板找查找该文件,直到找到这个文件。
- 'view' => 'widgets/menu.php',
- 'cache' => [
- 'enable' => false,
- //'timeout' => 4500,
- ],
- ],
- 'footer' => [
- 'class' => 'fecshop\app\appfront\widgets\Footer',
- // 根据多模板的优先级,依次去模板找查找该文件,直到找到这个文件。
- 'view' => 'widgets/footer.php',
- 'cache' => [
- 'enable' => false,
- //'timeout' => 4500,
- ],
- ],
- 'scroll' => [
- //'class' => 'fecshop\app\appfront\modules\Cms\block\widgets\Scroll',
- // 根据多模板的优先级,依次去模板找查找该文件,直到找到这个文件。
- 'view' => 'widgets/scroll.php',
- ],
- 'breadcrumbs' => [
- 'view' => 'widgets/breadcrumbs.php',
- ],
- 'flashmessage' => [
- 'view' => 'widgets/flashmessage.php',
- ],
- 'trace' => [
- 'view' => 'widgets/trace.php',
- ],
- 'beforeContent' => [
- 'view' => 'widgets/beforeContent.php',
- ],
- ],
- ],
- ],
- ],
- ];
|