Page.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. *
  7. * @copyright Copyright (c) 2016 FecShop Software LLC
  8. * @license http://www.fecshop.com/license/
  9. */
  10. return [
  11. 'page' => [
  12. 'childService' => [
  13. //'widget' => [
  14. //],
  15. 'asset' => [
  16. 'class' => 'fecshop\services\page\Asset',
  17. // 在js后面加一个v参数,修改js后,更改v参数,否则,浏览器会使用缓存。
  18. // /assets/dbdba3fa/js/js.js?v=2
  19. 'jsVersion' => 2,
  20. 'cssVersion' => 2,
  21. /**
  22. * @var string the root directory string the published asset files.
  23. * 设置: js和css的发布路径
  24. * 譬如设置为:'@appimage/assets',也可以将 @appimage 换成绝对路径
  25. */
  26. 'basePath' => '@webroot/assets',
  27. /**
  28. * @var string the base URL through which the published asset files can be accessed.
  29. * 设置: js和css的URL路径
  30. * 可以将 @web 换成域名 , 譬如 `http:://www/fecshop.com/assets`
  31. * 这样就可以将js和css文件使用独立的域名了【把域名对应的地址对应到$basePath】。
  32. */
  33. 'baseUrl' => '@web/assets',
  34. // js and css config example:
  35. /**
  36. * 'jsOptions' => [
  37. * # js config 1
  38. * [
  39. * 'options' => [
  40. * 'position' => 'POS_END',
  41. * // 'condition'=> 'lt IE 9',
  42. * ],
  43. * 'js' =>[
  44. * 'js/my.js',
  45. * ],
  46. * ],
  47. * # js config 2
  48. * //[
  49. * // 'options' => [
  50. * // 'condition'=> 'lt IE 9',
  51. * // ],
  52. * // 'js' =>[
  53. * // 'js/ie9js.js'
  54. * // ],
  55. * //],
  56. * ],
  57. * # css config
  58. * 'cssOptions' => [
  59. * # css config 1.
  60. * [
  61. * 'css' =>[
  62. * 'css/my.css',
  63. * ],
  64. * ],
  65. *
  66. * # css config 2.
  67. * //[
  68. * // 'options' => [
  69. * // 'condition'=> 'lt IE 9',
  70. * // ],
  71. * // 'css' =>[
  72. * // 'css/ltie9.css',
  73. * // ],
  74. * //],
  75. * ],
  76. **/
  77. ],
  78. 'menu' => [
  79. 'displayHome' => [
  80. 'enable' => true, // 是否在菜单中显示home
  81. 'display'=> 'Home', // 显示对应的字符。
  82. ],
  83. /*
  84. * 在菜单前面部分(产品分类菜单的前面部分)的自定义菜单。参考behindCustomMenu里面的格式
  85. */
  86. 'frontCustomMenu' => [
  87. ],
  88. /*
  89. * 在菜单后面部分(产品分类菜单的前面部分)的自定义菜单
  90. */
  91. 'behindCustomMenu' => [
  92. [
  93. 'name' => 'custom menu', // 菜单名字
  94. 'urlPath' => '/my-custom-menu.html', // 菜单对应的url
  95. 'childMenu' => [ // 子菜单
  96. [
  97. 'name' => 'my custom menu 2',
  98. 'urlPath' => '/my-custom-menu-2.html',
  99. ],
  100. [
  101. 'name' => 'my custom menu 3',
  102. 'urlPath' => '/my-custom-menu-2.html',
  103. 'childMenu' => [
  104. [
  105. 'name' => 'my custom menu 3',
  106. 'urlPath' => '/my-custom-menu-2.html',
  107. ],
  108. [
  109. 'name' => 'my custom menu 3',
  110. 'urlPath' => '/my-custom-menu-2.html',
  111. ],
  112. ],
  113. ],
  114. ],
  115. ],
  116. ],
  117. ],
  118. ],
  119. ],
  120. ];