home.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. ?>
  10. <?php
  11. $jsOptions = [
  12. # js config 1
  13. [
  14. 'options' => [
  15. 'position' => 'POS_HEAD',
  16. // 'condition'=> 'lt IE 9',
  17. ],
  18. 'js' =>[
  19. 'js/vendor/modernizr-2.8.3.min.js',
  20. ],
  21. ],
  22. [
  23. 'options' => [
  24. 'position' => 'POS_END',
  25. // 'condition'=> 'lt IE 9',
  26. ],
  27. 'js' =>[
  28. 'js/vendor/jquery.min.js',
  29. 'js/jquery.lazyload.min.js',
  30. 'js/popper.min.js',
  31. 'js/bootstrap.min.js',
  32. 'js/plugins.js',
  33. 'js/main.js',
  34. 'js/js.js',
  35. ],
  36. ],
  37. ];
  38. # css config
  39. $cssOptions = [
  40. # css config 1.
  41. [
  42. 'css' =>[
  43. 'css/bootstrap.min.css',
  44. 'css/font-awesome.min.css',
  45. 'css/ionicons.min.css',
  46. 'css/plugins.css',
  47. 'css/helper.css',
  48. 'css/main.css',
  49. 'css/fec.css',
  50. ],
  51. ],
  52. ];
  53. \Yii::$service->page->asset->jsOptions = \yii\helpers\ArrayHelper::merge($jsOptions, \Yii::$service->page->asset->jsOptions);
  54. \Yii::$service->page->asset->cssOptions = \yii\helpers\ArrayHelper::merge($cssOptions, \Yii::$service->page->asset->cssOptions);
  55. \Yii::$service->page->asset->register($this);
  56. ?>
  57. <?php $this->beginPage() ?>
  58. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  59. <html class="no-js" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $currentLangCode = Yii::$service->store->currentLangCode; ?>" lang="<?= $currentLangCode ?>">
  60. <head>
  61. <?= Yii::$service->page->widget->render('base/head',$this); ?>
  62. </head>
  63. <body>
  64. <?= Yii::$service->page->widget->render('base/beforeContent',$this); ?>
  65. <?php $this->beginBody() ?>
  66. <div class="header-container header-sticky">
  67. <?= Yii::$service->page->widget->render('base/header',$this); ?>
  68. <?= Yii::$service->page->widget->render('base/menu',$this); ?>
  69. </div>
  70. <div class="main-container">
  71. <?= $content; ?>
  72. </div>
  73. <div class="footer-container">
  74. <?= Yii::$service->page->widget->render('base/footer',$this); ?>
  75. </div>
  76. <?= Yii::$service->page->widget->render('base/trace',$this); ?>
  77. <?= Yii::$service->page->widget->render('base/scroll',$this); ?>
  78. <?php $this->endBody() ?>
  79. </body>
  80. </html>
  81. <?php $this->endPage() ?>